home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / Class&Method Reference (411) / MacApp411Help next >
Text File  |  1990-07-24  |  1MB  |  38,022 lines

  1. æKY CopyrightNotice
  2. æC Copyright Apple Computer, Inc. 1989-1990, All rights reserved.
  3. 411- MacApp Help - 2.0 Release.
  4.  
  5. æKY Classes
  6. æKL
  7. TAboutAppCommand
  8. TApplication
  9. TAssociation
  10. TButton
  11. TCellSelectCommand
  12. TCheckBox
  13. TClassesByID
  14. TClassesByName
  15. TClassListView
  16. TCloseWindowCommand
  17. TCluster
  18. TColumnSelectCommand
  19. TCommand
  20. TCommandList
  21. TControl
  22. TControlTracker
  23. TCtlMgr
  24. TDebugApplication
  25. TDebugCommand
  26. TDeskScrapView
  27. TDialogTEView
  28. TDialogView
  29. TDocument
  30. TDynamicArray
  31. TEditText
  32. TEntriesList
  33. TEntry
  34. TEvtHandler
  35. TGridView
  36. TIcon
  37. TInspector
  38. TInspectorCommand
  39. TInspectWindow
  40. TList
  41. TListView
  42. TNewDocCommand
  43. TNoChangesCommand
  44. TNumberText
  45. TObject
  46. TObjectList
  47. TObjectView
  48. TObjListView
  49. TOldDocCommand
  50. TPattern
  51. TPicture
  52. TPopup
  53. TPrintCommand
  54. TPrintHandler
  55. TPrintStyleChangeCommand
  56. TPtrBasedDoublyLinkedList
  57. TQuitCommand
  58. TRadio
  59. TRCSelectCommand
  60. TRevertDocCommand
  61. TRowSelectCommand
  62. TRunArray
  63. TSaveDocCommand
  64. TScrollBar
  65. TScroller
  66. TSortedList
  67. TSScrollBar
  68. TStaticText
  69. TStdPrintHandler
  70. TTECommand
  71. TTECutCopyCommand
  72. TTEPasteCommand
  73. TTEStyleCommand
  74. TTETypingCommand
  75. TTEView
  76. TTextGridView
  77. TTextListView
  78. TTranscriptView
  79. TUndoRedoCommand
  80. TView
  81. TWindow
  82.  
  83.  
  84. æKY TAboutAppCommand
  85. æHY TAboutAppCommand—>TNoChangesCommand—>TCommand—>TObject
  86. æFi UMacApp.p
  87. æT CLASS 
  88. æC The sole purpose of TAboutAppCommand, a specialized subclass of 
  89. TNoChangesCommand, is to display an applicaion's About box. 
  90.  
  91.  
  92.  
  93. æKY TApplication
  94. æHY TApplication—>TEvtHandler—>TObject
  95. æFi UMacApp.p
  96. æT CLASS 
  97. æC TApplication is the abstract class from which your application inherits its 
  98. ability to perform application-like tasks. Its primary function is to provide the 
  99. main event loop from which the application calls all the particular functions 
  100. available to the user. Each application consists of one, and only one, instance 
  101. of TApplication, along with whatever auxiliary objects might be required to 
  102. implement the application's function. The TApplication object contains the methods 
  103. necessary for the functions that affect the application as a whole, such as 
  104. opening a file, creating a new file, dismissing the application, or displaying the 
  105. About box. 
  106.  
  107.  
  108.  
  109. æKY TAssociation
  110. æHY TAssociation—>TObject
  111. æFi UAssociation.p
  112. æT CLASS 
  113. æC TAssociation manages a list of TEntry objects. TAssociation objects act as 
  114. tables of keys maintained in key order and associated with values (the keys and 
  115. values are stringhandles); MacApp uses TAssociation objects to implement 
  116. parameterized text in dialog boxes. 
  117.  
  118.  
  119.  
  120. æKY TButton
  121. æHY TButton—>TCtlMgr—>TControl—>TView—>TEvtHandler—>TObject
  122. æFi UDialog.p
  123. æT CLASS 
  124. æC This class implements a Control Manager button. 
  125.  
  126.  
  127.  
  128. æKY TCellSelectCommand
  129. æHY TCellSelectCommand—>TCommand—>TObject
  130.  
  131. æFi UGridView.p
  132. æT CLASS 
  133. æC The TCellSelectCommand class defines methods for selecting cells in views 
  134. implemented by TGridView and its subclasses, TTextGridView and TTextListView. 
  135. TCellSelectCommand also has methods for initializing and freeing command objects, 
  136. highlighting a selection, and providing the user with onscreen feedback. 
  137.  
  138.  
  139.  
  140. æKY TCheckBox
  141. æHY TCheckBox—>TCtlMgr—>TControl—>TView—>TEvtHandler—>TObject
  142. æFi UDialog.p
  143. æT CLASS 
  144. æC This class implements a Control Manager check box control. 
  145.  
  146.  
  147.  
  148. æKY TClassesByID
  149. æHY TClassesByID—>TSortedList—>TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  150. æFm UInspector.inc1.p
  151. æT CLASS 
  152. æC TClassesByID objects maintain lists of MacApp classes sorted by their ID 
  153. numbers. MacApp uses these lists to keep track of objects in the Inspector; you 
  154. usually do not need to create instances of TClassesByID yourself, nor do you need to 
  155. access instances of this class that are created by MacApp. The methods of this 
  156. class are internal to the MacApp Inspector; you cannot call them yourself or 
  157. override them. 
  158.  
  159.  
  160.  
  161. æKY TClassesByName
  162. æHY TClassesByName—>TSortedList—>TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  163. æFm UInspector.inc1.p
  164. æT CLASS 
  165. æC TClassesByName objects maintain lists of MacApp classes sorted by the class 
  166. names. MacApp uses these lists to keep track of objects in the Inspector; you 
  167. usually do not need to create instances of TClassesByID yourself, nor do you need 
  168. to access instances of this class that are created by MacApp. The methods of 
  169. this class are internal to the MacApp Inspector; you cannot call them yourself or 
  170. override them. 
  171.  
  172.  
  173.  
  174. æKY TClassListView
  175. æHY TClassListView—>TListView—>TView—>TEvtHandler—>TObject
  176. æFm UInspector.inc1.p
  177. æT CLASS 
  178. æC TClassListView implements a view of a list of classes in the MacApp Inspector. 
  179. If you wish to do something similar, you will probably find it easier to 
  180. implement using a TTextListView object. The TTextListView class has list-management 
  181. methods that are not present in the TClassListView class. You usually do not need 
  182. to create instances of TClassListView yourself, nor do you need to access 
  183. instances of this class that are created by MacApp. The methods of this class are 
  184. internal to the MacApp Inspector; you cannot call them yourself or override 
  185. them. 
  186.  
  187.  
  188.  
  189. æKY TCloseWindowCommand
  190. æHY TCloseWindowCommand—>TNoChangesCommand—>TCommand—>TObject
  191. æFi UMacApp.p
  192. æT CLASS 
  193. æC TCloseWindowCommand is a specialized subclass of TNoChangesCommand whose sole 
  194. purpose is to close windows by calling gApplication.CloseByUser for the frontmost 
  195. window. 
  196.  
  197.  
  198.  
  199. æKY TCluster
  200. æHY TCluster—>TControl—>TView—>TEvtHandler—>TObject
  201. æFi UDialog.p
  202. æT CLASS 
  203. æC TCluster implements a view that can be used to contain controls, such as groups 
  204. of radio buttons. TCluster is usually used to localize the handling of 
  205. logically grouped controls; the default version of this class provides methods that can 
  206. receive an mRadioHit message from a subview, select the chosen control, and 
  207. deselect the others. TCluster can also be used to provide labeled adornments 
  208. around controls and other groups of dialog items. 
  209.  
  210.  
  211.  
  212. æKY TColumnSelectCommand
  213. æHY TColumnSelectCommand—>TRCSelectCommand—>TCellSelectCommand—>TCommand—>TObject
  214. æFi UGridView.p
  215. æT CLASS 
  216. æC TColumnSelectCommand is a subclass of TCellSelectCommand, and has methods for 
  217. selecting a column of cells in a TGridView view. 
  218.  
  219.  
  220.  
  221. æKY TCommand
  222. æHY TCommand—>TObject
  223. æFi UMacApp.p
  224. æT CLASS 
  225. æC In MacApp, an instance of TCommand is called a "command object," and command 
  226. objects that track the mouse are called "mouse trackers." The TCommand class has 
  227. methods for initializing command objects and mouse trackers, constraining mouse 
  228. movement, implementing user commands that can be undone, and providing onscreen 
  229. user feedback. Most of the methods of TCommand are empty; you must override 
  230. them with methods that can execute your application's commands. You never create 
  231. instances of TCommand directly, and you rarely call TCommand objects yourself; 
  232. rather, MacApp sends messages to TCommand instances in response to complex 
  233. commands. (In MacApp, a "complex" command is one that changes the document and can 
  234. be undone, or one that requires mouse tracking.) However, for many simple 
  235. commands—commands that do not change the document or do not track the mouse—you may 
  236. never have to create a command object; you can carry out the action of those 
  237. commands from the methods DoMenuCommand, DoMouseCommand, DoKeyCommand, 
  238. DoCommandKey or from another method that returns a command object. You usually override 
  239. the methods DoIt, UndoIt, RedoIt, and possibly Commit for command objects and 
  240. trackers that change the document, whereas you override TrackConstrain, 
  241. TrackFeedback, and TrackMouse only for mouse trackers. Command objects and mouse 
  242. trackers that do not change the document do not need the UndoIt, RedoIt, or Commit 
  243. methods. (For further information, see the MacApp 2.0 Cookbook for a number of 
  244. recipes using different types of command objects and mouse trackers.) 
  245.  
  246.  
  247.  
  248. æKY TCommandList
  249. æHY TCommandList—>TSortedList—>TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  250. æFi UMacApp.p
  251. æT CLASS 
  252. æC TCommandList provides a mechanism to keep a list of the commands in the command 
  253. queue. You usually do not need to create instances of TCommandList yourself, 
  254. nor do you need to access instances of this class that are created by MacApp. 
  255.  
  256.  
  257. æKY TControl
  258. æHY TControl—>TView—>TEvtHandler—>TObject
  259. æFi UMacApp.p
  260. æT CLASS 
  261. æC TControl is an abstract class, the ancestor of all classes that implement 
  262. familiar Macintosh® controls such as scroll bars, radio buttons, and pop-up menus. 
  263. TControl controls include non-Control Manager controls (either of your own 
  264. creation or as defined in the UDialog unit) and Control Manager controls—that is, 
  265. radio buttons, push buttons, check boxes, and scroll bars. (Control Manager 
  266. controls are instances of TCtlMgr, a subclass of TControl.) Descendants of TControl 
  267. have the following properties: •They are limited to QuickDraw’s coordinate 
  268. space. •The can track the mouse without your having to create a command object. 
  269. TControl methods can be overridden to implement behavior while tracking the mouse 
  270. rather than implementing the behavior in a separate command object. •They can 
  271. have combinations of a set of standard adornments, such as a rectangular frame 
  272. and a shadow. •They have a text style used to draw the control’s label (if it has 
  273. one). •They have insets or margins in which mouse clicks are ignored. 
  274.  
  275.  
  276.  
  277. æKY TControlTracker
  278. æHY TControlTracker—>TNoChangesCommand—>TCommand—>TObject
  279.  
  280. æFi UMacApp.p
  281. æT CLASS 
  282. æC TControlTracker is a specialized subclass of TNoChangesCommand that you can use 
  283. to track the mouse in a control. TControlTracker objects always track the 
  284. mouse—whether it moves or not—without constraining it to the control's view; this 
  285. allows MacApp to automatically highlight a control when the mouse pointer is in 
  286. its active area, and remove the highlighting when the mouse pointer strays 
  287. outside the control's active area. 
  288.  
  289.  
  290.  
  291. æKY TCtlMgr
  292. æHY TCtlMgr—>TControl—>TView—>TEvtHandler—>TObject
  293. æFi UMacApp.p
  294. æT CLASS 
  295. æC TCtlMgr is an abstract class whose descendants implement the behavior of 
  296. standard Macintosh® dialog items, such as radio buttons and check boxes. It is a 
  297. subclass of TControl. 
  298.  
  299.  
  300.  
  301. æKY TDebugApplication
  302. æHY TDebugApplication—>TApplication—>TEvtHandler—>TObject
  303. æFm UDebug.inc1.p
  304. æT CLASS 
  305. æC TDebugApplication provides the behavior used by the MacApp debugger. The methods 
  306. of the TDebugApplication class are for internal use by the MacApp debugger 
  307. only; you cannot create or access instances of TDebugApplication yourself, nor can 
  308. you override or call methods of this class yourself. 
  309.  
  310.  
  311.  
  312. æKY TDebugCommand
  313. æHY TDebugCommand—>TNoChangesCommand—>TCommand—>TObject
  314. æFi UMacApp.p
  315. æT CLASS 
  316. æC TDebugCommand is a specialized subclass of TNoChangesCommand that MacApp uses 
  317. for entering the Interactive Debugger. TDebugCommand has only two methods: an 
  318. IDebugCommand method that initializes the command object responsible for entering 
  319. the debugger, and a DoIt method that actually invokes the debugger. The methods 
  320. of the TDebugCommand class are for internal use by the MacApp debugger only; 
  321. you usually do not need to create instances of TDebugCommand yourself, nor do 
  322. you need to directly access instances of this class that are created by MacApp. 
  323.  
  324.  
  325.  
  326. æKY TDeskScrapView
  327. æHY TDeskScrapView—>TView—>TEvtHandler—>TObject
  328. æFi UMacApp.p
  329. æT CLASS 
  330. æC TDeskScrapView provides the basic functionality necessary for displaying the 
  331. Macintosh® desk scrap. Normally you will use TDeskScrapView to display 'TEXT' or 
  332. 'PICT' data in Clipboard windows. You must override the methods of TDeskScrap 
  333. view if you wish to support other data formats. 
  334.  
  335.  
  336.  
  337. æKY TDialogTEView
  338. æHY TDialogTEView—>TTEView—>TView—>TEvtHandler—>TObject
  339. æFi UDialog.p
  340. æT CLASS 
  341. æC This class is a subclass of TTEView used by TDialogView to perform editing on 
  342. TEditText views. A TDialogTEView object is superimposed over its corresponding 
  343. TEditText view; it is in the TDialogTEView that the actual text editing takes 
  344. place. When implementing editable text in dialog boxes, it is preferable to use 
  345. TDialogTEView objects rather than TTEView objects because the TDialogTEView class 
  346. is specialized for this task: TDialogTEView objects are associated with the 
  347. edit text and a scroller, resize themselves according to the size of the edit 
  348. text and scroller, and have an InstallEditText method that facilitates the 
  349. installation of the edit text and scroller. You usually do not need to create 
  350. TDialogTEView objects yourself; MacApp does it for you automatically when you create a 
  351. dialog box having TEditText objects as subviews. 
  352.  
  353.  
  354.  
  355. æKY TDialogView
  356. æHY TDialogView—>TView—>TEvtHandler—>TObject
  357. æFi UDialog.p
  358. æT CLASS 
  359. æC TDialogView acts as the topmost view in a MacApp dialog box, undertaking several 
  360. tasks that mimic the functions of the Macintosh Dialog Manager. The methods of 
  361. this class duplicate the function of a dialog box without actually using the 
  362. Dialog Manager—for instance, the substitution of parameterized text in dialog 
  363. boxes. 
  364.  
  365.  
  366.  
  367. æKY TDocument
  368. æHY TDocument—>TEvtHandler—>TObject
  369. æFi UMacApp.p
  370. æT CLASS 
  371. æC Instances of TDocument represent the data that an application manipulates; a 
  372. particular instance of TDocument is usually associated with a file on a disk. 
  373. Typical examples of the use of TDocument include representing the bitmap data used 
  374. by a paint application, or the text and formatting data used by a word 
  375. processor. TDocument is an abstract class; it is meant to be overridden in order to 
  376. implement your application's particular document format. You never create 
  377. instances of TDocument directly; instead, the application object creates them as 
  378. needed. The methods implemented in TDocument normally include commands that directly 
  379. change or affect the data, such as the Save method (which saves the current 
  380. state of the data in the associated disk file) or the Revert method (which 
  381. restores the working copy of the data to the state that was last saved). 
  382.  
  383.  
  384.  
  385. æKY TDynamicArray
  386. æHY TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  387. æFi UList.p
  388. æT CLASS 
  389. æC TDynamicArray implements dynamic arrays. MacApp 2.0 provides a subclass of this 
  390. class called TList to handle a list of dynamic objects; you can use 
  391. TDynamicArray directly or create subclasses to construct other kinds of dynamic lists. 
  392.  
  393.  
  394.  
  395. æKY TEditText
  396. æHY TEditText—>TStaticText—>TControl—>TView—>TEvtHandler—>TObject
  397.  
  398. æFi UDialog.p
  399. æT CLASS 
  400. æC This class implements a simple editable text item. TEditText is implemented as a 
  401. subclass of TStaticText. When the item needs to be edited, the parent 
  402. DialogView places a “floating” TEView on top of the view. 
  403.  
  404.  
  405.  
  406. æKY TEntriesList
  407. æHY TEntriesList—>TSortedList—>TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  408. æFi UAssociation.p
  409. æT CLASS 
  410. æC TEntriesList objects provide behavior for maintaining lists of entries in a 
  411. TAssociation object. This class is meant for MacApp's internal use; you usually do 
  412. not create instances of TEntriesList yourself. 
  413.  
  414.  
  415.  
  416. æKY TEntry
  417. æHY TEntry—>TObject
  418. æFi UAssociation.p
  419. æT CLASS 
  420. æC This class is used by TAssociation to form a very basic text-item dictionary 
  421. mechanism whose main use is the substitution of text in dialog-type window items. 
  422. This class is instantiated for each key string and its replacement. 
  423. TAssociation tracks the list of these entries by means of a TEntriesList object. 
  424.  
  425.  
  426.  
  427. æKY TEvtHandler
  428. æHY TEvtHandler—>TObject
  429. æFi UMacApp.p
  430. æT CLASS 
  431. æC The class TEvtHandler is the abstract ancestor of all classes that handle 
  432. events. Its subclasses include TApplication, TDocument, TPrintHandler, TView, and all 
  433. of their subclasses. In Macintosh programming, the word ‘event’ refers to 
  434. mouse clicks, keystrokes, the insertion of disks, the activation of windows, and so 
  435. on. TEvtHandler is the ancestor of all classes whose main purpose is to handle 
  436. such events. 
  437.  
  438.  
  439.  
  440. æKY TGridView
  441. æHY TGridView—>TView—>TEvtHandler—>TObject
  442. æFi UGridView.p
  443. æT CLASS 
  444. æC TGridView is a general-purpose abstract class useful for creating views that 
  445. display data in a matrix or grid format. A good example is a view that displays a 
  446. chessboard or a spreadsheet. A less obvious is the list of files that appears 
  447. in a Macintosh Standard File dialog box. This list could be implemented as a 
  448. subclass of TGridView whose instances display a vertical, one-dimensional 
  449. scrolling grid of text items. The TGridView subclass TTextListView is precisely suited 
  450. to this task. 
  451.  
  452. æKY TIcon
  453. æHY TIcon—>TControl—>TView—>TEvtHandler—>TObject
  454. æFi UDialog.p
  455. æT CLASS 
  456. æC This class implements an icon that can serve as a simple form of button if 
  457. enabled. As members of a subclass of TControl, TIcon objects always track the mouse 
  458. and highlight automatically if the mouse pointer strays within their active 
  459. control area. TIcon objects also share the standard properties of other Macintosh 
  460. icons: they are resources of type 'ICON' or 'cicn', they are 32 x 32 bits in 
  461. size, they can be moved or resized by the application, and they can be edited 
  462. using ViewEdit™. 
  463.  
  464.  
  465.  
  466. æKY TInspector
  467. æHY TInspector—>TDocument—>TEvtHandler—>TObject
  468. æFm UInspector.inc1.p
  469. æT CLASS 
  470. æC TInpsector provides management of MacApp Inspector windows. The methods of this 
  471. class are internal to the MacApp Inspector; you cannot call them yourself or 
  472. override them. 
  473.  
  474.  
  475.  
  476. æKY TInspectorCommand
  477. æHY TInspectorCommand—>TNoChangesCommand—>TCommand—>TObject
  478. æFi UMacApp.p
  479. æT CLASS 
  480. æC TInspectorCommand is a subclass of TNoChangesCommand specialized to create an 
  481. Inspector window. 
  482.  
  483.  
  484.  
  485. æKY TInspectWindow
  486. æHY TInspectWindow—>TWindow—>TView—>TEvtHandler—>TObject
  487. æFm UInspector.inc1.p
  488. æT CLASS 
  489. æC TInspectWindow is a subclass of TWindow specialized to display the fields of the 
  490. active objects in an application. The MacApp Inspector uses it to display the 
  491. contents of objects’ fields for the programmer’s scrutiny. The methods of this 
  492. class are internal to the MacApp Inspector; you cannot call them yourself or 
  493. override them. 
  494.  
  495.  
  496.  
  497. æKY TList
  498. æHY TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  499. æFi UList.p
  500. æT CLASS 
  501. æC TList implements a simple list of objects. An instance of TList can contain a 
  502. list whose elements are references to instances of any class. Such lists can be 
  503. useful for performing an action on several objects. For example, an application 
  504. might keep all displayable objects in an instance of TList. If the application 
  505. needed to update all the displayed objects, it could simply send an appropriate 
  506. message to each item in the list. 
  507.  
  508.  
  509.  
  510. æKY TListView
  511. æHY TListView—>TView—>TEvtHandler—>TObject
  512. æFm UInspector.inc1.p
  513. æT CLASS 
  514. æC TListView is an abstract class that provides methods for managing views of lists 
  515. of data. In particular, several of its methods implement views that display 
  516. lists of objects and classes. The methods of this class are internal to the 
  517. MacApp Inspector; you cannot call them yourself or override them. You should use 
  518. TGridView, TTextGridView or TTextListView for general display of data in a list or 
  519. grid format. 
  520.  
  521.  
  522.  
  523. æKY TNewDocCommand
  524. æHY TNewDocCommand—>TNoChangesCommand—>TCommand—>TObject
  525. æFi UMacApp.p
  526. æT CLASS 
  527. æC TNewDocCommand creates a new document window when the New command is chosen from 
  528. the File menu. If desired, TNewDocCommand can also create a new document when 
  529. the application is launched. 
  530.  
  531.  
  532.  
  533. æKY TNoChangesCommand
  534. æHY TNoChangesCommand—>TCommand—>TObject
  535. æFi UMacApp.p
  536. æT CLASS 
  537. æC TNoChangesCommand is an abstract class containing one method, INoChangesCommand, 
  538. which sets the fCanUndo and fCausesChange fields of the command object to 
  539. FALSE. TNoChangesCommand itself causes no change to any document; its subclasses, 
  540. however, provide methods that handle a variety of document- and 
  541. window-management commands. 
  542.  
  543.  
  544.  
  545. æKY TNumberText
  546. æHY TNumberText—>TEditText—>TStaticText—>TControl—>TView—>TEvtHandler—>TObject
  547. æFi UDialog.p
  548. æT CLASS 
  549. æC TNumberText, a simple subclass of TEditText, implements an editable text item 
  550. that accepts only numbers that fall in a specified range. 
  551.  
  552.  
  553.  
  554. æKY TObject
  555. æHY TObject
  556. æFi UObject.p
  557. æT CLASS 
  558. æC TObject is an abstract class, the ancestor of all objects in MacApp. Its primary 
  559. purpose is to provide common behavior that all classes share. All MacApp 
  560. classes, which are subclasses of TObject, inherit this common behavior. Behavior 
  561. provided by TObject includes cloning (making a copy of an instance) and freeing 
  562. (deallocating memory used by an instance). 
  563.  
  564.  
  565.  
  566. æKY TObjectList
  567. æHY TObjectList—>TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  568. æFm UInspector.inc1.p
  569. æT CLASS 
  570. æC TObjectList objects maintain lists of objects. The MacApp Inspector uses 
  571. TObjectList objects to store lists of the active objects in a running application. The 
  572. methods of this class are internal to the MacApp Inspector; you cannot call 
  573. them yourself or override them. 
  574.  
  575.  
  576.  
  577. æKY TObjectView
  578. æHY TObjectView—>TListView—>TView—>TEvtHandler—>TObject
  579. æFm UInspector.inc1.p
  580. æT CLASS 
  581. æC TObjectView implements a view which displays a list of the fields in an object 
  582. instance. The methods of this class are internal to the MacApp Inspector; you 
  583. cannot call them yourself or override them. 
  584.  
  585.  
  586.  
  587. æKY TObjListView
  588. æHY TObjListView—>TListView—>TView—>TEvtHandler—>TObject
  589. æFm UInspector.inc1.p
  590. æT CLASS 
  591. æC TObjListView implements a view of a list of object instances displayed by the 
  592. Inspector. The methods of this class are internal to the MacApp Inspector; you 
  593. cannot call them yourself or override them. 
  594.  
  595.  
  596.  
  597. æKY TOldDocCommand
  598. æHY TOldDocCommand—>TNoChangesCommand—>TCommand—>TObject
  599. æFi UMacApp.p
  600. æT CLASS 
  601. æC TOldDocCommand is a specialized subclass of TNoChangesCommand that MacApp uses 
  602. for opening saved documents when the user chooses the Open command from the File 
  603. menu. 
  604.  
  605.  
  606.  
  607. æKY TPattern
  608. æHY TPattern—>TControl—>TView—>TEvtHandler—>TObject
  609. æFi UDialog.p
  610. æT CLASS 
  611. æC TPattern provides methods for displaying a simple fill pattern. Instances of 
  612. TPattern can be used, for example, to fill scroll bars in dialog boxes. 
  613.  
  614.  
  615. æKY TPicture
  616. æHY TPicture—>TControl—>TView—>TEvtHandler—>TObject
  617. æFi UDialog.p
  618. æT CLASS 
  619. æC This class implements a picture item that can serve as a simple button. The 
  620. picture item can be arbitrarily large. 
  621.  
  622.  
  623.  
  624. æKY TPopup
  625. æHY TPopup—>TControl—>TView—>TEvtHandler—>TObject
  626. æFi UDialog.p
  627. æT CLASS 
  628. æC TPopup implements a simple pop-up menu selector, following the guidelines for 
  629. pop-up menus established in Apple Computer’s Human Interface Guidelines. See 
  630. Inside Macintosh, pages V-241 and V-242, for an explanation. 
  631.  
  632.  
  633.  
  634. æKY TPrintCommand
  635. æHY TPrintCommand—>TNoChangesCommand—>TCommand—>TObject
  636. æFi UPrinting.p
  637. æT CLASS 
  638. æC TPrintCommand objects provide general printing functions. 
  639.  
  640.  
  641.  
  642. æKY TPrintHandler
  643. æHY TPrintHandler—>TEvtHandler—>TObject
  644. æFi UMacApp.p
  645. æT CLASS 
  646. æC TPrintHandler provides methods necessary to print the data displayed in a 
  647. document. 
  648.  
  649.  
  650.  
  651. æKY TPrintStyleChangeCommand
  652. æHY TPrintStyleChangeCommand—>TCommand—>TObject
  653. æFi UPrinting.p
  654. æT CLASS 
  655. æC TPrintStyleChangeCommand is a subclass of TCommand that allows the user to make 
  656. changes in the Page Setup dialog box and undo them. TPrintStyleChangeCommand 
  657. contains methods for making and undoing changes to Page Setup, and freeing memory 
  658. used by the print record. 
  659.  
  660.  
  661.  
  662. æKY TPtrBasedDoublyLinkedList
  663. æHY TPtrBasedDoublyLinkedList—>TObject
  664. æFi UList.p
  665. æT CLASS 
  666. æC TPtrBasedDoublyLinkedList, a subclass of TObject, manages a doubly linked list 
  667. of nodes. The nodes are pointer based, since they are usually on the stack. 
  668.  
  669.  
  670.  
  671. æKY TQuitCommand
  672. æHY TQuitCommand—>TNoChangesCommand—>TCommand—>TObject
  673. æFi UMacApp.p
  674. æT CLASS 
  675. æC TQuitCommand is a specialized subclass of TNoChangesCommand that MacApp uses to 
  676. close applications. 
  677.  
  678.  
  679.  
  680. æKY TRadio
  681. æHY TRadio—>TCtlMgr—>TControl—>TView—>TEvtHandler—>TObject
  682. æFi UDialog.p
  683. æT CLASS 
  684. æC This class implements a Control Manager radio button control. 
  685.  
  686.  
  687.  
  688. æKY TRCSelectCommand
  689. æHY TRCSelectCommand—>TCellSelectCommand—>TCommand—>TObject
  690. æFi UGridView.p
  691. æT CLASS 
  692. æC The TRCSelectCommand class is an abstract superclass that defines methods for 
  693. selecting cells in views implemented by TGridView, TTextGridView, and 
  694. TTextListView. TRCSelectCommand also has methods for initializing and freeing command 
  695. objects, highlighting selections, and providing the user with onscreen feedback. 
  696.  
  697.  
  698.  
  699. æKY TRevertDocCommand
  700. æHY TRevertDocCommand—>TNoChangesCommand—>TCommand—>TObject
  701. æFi UMacApp.p
  702. æT CLASS 
  703. æC TRevertDocCommand has methods that allow a document to revert to the last 
  704. version saved on disk. 
  705.  
  706.  
  707.  
  708. æKY TRowSelectCommand
  709. æHY TRowSelectCommand—>TRCSelectCommand—>TCellSelectCommand—>TCommand—>TObject
  710. æFi UGridView.p
  711. æT CLASS 
  712. æC TRowSelectCommand objects are capable of selecting whole rows of cells in 
  713. TGridView objects. 
  714.  
  715.  
  716.  
  717. æKY TRunArray
  718. æHY TRunArray—>TObject
  719. æFi UGridView.p
  720. æT CLASS 
  721. æC The TRunArray class is used to maintain column widths and row heights. Entries 
  722. in the array are values for a given item, where the items are indexed from 1. 
  723. The fNoOfItems field indicates the number of items (and values) in the array. The 
  724. values are maintained in "chunks" —that is, consecutive items with the same 
  725. value are clumped together. 
  726.  
  727.  
  728.  
  729. æKY TSaveDocCommand
  730. æHY TSaveDocCommand—>TNoChangesCommand—>TCommand—>TObject
  731. æFi UMacApp.p
  732. æT CLASS 
  733. æC TSaveDocCommand has methods that save a document or a copy on disk. 
  734.  
  735.  
  736.  
  737. æKY TScrollBar
  738. æHY TScrollBar—>TCtlMgr—>TControl—>TView—>TEvtHandler—>TObject
  739. æFi UMacApp.p
  740. æT CLASS 
  741. æC TScrollBar implements a standard Macintosh scroll bar, either vertical or 
  742. horizontal, depending on the parameters with which it is created. The scroll bar is 
  743. suitable for use as a control in a dialog box. Instances of TScrollBar can also 
  744. be used to scroll text or graphics in the content region of a window, but 
  745. instead you usually use TSScrollBar, a subclass of TScrollBar whose behavior is 
  746. specialized for scrolling text or graphics to make such uses easier. 
  747.  
  748.  
  749.  
  750. æKY TScroller
  751. æHY TScroller—>TView—>TEvtHandler—>TObject
  752. æFi UMacApp.p
  753. æT CLASS 
  754. æC A TScroller is a view whose specialty is coordinate adjustments. To create a 
  755. scrolling area, you install a TScroller object as a subview in a window and then 
  756. install the view that actually draws in the window as a subview of the TScroller 
  757. object. The TScroller object handles messages from TSScrollBar objects by 
  758. adjusting coordinate-plane offsets. When, for example, the user clicks the down 
  759. arrow in the vertical scroll bar, the window’s TScroller object adjusts its 
  760. coordinate plane so that all contents are drawn farther from the bottom of the 
  761. window. For example, given a scroller whose size is 100 pixels in both directions and 
  762. a subview located at (0,0) whose size is 1000 pixels, then a translation value 
  763. of (300,500) will display the part of the subview defined by the rectangle 
  764. (300,500)/(400,600). A scroller may refer to a vertical and horizontal scroll bar, 
  765. whose values are synchronized with the scroller’s translation values. 
  766. Furthermore, it is possible to scroll without using scroll bars by calling the 
  767. appropriate scroller methods to change the translation value. 
  768.  
  769.  
  770.  
  771. æKY TSortedList
  772. æHY TSortedList—>TList—>TDynamicArray—>TPtrBasedDoublyLinkedList—>TObject
  773. æFi UList.p
  774. æT CLASS 
  775. æC MacApp 2.0 includes a subclass of TList called TSortedList. TSortedList 
  776. implements a list of objects that are maintained in sorted order. Sorting presupposes 
  777. some way to rank objects in the list with respect to each other. For this 
  778. reason, the TSortedList class defines the Compare method. 
  779.  
  780.  
  781.  
  782. æKY TSScrollBar
  783. æHY TSScrollBar—>TScrollBar—>TCtlMgr—>TControl—>TView—>TEvtHandler—>TObject
  784. æFi UMacApp.p
  785. æT CLASS 
  786. æC TSScrollBar, a subclass of TScrollBar, simplifies content-region scrolling by 
  787. interacting with TScroller objects. In response to user actions, TSScrollBar 
  788. objects can pass messages to TScroller objects. The TScroller objects can then make 
  789. the appropriate adjustments in the coordinate space of the window’s content 
  790. region so that the programmer doesn’t have to calculate offsets and change the 
  791. coordinates’ origin. A single scroll bar can be associated with any number of 
  792. scrollers. Each scroller is responsible for its own scrolling according to 
  793. messages sent to it from its scroll bars. 
  794.  
  795.  
  796.  
  797. æKY TStaticText
  798. æHY TStaticText—>TControl—>TView—>TEvtHandler—>TObject
  799. æFi UDialog.p
  800. æT CLASS 
  801. æC This class implements a static text item that can serve as a form of button. The 
  802. text cannot be edited by the user. 
  803.  
  804.  
  805.  
  806. æKY TStdPrintHandler
  807. æHY TStdPrintHandler—>TPrintHandler—>TEvtHandler—>TObject
  808. æFi UPrinting.p
  809. æT CLASS 
  810. æC TStdPrintHandler provides standard printing behavior for applications. 
  811.  
  812.  
  813.  
  814. æKY TTECommand
  815. æHY TTECommand—>TCommand—>TObject
  816. æFi UTEView.p
  817. æT CLASS 
  818. æC TTECommand provides methods that add or delete characters in a TEView view and 
  819. allow for text changes to be undone or redone. It is a superclass for commands 
  820. that cut, copy, paste, clear, and type text. 
  821.  
  822.  
  823.  
  824. æKY TTECutCopyCommand
  825. æHY TTECutCopyCommand—>TTECommand—>TCommand—>TObject
  826. æFi UTEView.p
  827. æT CLASS 
  828. æC TTECutCopyCommand is a specialized subclass of TTECommand that cuts or copies 
  829. data in a TEView view to another TEView view installed in the Clipboard. 
  830. TTECutCopyCommand has methods for initializing and freeing command objects, executing 
  831. commands, and restoring deletions. 
  832.  
  833.  
  834.  
  835. æKY TTEPasteCommand
  836. æHY TTEPasteCommand—>TTECommand—>TCommand—>TObject
  837. æFi UTEView.p
  838. æT CLASS 
  839. æC TTEPasteCommand is a subclass of TTECommand. Its ITEPasteCommand method 
  840. initializes the command object used by TTEViews to paste Clipboard data.(This method 
  841. doesn't use the Toolbox TEPaste routine, because that routine destroys the desk 
  842. scrap; the text would be recoverable from the special TextEdit Scrap, although 
  843. other types of non-TEXT scrap are permanently lost.) 
  844.  
  845.  
  846.  
  847. æKY TTEStyleCommand
  848. æHY TTEStyleCommand—>TTECommand—>TCommand—>TObject
  849. æFi UTEView.p
  850. æT CLASS 
  851. æC TTEStyleCommand provides methods for implementing styles in TextEdit text. In 
  852. old TextEdit text, these methods implement single styles. In the MacApp 2.0 
  853. version of TextEdit, these methods implement multiple styles in TextEdit text. 
  854. TTEStyleCommand also provides methods for undoing and redoing style changes. 
  855.  
  856.  
  857.  
  858. æKY TTETypingCommand
  859. æHY TTETypingCommand—>TTECommand—>TCommand—>TObject
  860. æFi UTEView.p
  861. æT CLASS 
  862. æC TTETypingCommand is a specialized subclass of TTECommand that emulates Macintosh 
  863. Toolbox TextEdit. A record of overtyped or stricken characters in 
  864. TTETypingCommand.AddCharacter allows typing to be undone. 
  865.  
  866.  
  867.  
  868. æKY TTEView
  869. æHY TTEView—>TView—>TEvtHandler—>TObject
  870. æFi UTEView.p
  871. æT CLASS 
  872. æC TTEView provides a view with the the basic function of TextEdit. TTEView is a 
  873. view subclass representing a TextEdit record. TextEdit is the simple text-editing 
  874. facility built into the Macintosh ROM.The purpose of a TTEView is to ensure 
  875. proper functioning (for instance, scrolling, printing, page breaks, and command 
  876. handling) of TextEdit in a MacApp environment. 
  877.  
  878.  
  879.  
  880. æKY TTextGridView
  881. æHY TTextGridView—>TGridView—>TView—>TEvtHandler—>TObject
  882. æFi UGridView.p
  883. æT CLASS 
  884. æC TTextGridView is a subclass of TGridView specialized for the creation of matrix 
  885. or grid representations of text data. A classic example of such a display is a 
  886. spreadsheet. 
  887.  
  888.  
  889.  
  890. æKY TTextListView
  891. æHY TTextListView—>TTextGridView—>TGridView—>TView—>TEvtHandler—>TObject
  892. æFi UGridView.p
  893. æT CLASS 
  894. æC TTextListView is a subclass of TTextGridView specialized for the display of a 
  895. one-dimensional, vertical, scrolling display of text items. It is usually used to 
  896. mimic the Macintosh Standard File Dialog box. 
  897.  
  898.  
  899.  
  900. æKY TTranscriptView
  901. æHY TTranscriptView—>TView—>TEvtHandler—>TObject
  902. æFi UTranscriptView.p
  903. æT CLASS 
  904. æC TTranscriptView provides the behavior for the content region of the Debug 
  905. Transcript window. Installed in a TWindow object, it behaves as a simple terminal 
  906. window. You can use TTranscriptView objects if you need to create such terminal 
  907. windows. 
  908.  
  909.  
  910.  
  911. æKY TUndoRedoCommand
  912. æHY TUndoRedoCommand—>TNoChangesCommand—>TCommand—>TObject
  913. æFi UMacApp.p
  914. æT CLASS 
  915. æC TUndoRedoCommand is a specialized subclass of TNoChangesCommand that contains 
  916. the methods needed to support the Undo and Redo menu items. 
  917.  
  918.  
  919.  
  920. æKY TView
  921. æHY TView—>TEvtHandler—>TObject
  922. æFi UMacApp.p
  923. æT CLASS 
  924. æC TView is an abstract class, the ancestor of all classes that display images on 
  925. the Macintosh screen. With the exception of the desktop and pull-down menus, 
  926. everything visible on the screen in a MacApp application is normally drawn by 
  927. instances of TView’s subclasses. Examples of visible objects drawn by subclasses of 
  928. TView include windows, dialog boxes, scroll bars, icons, pop-up menus, and 
  929. check boxes. Most of the classes that handle user-generated events are descendants 
  930. of TView. 
  931.  
  932.  
  933.  
  934. æKY TWindow
  935. æHY TWindow—>TView—>TEvtHandler—>TObject
  936. æFi UMacApp.p
  937. æT CLASS 
  938. æC TWindow is a class that represents a Window Manager window. It responds to mouse 
  939. clicks outside the window’s content region, draws the window’s size box, and 
  940. overrides other view methods where appropriate. Since TWindow objects represent 
  941. windows, they never have superviews. They must have at least one subview or 
  942. nothing will be drawn in the window’s content region. 
  943.  
  944. æKY Constants
  945. æKL
  946. bBoolean
  947. bByte
  948. bChar
  949. bClass
  950. bCmdNumber
  951. bCntlAdornment
  952. bConfigRec
  953. bControlHandle
  954. bDouble
  955. bExtended
  956. bFixed
  957. bFontName
  958. bGrafPtr
  959. bHandle
  960. bHexInteger
  961. bHexLongInt
  962. bHighByte
  963. bHLState
  964. bIDType
  965. bInteger
  966. bLongInt
  967. bLowByte
  968. bObject
  969. bOSType
  970. bPattern
  971. bPoint
  972. bPointer
  973. bReal
  974. bRect
  975. bResType
  976. bRGBColor
  977. bRgnHandle
  978. bScrapStuff
  979. bSingle
  980. bSizeDeterminer
  981. bString
  982. bStringHandle
  983. bStyle
  984. bTEHandle
  985. bTextStyle
  986. bTitle
  987. bVCoordinate
  988. bVHSelect
  989. bVPoint
  990. bVRect
  991. bWindowPtr
  992. bzCantDraw
  993. bzCantUndo
  994. bzClosing
  995. bzDoFirstClick
  996. bzDontDoFirstClick
  997. bzHideClip
  998. bzMakeModal
  999. bzMakeModeless
  1000. bzQuitting
  1001. bzRedo
  1002. bzRevertAnyways
  1003. bzSaveAnyways
  1004. bzSaveAs
  1005. bzSaveCopy
  1006. bzSetLeftSysJust
  1007. bzSetRightSysJust
  1008. bzShowClip
  1009. bzUndo
  1010. bzUntitled
  1011. cAboutApp
  1012. cCantUndo
  1013. cChangePrinterStyle
  1014. cClear
  1015. cClose
  1016. cCopy
  1017. cCut
  1018. cDebugPrinting
  1019. cDebugWind
  1020. cDoFirstClick
  1021. cEditBase
  1022. cEditLast
  1023. cEditSep
  1024. cEnterMacAppDebugger
  1025. cExperimenting
  1026. cFinderNew
  1027. cFinderOpen
  1028. cFinderPrint
  1029. chBackspace
  1030. chClear
  1031. chDown
  1032. chEnd
  1033. chEnter
  1034. chEscape
  1035. chFunction
  1036. chFwdDelete
  1037. chHelp
  1038. chHome
  1039. chLeft
  1040. chPageDown
  1041. chPageUp
  1042. Chr00
  1043. Chr1F
  1044. chReturn
  1045. chRight
  1046. chSpace
  1047. chTab
  1048. chUp
  1049. cIdentifySoftware
  1050. cIntenseDebugging
  1051. cModalToggle
  1052. cMouseCommand
  1053. cNew
  1054. cNewInspectorWindow
  1055. cNewLast
  1056. cNoCommand
  1057. cOpen
  1058. cOpenLast
  1059. cPageSetup
  1060. cPaste
  1061. cPrFileBase
  1062. cPrFileMax
  1063. cPrint
  1064. cPrintOne
  1065. cPrintSpoolFile
  1066. cPrintToFile
  1067. cPrViewBase
  1068. cPrViewMax
  1069. cQuit
  1070. cReduce50
  1071. cReduceToFit
  1072. cRefreshFrontWindow
  1073. cRememberStyle
  1074. cReportEvt
  1075. cReportMenuChoices
  1076. cRevert
  1077. cSave
  1078. cSaveAs
  1079. cSaveCopy
  1080. cSelectAll
  1081. cSetSysJust
  1082. cShowBorders
  1083. cShowBreaks
  1084. cShowClipboard
  1085. cShowFullSize
  1086. cStyleChange
  1087. cTraceIdle
  1088. cTraceSetupMenus
  1089. cTrackingControl
  1090. cTyping
  1091. cUndo
  1092. cVarClipPicSize
  1093. errAppTable
  1094. errFileChanged
  1095. errFTypeChanged
  1096. errNoPrintDrvr
  1097. errNotImplemented
  1098. errNotMyType
  1099. errOperationsID
  1100. errReasonID
  1101. errRecoveryID
  1102. errRevertFNF
  1103. errSaveAgain
  1104. errSpooling
  1105. hlDim
  1106. hlDimOff
  1107. hlDimOn
  1108. hlOff
  1109. hlOffDim
  1110. hlOffOn
  1111. hlOn
  1112. hlOnDim
  1113. hlOnOff
  1114. kAdorn
  1115. kAEqualB
  1116. kAGreaterThanB
  1117. kALessThanB
  1118. kAllocationIncrement
  1119. kAllowApplicationToSleep
  1120. kApplFontName
  1121. kAskForFilename
  1122. kAutoWrap
  1123. kBuild
  1124. kClearVirtualCode
  1125. kCode
  1126. kControlOn
  1127. kCopyright
  1128. kDataOpen
  1129. kDebugBuzzStrings
  1130. kDebugFont
  1131. kDebugParamsID
  1132. kDebugSize
  1133. kDefaultCredits
  1134. kDefaultViewID
  1135. kDefaultWindowID
  1136. kDeSelect
  1137. kDontAdorn
  1138. kDontAlign
  1139. kDontExtend
  1140. kDontFlash
  1141. kDontHighlight
  1142. kDontInvalidate
  1143. kDontRedraw
  1144. kEmptyIndex
  1145. kEraseFirst
  1146. kErrorHandled
  1147. kEscapeVirtualCode
  1148. kExtend
  1149. kF10VirtualCode
  1150. kF11VirtualCode
  1151. kF12VirtualCode
  1152. kF13VirtualCode
  1153. kF14VirtualCode
  1154. kF15VirtualCode
  1155. kF1VirtualCode
  1156. kF2VirtualCode
  1157. kF3VirtualCode
  1158. kF4VirtualCode
  1159. kF5VirtualCode
  1160. kF6VirtualCode
  1161. kF7VirtualCode
  1162. kF8VirtualCode
  1163. kF9VirtualCode
  1164. kFailAbstract
  1165. kFailCoercion
  1166. kFailMethNotFound
  1167. kFailNone
  1168. kFixedSize
  1169. kFlash
  1170. kForceDepth
  1171. kForDisplay
  1172. kForPrinting
  1173. kFrame
  1174. kFwdDelVirtualCode
  1175. kGZMaxAlloc
  1176. kHexDigits
  1177. kHighlight
  1178. kHMargin
  1179. kIDBuzzString
  1180. kIDClipView
  1181. kIDClipWindow
  1182. kIDDefaultView
  1183. kIDMNTBbyCmdNumber
  1184. kInvalidate
  1185. kInvalidObj
  1186. kInvalidValue
  1187. kInvalidValueReasons
  1188. kInvisible
  1189. kItem1EqualItem2
  1190. kItem1GreaterThanItem2
  1191. kItem1LessThanItem2
  1192. kItemEqualCriteria
  1193. kItemGreaterThanCriteria
  1194. kItemLessThanCriteria
  1195. kIterateBackward
  1196. kIterateForward
  1197. kLeftPalette
  1198. kLMApFontID
  1199. kLMmapFalse
  1200. kLMmapTrue
  1201. kLMSysFontFam
  1202. kLMSysFontSize
  1203. kLMTESysJust
  1204. kLowSpaceInterval
  1205. kMakingCopy
  1206. kMANameSize
  1207. kMaxCoord
  1208. kMaxFlags
  1209. kMaxIdleTime
  1210. kMaxSignatures
  1211. kMaxSyms
  1212. kMaxTEWidth
  1213. kMBarDisplayed
  1214. kMBarHierarchical
  1215. kMBarNotDisplayed
  1216. kMinAhead
  1217. kMNTBbyCmdNumber
  1218. kMouseMovedMessage
  1219. kMoveBAbsolute
  1220. kMoveLAbsolute
  1221. kMoveLImmed
  1222. kMoveWAbsolute
  1223. kNeverInitialized
  1224. kNilClass
  1225. kNoAutoWrap
  1226. kNoButton
  1227. kNoEraseFirst
  1228. kNoFileRefnum
  1229. kNoIdentifier
  1230. kNonNumericCharacters
  1231. kNoOfDefaultReasons
  1232. kNoResource
  1233. kNoSpaceForCaret
  1234. kNoStaticLink
  1235. kNoTemplate
  1236. kPreferColor
  1237. kPrintDriverName
  1238. kPrintInfoSize
  1239. kPriorityHigh
  1240. kPriorityHighest
  1241. kPriorityLow
  1242. kPriorityLowest
  1243. kPriorityNormal
  1244. kRedraw
  1245. kRsrcCheckInterval
  1246. kRsrcFileOverhead
  1247. kRsrcOpen
  1248. kRsrcOverhead
  1249. kRsrcTypeOverhead
  1250. kSaveCurrentChars
  1251. kSBarSize
  1252. kSBarSizeMinus1
  1253. kScrollBarId
  1254. kSelect
  1255. kShowCantUndo
  1256. kShowRedo
  1257. kShowUndo
  1258. kSpaceForCaret
  1259. kSquareDots
  1260. kStdButton
  1261. kStdCheckBox
  1262. kStdCluster
  1263. kStdControl
  1264. kStdDefaultView
  1265. kStdDialogView
  1266. kStdDocument
  1267. kStdEditText
  1268. kStdGridView
  1269. kStdIcon
  1270. kStdList
  1271. kStdMainFileType
  1272. kStdNumberText
  1273. kStdPattern
  1274. kStdPicture
  1275. kStdPopup
  1276. kStdRadio
  1277. kStdScroller
  1278. kStdScrollUnit
  1279. kStdSScrollBar
  1280. kStdStaggerAmount
  1281. kStdStaticText
  1282. kStdSzMinus1SBar
  1283. kStdSzSBar
  1284. kStdTEView
  1285. kStdTextGridView
  1286. kStdTextListView
  1287. kStdTracker
  1288. kStdView
  1289. kStdWindow
  1290. kSuspendOrResume
  1291. kSwitchToTarget
  1292. kSysClear
  1293. kSysCopy
  1294. kSysCut
  1295. kSysFontName
  1296. kSysPaste
  1297. kSysUndo
  1298. kTooManyCharacters
  1299. kTopPalette
  1300. kUnlimited
  1301. kUsesDataFork
  1302. kUsesRsrcFork
  1303. kUsualPages
  1304. kValidValue
  1305. kValueTooLarge
  1306. kValueTooSmall
  1307. kViewRsrcExpandAmt
  1308. kVisible
  1309. kVMargin
  1310. kWantHScrollBar
  1311. kWantVScrollBar
  1312. kWatchDelay
  1313. kWithoutStyle
  1314. kWithStyle
  1315. kWordAlign
  1316. kWWEol
  1317. kYesButton
  1318. mApple
  1319. maxErr
  1320. mButtonHit
  1321. mCancelHit
  1322. mCancelKey
  1323. mCheckBoxHit
  1324. mClusterHit
  1325. mControlHit
  1326. mDebug
  1327. mDefaultKey
  1328. mEdit
  1329. mEditEnterKey
  1330. mEditReturnKey
  1331. mEditTabKey
  1332. mEditTextHit
  1333. mFile
  1334. mHScrollBarHit
  1335. mIconHit
  1336. minErr
  1337. mLastMenu
  1338. mListItemHit
  1339. mListScrollBarHit
  1340. mOKHit
  1341. mPatternHit
  1342. mPictureHit
  1343. mPopupHit
  1344. mRadioHit
  1345. msgAlert
  1346. msgAltRecovery
  1347. msgCancelled
  1348. msgCmdErr
  1349. msgDrawFailed
  1350. msgExportClipFailed
  1351. msgImportClipFailed
  1352. msgInitFailed
  1353. msgLookup
  1354. msgNewFailed
  1355. msgOpenFailed
  1356. msgPrintFailed
  1357. msgRevertFailed
  1358. msgSaveAsFailed
  1359. msgSaveCopyFailed
  1360. msgSaveFailed
  1361. msgStrList
  1362. mStaticTextHit
  1363. mVScrollBarHit
  1364. phAboutApp
  1365. phCmdErr
  1366. phFileChanged
  1367. phFinderPrintDialog
  1368. phGenError
  1369. phInvalidValue
  1370. phNoPages
  1371. phOfferReadOnly
  1372. phPurgeOld
  1373. phReopenDoc
  1374. phRevert
  1375. phSaveChanges
  1376. phSpaceIsLow
  1377. phSpoolPrintDialog
  1378. phStylesTooBig
  1379. phTooManyChars
  1380. phUnimplemented
  1381. phUnknownErr
  1382. phUnsupportedConfiguration
  1383. phWhichDoc
  1384. teJustSystem
  1385.  
  1386. æKY bBoolean
  1387. æD 
  1388. æFi UMacAppUtilities
  1389. æT CONSTANT 
  1390. æC A field type indicator for the Fields method. This value indicates a Pascal 
  1391. BOOLEAN type.
  1392.  
  1393. æKY bByte
  1394. æD 
  1395. æFi UMacAppUtilities
  1396. æT CONSTANT 
  1397. æC A field type indicator for the Fields method. This value indicates a Pascal 
  1398. BYTE type.
  1399.  
  1400. æKY bChar
  1401. æD 
  1402. æFi UMacAppUtilities
  1403. æT CONSTANT 
  1404. æC A field type indicator for the Fields method. This value indicates a Pascal 
  1405. CHAR type.
  1406.  
  1407. æKY bClass
  1408. æD 
  1409. æFi UMacAppUtilities
  1410. æT CONSTANT 
  1411. æC A field type indicator for the Fields method. This value indicates a class 
  1412. record.
  1413.  
  1414. æKY bCmdNumber
  1415. æD 
  1416. æFi UMacAppUtilities
  1417. æT CONSTANT 
  1418. æC A field type indicator for the Fields method. This value indicates a CmdNumber 
  1419. type.
  1420.  
  1421. æKY bCntlAdornment
  1422. æD 
  1423. æFi UMacAppUtilities
  1424. æT CONSTANT 
  1425. æC A field type indicator for the Fields method. This value indicates a 
  1426. CntlAdornment type.
  1427.  
  1428. æKY bConfigRec
  1429. æD 
  1430. æFi UMacAppUtilities
  1431. æT CONSTANT 
  1432. æC A field type indicator for the Fields method. This value indicates a ConfigRec 
  1433. type.
  1434.  
  1435. æKY bControlHandle
  1436. æD 
  1437. æFi UMacAppUtilities
  1438. æT CONSTANT 
  1439. æC A field type indicator for the Fields method. This value indicates a 
  1440. ControlHandle type.
  1441.  
  1442. æKY bDouble
  1443. æD 
  1444. æFi UMacAppUtilities
  1445. æT CONSTANT 
  1446. æC A field type indicator for the Fields method. This value indicates a Double 
  1447. type.
  1448.  
  1449. æKY bExtended
  1450. æD 
  1451. æFi UMacAppUtilities
  1452. æT CONSTANT 
  1453. æC A field type indicator for the Fields method. This value indicates an Extended 
  1454. type.
  1455.  
  1456. æKY bFixed
  1457. æD 
  1458. æFi UMacAppUtilities
  1459. æT CONSTANT 
  1460. æC A field type indicator for the Fields method. This value indicates a Fixed 
  1461. type.
  1462.  
  1463. æKY bFontName
  1464. æD 
  1465. æFi UMacAppUtilities
  1466. æT CONSTANT 
  1467. æC A field type indicator for the Fields method. This value indicates a FontName 
  1468. type.
  1469.  
  1470. æKY bGrafPtr
  1471. æD 
  1472. æFi UMacAppUtilities
  1473. æT CONSTANT 
  1474. æC A field type indicator for the Fields method. This value indicates a GrafPtr 
  1475. type.
  1476.  
  1477. æKY bHandle
  1478. æD 
  1479. æFi UMacAppUtilities
  1480. æT CONSTANT 
  1481. æC A field type indicator for the Fields method. This value indicates a Handle 
  1482. type.
  1483.  
  1484. æKY bHexInteger
  1485. æD 
  1486. æFi UMacAppUtilities
  1487. æT CONSTANT 
  1488. æC A field type indicator for the Fields method. This value indicates a HexInteger 
  1489. type.
  1490.  
  1491. æKY bHexLongInt
  1492. æD 
  1493. æFi UMacAppUtilities
  1494. æT CONSTANT 
  1495. æC A field type indicator for the Fields method. This value indicates a HexLongInt 
  1496. type.
  1497.  
  1498. æKY bHighByte
  1499. æD 
  1500. æFi UMacAppUtilities
  1501. æT CONSTANT 
  1502. æC A field type indicator for the Fields method. This value indicates the high 
  1503. byte of a word.
  1504.  
  1505. æKY bHLState
  1506. æD 
  1507. æFi UMacAppUtilities
  1508. æT CONSTANT 
  1509. æC A field type indicator for the Fields method. This value indicates an HLState 
  1510. (highlight state) type.
  1511.  
  1512. æKY bIDType
  1513. æD 
  1514. æFi UMacAppUtilities
  1515. æT CONSTANT 
  1516. æC A field type indicator for the Fields method. This value indicates a view 
  1517. object identifier type.
  1518.  
  1519.  
  1520. æKY bInteger
  1521. æD 
  1522. æFi UMacAppUtilities
  1523. æT CONSTANT 
  1524. æC A field type indicator for the Fields method. This value indicates a Pascal 
  1525. INTEGER type.
  1526.  
  1527.  
  1528. æKY bLongInt
  1529. æD 
  1530. æFi UMacAppUtilities
  1531. æT CONSTANT 
  1532. æC A field type indicator for the Fields method. This value indicates a LongInt 
  1533. type.
  1534.  
  1535. æKY bLowByte
  1536. æD 
  1537. æFi UMacAppUtilities
  1538. æT CONSTANT 
  1539. æC A field type indicator for the Fields method. This value indicates the low byte 
  1540. of a word.
  1541.  
  1542. æKY bObject
  1543. æD 
  1544. æFi UMacAppUtilities
  1545. æT CONSTANT 
  1546. æC A field type indicator for the Fields method. This value indicates an Object 
  1547. type.
  1548.  
  1549. æKY bOSType
  1550. æD 
  1551. æFi UMacAppUtilities
  1552. æT CONSTANT 
  1553. æC A field type indicator for the Fields method. This value indicates an OSType 
  1554. type.
  1555.  
  1556. æKY bPattern
  1557. æD 
  1558. æFi UMacAppUtilities
  1559. æT CONSTANT 
  1560. æC A field type indicator for the Fields method. This value indicates a Pattern 
  1561. type.
  1562.  
  1563. æKY bPoint
  1564. æD 
  1565. æFi UMacAppUtilities
  1566. æT CONSTANT 
  1567. æC A field type indicator for the Fields method. This value indicates a Point 
  1568. type.
  1569.  
  1570. æKY bPointer
  1571. æD 
  1572. æFi UMacAppUtilities
  1573. æT CONSTANT 
  1574. æC A field type indicator for the Fields method. This value indicates a Pointer 
  1575. type.
  1576.  
  1577. æKY bReal
  1578. æD 
  1579. æFi UMacAppUtilities
  1580. æT CONSTANT 
  1581. æC A field type indicator for the Fields method. This value indicates a Pascal 
  1582. REAL type.
  1583.  
  1584.  
  1585. æKY bRect
  1586. æD 
  1587. æFi UMacAppUtilities
  1588. æT CONSTANT 
  1589. æC A field type indicator for the Fields method. This value indicates a Rect type.
  1590.  
  1591. æKY bResType
  1592. æD 
  1593. æFi UMacAppUtilities
  1594. æT CONSTANT 
  1595. æC A field type indicator for the Fields method. This value indicates a ResType 
  1596. type.
  1597.  
  1598. æKY bRGBColor
  1599. æD 
  1600. æFi UMacAppUtilities
  1601. æT CONSTANT 
  1602. æC A field type indicator for the Fields method. This value indicates an RGBColor 
  1603. type.
  1604.  
  1605.  
  1606. æKY bRgnHandle
  1607. æD 
  1608. æFi UMacAppUtilities
  1609. æT CONSTANT 
  1610. æC A field type indicator for the Fields method. This value indicates a RgnHandle 
  1611. type.
  1612.  
  1613. æKY bScrapStuff
  1614. æD 
  1615. æFi UMacAppUtilities
  1616. æT CONSTANT 
  1617. æC A field type indicator for the Fields method. This value indicates a ScrapStuff 
  1618. type.
  1619.  
  1620. æKY bSingle
  1621. æD 
  1622. æFi UMacAppUtilities
  1623. æT CONSTANT 
  1624. æC A field type indicator for the Fields method. This value indicates a SANE® 
  1625. Single type.
  1626.  
  1627. æKY bSizeDeterminer
  1628. æD 
  1629. æFi UMacAppUtilities
  1630. æT CONSTANT 
  1631. æC A field type indicator for the Fields method. This value indicates a 
  1632. SizeDeterminer type.
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639. æKY bString
  1640. æD 
  1641. æFi UMacAppUtilities
  1642. æT CONSTANT 
  1643. æC A field type indicator for the Fields method. This value indicates a String 
  1644. type.
  1645.  
  1646. æKY bStringHandle
  1647. æD 
  1648. æFi UMacAppUtilities
  1649. æT CONSTANT 
  1650. æC A field type indicator for the Fields method. This value indicates a 
  1651. StringHandle type.
  1652.  
  1653. æKY bStyle
  1654. æD 
  1655. æFi UMacAppUtilities
  1656. æT CONSTANT 
  1657. æC A field type indicator for the Fields method. This value indicates a Style 
  1658. type.
  1659.  
  1660. æKY bTEHandle
  1661. æD 
  1662. æFi UMacAppUtilities
  1663. æT CONSTANT 
  1664. æC A field type indicator for the Fields method. This value indicates a TEHandle 
  1665. type.
  1666.  
  1667. æKY bTextStyle
  1668. æD 
  1669. æFi UMacAppUtilities
  1670. æT CONSTANT 
  1671. æC A field type indicator for the Fields method. This value indicates a textStyle 
  1672. type.
  1673.  
  1674. æKY bTitle
  1675. æD 
  1676. æFi UMacAppUtilities
  1677. æT CONSTANT 
  1678. æC A field type indicator for the Fields method. This value indicates a Title 
  1679. type.
  1680.  
  1681. æKY bVCoordinate
  1682. æD 
  1683. æFi UMacAppUtilities
  1684. æT CONSTANT 
  1685. æC A field type indicator for the Fields method. This value indicates a 
  1686. VCoordinate type.
  1687.  
  1688. æKY bVHSelect
  1689. æD 
  1690. æFi UMacAppUtilities
  1691. æT CONSTANT 
  1692. æC A field type indicator for the Fields method. This value indicates a VHSelect 
  1693. type.
  1694.  
  1695. æKY bVPoint
  1696. æD 
  1697. æFi UMacAppUtilities
  1698. æT CONSTANT 
  1699. æC A field type indicator for the Fields method. This value indicates a VPoint 
  1700. type.
  1701.  
  1702. æKY bVRect
  1703. æD 
  1704. æFi UMacAppUtilities
  1705. æT CONSTANT 
  1706. æC A field type indicator for the Fields method. This value indicates a VRect 
  1707. type.
  1708.  
  1709. æKY bWindowPtr
  1710. æD 
  1711. æFi UMacAppUtilities
  1712. æT CONSTANT 
  1713. æC A field type indicator for the Fields method. This value indicates a WindowPtr 
  1714. type.
  1715.  
  1716. æKY bzCantDraw
  1717. æD 
  1718. æFi UMacAppUtilities
  1719. æT CONSTANT 
  1720. æC An index to an item in the MacApp buzz-string resource (an 'STR#' resource 
  1721. having ID=kBuzzString and the title mBuzzwords). The specified item is the text of 
  1722. the “Unable to draw contents of window” error message.
  1723.  
  1724. æKY bzCantUndo
  1725. æD 
  1726. æFi UMacAppUtilities
  1727. æT CONSTANT 
  1728. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1729. having ID=kBuzzString and the title mBuzzwords). The specified item is the text of 
  1730. the Can’t Undo menu item.
  1731.  
  1732. æKY bzClosing
  1733. æD 
  1734. æFi UMacAppUtilities
  1735. æT CONSTANT 
  1736. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1737. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1738. Closing alert message.
  1739.  
  1740. æKY bzDoFirstClick
  1741. æD 
  1742. æFi UMacAppUtilities
  1743. æT CONSTANT 
  1744. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1745. having ID=128 and the title mBuzzwords). The specified item is the text of the Do 
  1746. First Click For This Window menu item.
  1747.  
  1748.  
  1749. æKY bzDontDoFirstClick
  1750. æD 
  1751. æFi UMacAppUtilities
  1752. æT CONSTANT 
  1753. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1754. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1755. Don't Do First Click For This Window menu item.
  1756.  
  1757. æKY bzHideClip
  1758. æD 
  1759. æFi UMacAppUtilities
  1760. æT CONSTANT 
  1761. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1762. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1763. “Hide Clipboard” menu item.
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770. æKY bzMakeModal
  1771. æD 
  1772. æFi UMacAppUtilities
  1773. æT CONSTANT 
  1774. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1775. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1776. Make Front Window Modal menu item.
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783. æKY bzMakeModeless
  1784. æD 
  1785. æFi UMacAppUtilities
  1786. æT CONSTANT 
  1787. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1788. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1789. Make Front Window Modeless menu item.
  1790.  
  1791. æKY bzQuitting
  1792. æD 
  1793. æFi UMacAppUtilities
  1794. æT CONSTANT 
  1795. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1796. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1797. Quitting alert message.
  1798.  
  1799. æKY bzRedo
  1800. æD 
  1801. æFi UMacAppUtilities
  1802. æT CONSTANT 
  1803. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1804. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1805. Redo menu item.
  1806.  
  1807. æKY bzRevertAnyways
  1808. æD 
  1809. æFi UMacAppUtilities
  1810. æT CONSTANT 
  1811. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1812. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1813. Revert menu item.
  1814.  
  1815.  
  1816. æKY bzSaveAnyways
  1817. æD 
  1818. æFi UMacAppUtilities
  1819. æT CONSTANT 
  1820. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1821. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1822. Save menu item.
  1823.  
  1824.  
  1825.  
  1826.  
  1827. æKY bzSaveAs
  1828. æD 
  1829. æFi UMacAppUtilities
  1830. æT CONSTANT 
  1831. æC An index to an item in the MacApp buzz-string resource  (a 'cmnu' resource 
  1832. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1833. Save As... menu item.
  1834.  
  1835. æKY bzSaveCopy
  1836. æD 
  1837. æFi UMacAppUtilities
  1838. æT CONSTANT 
  1839. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1840. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1841. Save a Copy menu item.
  1842.  
  1843. æKY bzSetLeftSysJust
  1844. æD 
  1845. æFi UMacAppUtilities
  1846. æT CONSTANT 
  1847. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1848. having ID=128 and the title mBuzzwords). The specified item is the text of the Set 
  1849. System to Left Justification menu item.
  1850.  
  1851. æKY bzSetRightSysJust
  1852. æD 
  1853. æFi UMacAppUtilities
  1854. æT CONSTANT 
  1855. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1856. having ID=128 and the title mBuzzwords). The specified item is the text of the Set 
  1857. System to Right Justification menu item.
  1858.  
  1859.  
  1860. æKY bzShowClip
  1861. æD 
  1862. æFi UMacAppUtilities
  1863. æT CONSTANT 
  1864. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1865. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1866. Show Clipboard menu item.
  1867.  
  1868. æKY bzUndo
  1869. æD 
  1870. æFi UMacAppUtilities
  1871. æT CONSTANT 
  1872. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1873. having ID=128 and the title mBuzzwords). The specified item is the text of the 
  1874. Undo menu item.
  1875.  
  1876. æKY bzUntitled
  1877. æD 
  1878. æFi UMacAppUtilities
  1879. æT CONSTANT 
  1880. æC An index to an item in the MacApp buzz-string resource (a 'cmnu' resource 
  1881. having ID=128 and the title mBuzzwords). The specified item is used as the title 
  1882. for untitled documents. If the string is blank, the title is taken from the 
  1883. window-title template; if you include the string “<<<>>>” in the bzUntitled 
  1884. string, then MacApp will substitute a number for the string. For example, if the 
  1885. buzz string contains “Untitled-<<<>>>”, untitled windows will be named “Untitled-
  1886. 1”, “Untitled-2”, and so on.
  1887.  
  1888.  
  1889. æKY cAboutApp
  1890. æD 
  1891. æFi UMacAppUtilities
  1892. æT CONSTANT 
  1893. æC The command number for the About menu item.
  1894.  
  1895. æKY cCantUndo
  1896. æD 
  1897. æFi UMacAppUtilities
  1898. æT CONSTANT 
  1899. æC The command number for the Undo menu item when the command cannot be undone.
  1900.  
  1901. æKY cChangePrinterStyle
  1902. æD 
  1903. æFi UMacAppUtilities
  1904. æT CONSTANT 
  1905. æC The command number for the command that handles the Page Setup dialog box.
  1906.  
  1907. æKY cClear
  1908. æD 
  1909. æFi UMacAppUtilities
  1910. æT CONSTANT 
  1911. æC The command number for the Clear menu item.
  1912.  
  1913. æKY cClose
  1914. æD 
  1915. æFi UMacAppUtilities
  1916. æT CONSTANT 
  1917. æC The command number for the Close menu item.
  1918.  
  1919. æKY cCopy
  1920. æD 
  1921. æFi UMacAppUtilities
  1922. æT CONSTANT 
  1923. æC The command number for the Copy menu item.
  1924.  
  1925. æKY cCut
  1926. æD 
  1927. æFi UMacAppUtilities
  1928. æT CONSTANT 
  1929. æC The command number for the Cut menu item.
  1930.  
  1931. æKY cDebugPrinting
  1932. æD 
  1933. æFi UMacAppUtilities
  1934. æT CONSTANT 
  1935. æC The command number for the Debug Printing menu item in MacApp.
  1936.  
  1937.  
  1938. æKY cDebugWind
  1939. æD 
  1940. æFi UMacAppUtilities
  1941. æT CONSTANT 
  1942. æC The command number for the Show Debug Transcript menu item in MacApp.
  1943.  
  1944. æKY cDoFirstClick
  1945. æD 
  1946. æFi UMacAppUtilities
  1947. æT CONSTANT 
  1948. æC The command number for the Do First Click For This Window menu item in MacApp.
  1949.  
  1950. æKY cEditBase
  1951. æD 
  1952. æFi UMacAppUtilities
  1953. æT CONSTANT 
  1954. æC The lower bound for a range of command numbers reserved for editing operations.
  1955.  
  1956. æKY cEditLast
  1957. æD 
  1958. æFi UMacAppUtilities
  1959. æT CONSTANT 
  1960. æC The upper bound for a range of command numbers reserved for editing operations.
  1961.  
  1962. æKY cEditSep
  1963. æD 
  1964. æFi UMacAppUtilities
  1965. æT CONSTANT 
  1966. æC The command number for the line that separates the Undo and Cut items in the 
  1967. Edit menu.
  1968.  
  1969. æKY cEnterMacAppDebugger
  1970. æD 
  1971. æFi UMacAppUtilities
  1972. æT CONSTANT 
  1973. æC The command number for the Enter MacApp Debugger menu item in MacApp.
  1974.  
  1975. æKY cExperimenting
  1976. æD 
  1977. æFi UMacAppUtilities
  1978. æT CONSTANT 
  1979. æC The command number for the Enable Experimental Features menu item in MacApp.
  1980.  
  1981. æKY cFinderNew
  1982. æD 
  1983. æFi UMacAppUtilities
  1984. æT CONSTANT 
  1985. æC The command number passed to the application when the user selects the 
  1986. application’s icon from the Finder™ and chooses the Open menu item or launches the 
  1987. application from the Finder by double-clicking it.
  1988.  
  1989. æKY cFinderOpen
  1990. æD 
  1991. æFi UMacAppUtilities
  1992. æT CONSTANT 
  1993. æC The command number passed to the application when the user selects a document 
  1994. icon from the Finder™ and chooses the Open menu item or launches the application 
  1995. by double-clicking on a document in the Finder.
  1996.  
  1997. æKY cFinderPrint
  1998. æD 
  1999. æFi UMacAppUtilities
  2000. æT CONSTANT 
  2001. æC The command number passed to the application when the user selects a document 
  2002. icon in the Finder™ and chooses the Print menu item.
  2003.  
  2004. æKY chBackspace
  2005. æD 
  2006. æFi UMacAppUtilities
  2007. æT CONSTANT 
  2008. æC The ASCII code for the Delete key (or Backspace key on some keyboards) .
  2009.  
  2010. æKY chClear
  2011. æD 
  2012. æFi UMacAppUtilities
  2013. æT CONSTANT 
  2014. æC The ASCII code for the Clear key.
  2015.  
  2016. æKY chDown
  2017. æD 
  2018. æFi UMacAppUtilities
  2019. æT CONSTANT 
  2020. æC The ASCII code for the Down Arrow key.
  2021.  
  2022.  
  2023. æKY chEnd
  2024. æD 
  2025. æFi UMacAppUtilities
  2026. æT CONSTANT 
  2027. æC The ASCII code for the End key.
  2028.  
  2029. æKY chEnter
  2030. æD 
  2031. æFi UMacAppUtilities
  2032. æT CONSTANT 
  2033. æC The ASCII code for the Enter key.
  2034.  
  2035. æKY chEscape
  2036. æD 
  2037. æFi UMacAppUtilities
  2038. æT CONSTANT 
  2039. æC The ASCII code for the Escape key.
  2040.  
  2041. æKY chFunction
  2042. æD 
  2043. æFi UMacAppUtilities
  2044. æT CONSTANT 
  2045. æC The ASCII code for any function key.
  2046.  
  2047. æKY chFwdDelete
  2048. æD 
  2049. æFi UMacAppUtilities
  2050. æT CONSTANT 
  2051. æC The ASCII code for the Forward Delete key.
  2052.  
  2053. æKY chHelp
  2054. æD 
  2055. æFi UMacAppUtilities
  2056. æT CONSTANT 
  2057. æC The ASCII code for the Help key.
  2058.  
  2059. æKY chHome
  2060. æD 
  2061. æFi UMacAppUtilities
  2062. æT CONSTANT 
  2063. æC The ASCII code for the Home key.
  2064.  
  2065. æKY chLeft
  2066. æD 
  2067. æFi UMacAppUtilities
  2068. æT CONSTANT 
  2069. æC The ASCII code for the Left Arrow key.
  2070.  
  2071.  
  2072. æKY chPageDown
  2073. æD 
  2074. æFi UMacAppUtilities
  2075. æT CONSTANT 
  2076. æC The ASCII code for the Page Down key.
  2077.  
  2078. æKY chPageUp
  2079. æD 
  2080. æFi UMacAppUtilities
  2081. æT CONSTANT 
  2082. æC The ASCII code for the Page Up key.
  2083.  
  2084. æKY Chr00
  2085. æD 
  2086. æFi UMacAppUtilities
  2087. æT CONSTANT 
  2088. æC The ASCII code for the null character.
  2089.  
  2090.  
  2091. æKY Chr1F
  2092. æD 
  2093. æFi UMacAppUtilities
  2094. æT CONSTANT 
  2095. æC The character ($1F) that is the upper bound of the control character set Chr00–
  2096. Chr1F.
  2097.  
  2098. æKY chReturn
  2099. æD 
  2100. æFi UMacAppUtilities
  2101. æT CONSTANT 
  2102. æC The ASCII code for the Return key.
  2103.  
  2104. æKY chRight
  2105. æD 
  2106. æFi UMacAppUtilities
  2107. æT CONSTANT 
  2108. æC The ASCII code for the Right Arrow key.
  2109.  
  2110. æKY chSpace
  2111. æD 
  2112. æFi UMacAppUtilities
  2113. æT CONSTANT 
  2114. æC The ASCII code for the space bar.
  2115.  
  2116.  
  2117. æKY chTab
  2118. æD 
  2119. æFi UMacAppUtilities
  2120. æT CONSTANT 
  2121. æC The ASCII code for the Tab key.
  2122.  
  2123. æKY chUp
  2124. æD 
  2125. æFi UMacAppUtilities
  2126. æT CONSTANT 
  2127. æC The ASCII code for the Up Arrow key.
  2128.  
  2129. æKY cIdentifySoftware
  2130. æD 
  2131. æFi UMacAppUtilities
  2132. æT CONSTANT 
  2133. æC The command number that causes the objects in the target chain to identify 
  2134. themselves in the WriteLn window.
  2135.  
  2136.  
  2137. æKY cIntenseDebugging
  2138. æD 
  2139. æFi UMacAppUtilities
  2140. æT CONSTANT 
  2141. æC The command number for the Intense Debugging menu item in MacApp.
  2142.  
  2143. æKY cModalToggle
  2144. æD 
  2145. æFi UMacAppUtilities
  2146. æT CONSTANT 
  2147. æC The command number for the Make Front Window Modal and Make Front Window 
  2148. Modeless menu items in MacApp.
  2149.  
  2150. æKY cMouseCommand
  2151. æD 
  2152. æFi UMacAppUtilities
  2153. æT CONSTANT 
  2154. æC The command number for a generic mouse command.
  2155.  
  2156. æKY cNew
  2157. æD 
  2158. æFi UMacAppUtilities
  2159. æT CONSTANT 
  2160. æC The lower bound for a range of commands assigned to the New menu item.
  2161.  
  2162.  
  2163. æKY cNewInspectorWindow
  2164. æD 
  2165. æFi UMacAppUtilities
  2166. æT CONSTANT 
  2167. æC The command number for the New Inspector Window menu item in MacApp.
  2168.  
  2169. æKY cNewLast
  2170. æD 
  2171. æFi UMacAppUtilities
  2172. æT CONSTANT 
  2173. æC The upper bound for a range of command numbers assigned to the New menu item.
  2174.  
  2175. æKY cNoCommand
  2176. æD 
  2177. æFi UMacAppUtilities
  2178. æT CONSTANT 
  2179. æC The command number that represents no command.
  2180.  
  2181. æKY cOpen
  2182. æD 
  2183. æFi UMacAppUtilities
  2184. æT CONSTANT 
  2185. æC The lower bound for a range of command numbers assigned to the Open menu item.
  2186.  
  2187.  
  2188. æKY cOpenLast
  2189. æD 
  2190. æFi UMacAppUtilities
  2191. æT CONSTANT 
  2192. æC The upper bound for a range of command numbers assigned to the Open menu item.
  2193.  
  2194. æKY cPageSetup
  2195. æD 
  2196. æFi UMacAppUtilities
  2197. æT CONSTANT 
  2198. æC The command number for the Page Setup menu item.
  2199.  
  2200. æKY cPaste
  2201. æD 
  2202. æFi UMacAppUtilities
  2203. æT CONSTANT 
  2204. æC The command number for the Paste menu item.
  2205.  
  2206. æKY cPrFileBase
  2207. æD 
  2208. æFi UMacAppUtilities
  2209. æT CONSTANT 
  2210. æC The lower bound for a range of command numbers assigned to printing commands 
  2211. used for files that are not displayed; they are used when the user is printing 
  2212. from the Finder™. Command numbers between the values of cPrFileBase and cPrFileMax 
  2213. are sent to the print handler for the document (as specified by the 
  2214. fDocPrintHandler field), even if that print handler is not in the fTarget chain.
  2215.  
  2216.  
  2217. æKY cPrFileMax
  2218. æD 
  2219. æFi UMacAppUtilities
  2220. æT CONSTANT 
  2221. æC The upper bound of a range of command numbers assigned to printing commands 
  2222. used for files that are not displayed; they are used when printing from the 
  2223. Finder™. Command numbers between the values of cPrFileBase and cPrFileMax are sent 
  2224. to a document's fDocPrintHandler even if it is not in the fTarget chain.
  2225.  
  2226. æKY cPrint
  2227. æD 
  2228. æFi UMacAppUtilities
  2229. æT CONSTANT 
  2230. æC The command number for the Print menu item.
  2231.  
  2232. æKY cPrintOne
  2233. æD 
  2234. æFi UMacAppUtilities
  2235. æT CONSTANT 
  2236. æC The command number for the Print One menu item.
  2237.  
  2238. æKY cPrintSpoolFile
  2239. æD 
  2240. æFi UMacAppUtilities
  2241. æT CONSTANT 
  2242. æC The command number for the Print Spooled File menu item.
  2243.  
  2244.  
  2245. æKY cPrintToFile
  2246. æD 
  2247. æFi UMacAppUtilities
  2248. æT CONSTANT 
  2249. æC The command number for the Print to File menu item.
  2250.  
  2251. æKY cPrViewBase
  2252. æD 
  2253. æFi UMacAppUtilities
  2254. æT CONSTANT 
  2255. æC The lower bound for a range of printing commands applied to a displayed view in 
  2256. the fTarget chain.
  2257.  
  2258. æKY cPrViewMax
  2259. æD 
  2260. æFi UMacAppUtilities
  2261. æT CONSTANT 
  2262. æC The upper bound of a range of printing commands applied to a displayed view in 
  2263. the fTarget chain.
  2264.  
  2265. æKY cQuit
  2266. æD 
  2267. æFi UMacAppUtilities
  2268. æT CONSTANT 
  2269. æC The command number for the Quit menu item.
  2270.  
  2271. æKY cReduce50
  2272. æD 
  2273. æFi UMacAppUtilities
  2274. æT CONSTANT 
  2275. æC The command number for the Reduce 50% menu item.
  2276.  
  2277. æKY cReduceToFit
  2278. æD 
  2279. æFi UMacAppUtilities
  2280. æT CONSTANT 
  2281. æC The command number for the Reduce to Fit menu item.
  2282.  
  2283. æKY cRefreshFrontWindow
  2284. æD 
  2285. æFi UMacAppUtilities
  2286. æT CONSTANT 
  2287. æC The command number for the Refresh Front Window menu item.
  2288.  
  2289. æKY cRememberStyle
  2290. æD 
  2291. æFi UMacAppUtilities
  2292. æT CONSTANT 
  2293. æC The command number specifying that MacApp should save the current text style.
  2294.  
  2295. æKY cReportEvt
  2296. æD 
  2297. æFi UMacAppUtilities
  2298. æT CONSTANT 
  2299. æC The command number for the Report Events menu item in MacApp
  2300.  
  2301. æKY cReportMenuChoices
  2302. æD 
  2303. æFi UMacAppUtilities
  2304. æT CONSTANT 
  2305. æC The command number for the MacApp debugger's Report Menu Commands option.
  2306.  
  2307. æKY cRevert
  2308. æD 
  2309. æFi UMacAppUtilities
  2310. æT CONSTANT 
  2311. æC The command number for the Revert menu item.
  2312.  
  2313. æKY cSave
  2314. æD 
  2315. æFi UMacAppUtilities
  2316. æT CONSTANT 
  2317. æC The command number for the Save menu item.
  2318.  
  2319.  
  2320. æKY cSaveAs
  2321. æD 
  2322. æFi UMacAppUtilities
  2323. æT CONSTANT 
  2324. æC The command number for the Save As menu item.
  2325.  
  2326. æKY cSaveCopy
  2327. æD 
  2328. æFi UMacAppUtilities
  2329. æT CONSTANT 
  2330. æC The command number for the Save a Copy In menu item.
  2331.  
  2332. æKY cSelectAll
  2333. æD 
  2334. æFi UMacAppUtilities
  2335. æT CONSTANT 
  2336. æC The command number for the Select All menu item.
  2337.  
  2338. æKY cSetSysJust
  2339. æD 
  2340. æFi UMacAppUtilities
  2341. æT CONSTANT 
  2342. æC The command number for the Switch System Justification menu item.
  2343.  
  2344. æKY cShowBorders
  2345. æD 
  2346. æFi UMacAppUtilities
  2347. æT CONSTANT 
  2348. æC The command number for the Show View Borders menu item in MacApp. 
  2349.  
  2350.  Note: You must supply code to support the use of this command. 
  2351.  
  2352.  
  2353. æKY cShowBreaks
  2354. æD 
  2355. æFi UMacAppUtilities
  2356. æT CONSTANT 
  2357. æC The command number for the Show Page Breaks menu item.
  2358.  
  2359. æKY cShowClipboard
  2360. æD 
  2361. æFi UMacAppUtilities
  2362. æT CONSTANT 
  2363. æC The command number for the Show Clipboard and Hide Clipboard menu items.
  2364.  
  2365.  
  2366. æKY cShowFullSize
  2367. æD 
  2368. æFi UMacAppUtilities
  2369. æT CONSTANT 
  2370. æC The command number for the Show Full Size menu item.
  2371.  
  2372. æKY cStyleChange
  2373. æD 
  2374. æFi UMacAppUtilities
  2375. æT CONSTANT 
  2376. æC The command number indicating to MacApp that the current text style is being 
  2377. changed.
  2378.  
  2379. æKY cTraceIdle
  2380. æD 
  2381. æFi UMacAppUtilities
  2382. æT CONSTANT 
  2383. æC The command number for the Allow Trace During Idle menu item in MacApp.
  2384.  
  2385. æKY cTraceSetupMenus
  2386. æD 
  2387. æFi UMacAppUtilities
  2388. æT CONSTANT 
  2389. æC The command number for the Trace Menu Setup menu item in MacApp.
  2390.  
  2391. æKY cTrackingControl
  2392. æD 
  2393. æFi UMacAppUtilities
  2394. æT CONSTANT 
  2395. æC The command number passed to TNoChangesCommand.INoChangesCommand when MaCapp is 
  2396. creating a control tracker.
  2397.  
  2398. æKY cTyping
  2399. æD 
  2400. æFi UMacAppUtilities
  2401. æT CONSTANT 
  2402. æC The command number passed to MacApp in response to typing events.
  2403.  
  2404.  
  2405. æKY cUndo
  2406. æD 
  2407. æFi UMacAppUtilities
  2408. æT CONSTANT 
  2409. æC The command number for the Undo and Redo menu items.
  2410.  
  2411. æKY cVarClipPicSize
  2412. æD 
  2413. æFi UMacAppUtilities
  2414. æT CONSTANT 
  2415. æC The command number for the MacApp menu item Scale Pictures in Clipboard to 
  2416. Window. 
  2417.  
  2418.  
  2419. æKY errAppTable
  2420. æD 
  2421. æFi UMacAppUtilities
  2422. æT CONSTANT 
  2423. æC The value added to the MacApp resource ID to get the ID of an application's 
  2424. error table. 
  2425.  
  2426. æKY errFileChanged
  2427. æD 
  2428. æFi UMacAppUtilities
  2429. æT CONSTANT 
  2430. æC The error code indicating that the modification date of the disk file has 
  2431. changed.
  2432.  
  2433. æKY errFTypeChanged
  2434. æD 
  2435. æFi UMacAppUtilities
  2436. æT CONSTANT 
  2437. æC The error code indicating that the type of the disk file has changed. 
  2438.  
  2439. æKY errNoPrintDrvr
  2440. æD 
  2441. æFi UMacAppUtilities
  2442. æT CONSTANT 
  2443. æC The error code indicating that the print driver file was not found. 
  2444.  
  2445. æKY errNotImplemented
  2446. æD 
  2447. æFi UMacAppUtilities
  2448. æT CONSTANT 
  2449. æC The error code indicating to the global routine Failure that a function is not 
  2450. implemented.
  2451.  
  2452. æKY errNotMyType
  2453. æD 
  2454. æFi UMacAppUtilities
  2455. æT CONSTANT 
  2456. æC The error code indicating that the application can't open a file of this type. 
  2457.  
  2458. æKY errOperationsID
  2459. æD 
  2460. æFi UMacAppUtilities
  2461. æT CONSTANT 
  2462. æC The resource ID of the errors resource that contains operation strings. 
  2463.  
  2464. æKY errReasonID
  2465. æD 
  2466. æFi UMacAppUtilities
  2467. æT CONSTANT 
  2468. æC The resource ID of the errors resource that describes error messages. 
  2469.  
  2470. æKY errRecoveryID
  2471. æD 
  2472. æFi UMacAppUtilities
  2473. æT CONSTANT 
  2474. æC The resource ID of the errors resource that describes recovery messages.
  2475.  
  2476.  
  2477. æKY errRevertFNF
  2478. æD 
  2479. æFi UMacAppUtilities
  2480. æT CONSTANT 
  2481. æC The error code indicating that the revert operation failed because the last 
  2482. saved version of the file was not found. 
  2483.  
  2484.  
  2485. æKY errSaveAgain
  2486. æD 
  2487. æFi UMacAppUtilities
  2488. æT CONSTANT 
  2489. æC The error code indicating that the user issued the Save As or Save a Copy 
  2490. command while another copy of the same document was already open.
  2491.  
  2492. æKY errSpooling
  2493. æD 
  2494. æFi UMacAppUtilities
  2495. æT CONSTANT 
  2496. æC The error code indicating that print spooling failed because of an operating 
  2497. system error.
  2498.  
  2499. æKY hlDim
  2500. æD 
  2501. æFi UMacAppUtilities
  2502. æT CONSTANT 
  2503. æC A highlight state indicating that the selection is to be dimly highlighted.
  2504.  
  2505. æKY hlDimOff
  2506. æD 
  2507. æFi UMacAppUtilities
  2508. æT CONSTANT 
  2509. æC A highlight state that can be used to test for a combination of hlOff and hlDim 
  2510. in the “from” state and the “to” state when it does not matter which state is 
  2511. “from” and which is “to”.
  2512.  
  2513. æKY hlDimOn
  2514. æD 
  2515. æFi UMacAppUtilities
  2516. æT CONSTANT 
  2517. æC A highlight state that can be used to test for a combination of hlOn and hlDim 
  2518. in the “from” state and the “to” state when it does not matter which state is 
  2519. “from” and which is “to”.
  2520.  
  2521. æKY hlOff
  2522. æD 
  2523. æFi UMacAppUtilities
  2524. æT CONSTANT 
  2525. æC Highlighting is to be removed from the selection.
  2526.  
  2527. æKY hlOffDim
  2528. æD 
  2529. æFi UMacAppUtilities
  2530. æT CONSTANT 
  2531. æC A highlight state that can be used to test for a combination of hlOff and hlDim 
  2532. in the “from” state and the “to” state when it does not matter which state is 
  2533. “from” and which is “to”.
  2534.  
  2535. æKY hlOffOn
  2536. æD 
  2537. æFi UMacAppUtilities
  2538. æT CONSTANT 
  2539. æC A highlight state that can be used to test for a combination of hlOff and hlOn 
  2540. in the “from” state and the “to” state when it does not matter which state is 
  2541. “from” and which is “to”.
  2542.  
  2543. æKY hlOn
  2544. æD 
  2545. æFi UMacAppUtilities
  2546. æT CONSTANT 
  2547. æC The selection is to be fully highlighted. 
  2548.  
  2549.  
  2550. æKY hlOnDim
  2551. æD 
  2552. æFi UMacAppUtilities
  2553. æT CONSTANT 
  2554. æC A highlight state that can be used to test for a combination of hlOn and hlDim 
  2555. in the “from” state and the “to” state when it does not matter which state is 
  2556. “from” and which is “to”.
  2557.  
  2558. æKY hlOnOff
  2559. æD 
  2560. æFi UMacAppUtilities
  2561. æT CONSTANT 
  2562. æC A highlight state that can be used to test for a combination of hlOn and hlOff 
  2563. in the “from” state and the “to” state when it does not matter which state is 
  2564. “from” and which is “to”.
  2565.  
  2566. æKY kAdorn
  2567. æD 
  2568. æFi UMacAppUtilities
  2569. æT CONSTANT 
  2570. æC Specifies that the TGridView object is to draw its adornment when drawing its 
  2571. contents.
  2572.  
  2573. æKY kAEqualB
  2574. æD 
  2575. æFi UMacAppUtilities
  2576. æT CONSTANT 
  2577. æC When returned from a comparison function in a TList object, this value 
  2578. indicates that the first argument to the function is equal to the second argument.
  2579.  
  2580. æKY kAGreaterThanB
  2581. æD 
  2582. æFi UMacAppUtilities
  2583. æT CONSTANT 
  2584. æC When returned from a comparison function in a TList object, this value 
  2585. indicates that the first argument to the function is greater than the second 
  2586. argument.
  2587.  
  2588. æKY kALessThanB
  2589. æD 
  2590. æFi UMacAppUtilities
  2591. æT CONSTANT 
  2592. æC When returned from a comparison function in a TList object, this value 
  2593. indicates that the first argument to the function is less than the second 
  2594. argument.
  2595.  
  2596.  
  2597. æKY kAllocationIncrement
  2598. æD 
  2599. æFi UMacAppUtilities
  2600. æT CONSTANT 
  2601. æC The number of elements by which to increase or decrease the allocated size of 
  2602. the list object when it needs to expand or shrink. This value is the default used 
  2603. by TDynamicArray.fAllocationIncrement.
  2604.  
  2605. æKY kAllowApplicationToSleep
  2606. æD 
  2607. æFi UMacAppUtilities
  2608. æT CONSTANT 
  2609. æC When supplied as an argument to TApplication.PollEvent, this value indicates 
  2610. that while no events are pending, the application is not to idle until the number 
  2611. of ticks represented by kMaxIdleTime has elapsed. The kAllowApplicationToSleep 
  2612. constant is used when the application is running in the MultiFinder® environment.
  2613.  
  2614. æKY kApplFontName
  2615. æD 
  2616. æFi UMacAppUtilities
  2617. æT CONSTANT 
  2618. æC The font for the text in the application.
  2619.  
  2620.  
  2621. æKY kAskForFilename
  2622. æD 
  2623. æFi UMacAppUtilities
  2624. æT CONSTANT 
  2625. æC Indicates to TDocument.Save to prompt the user for a filename when saving an 
  2626. untitled document.
  2627.  
  2628. æKY kAutoWrap
  2629. æD 
  2630. æFi UMacAppUtilities
  2631. æT CONSTANT 
  2632. æC Indicates to the global routine MATextBox that it is to use word wrap when it 
  2633. draws the text.
  2634.  
  2635. æKY kBuild
  2636. æD 
  2637. æFi UMacAppUtilities
  2638. æT CONSTANT 
  2639. æC When used as the build parameter to TWindow.BuildWindowRgns, kBuild specifies 
  2640. that the method must calculate window size, including the structure region (title 
  2641. bar). 
  2642.  
  2643.  
  2644. æKY kClearVirtualCode
  2645. æD 
  2646. æFi UMacAppUtilities
  2647. æT CONSTANT 
  2648. æC The virtual key code for the Clear key. For more information on virtual key 
  2649. codes, see the discussion on page 190 of Inside Macintosh, Volume V.
  2650.  
  2651. æKY kCode
  2652. æD 
  2653. æFi UMacAppUtilities
  2654. æT CONSTANT 
  2655. æC Indicates a resource of type 'CODE'.
  2656.  
  2657.  
  2658. æKY kControlOn
  2659. æD 
  2660. æFi UMacAppUtilities
  2661. æT CONSTANT 
  2662. æC Specifies to TCheckBox.ICheckBox and TRadio.IRadio that the control is to be 
  2663. initialized in the "on" state. 
  2664.  
  2665.  
  2666. æKY kCopyright
  2667. æD 
  2668. æFi UMacAppUtilities
  2669. æT CONSTANT 
  2670. æC The text of the copyright notice for MacApp.
  2671.  
  2672. æKY kDataOpen
  2673. æD 
  2674. æFi UMacAppUtilities
  2675. æT CONSTANT 
  2676. æC Specifies to TDocument.IDocument that the document is to keep its file's data 
  2677. fork open when the document is open.
  2678.  
  2679. æKY kDebugBuzzStrings
  2680. æD 
  2681. æFi UMacAppUtilities
  2682. æT CONSTANT 
  2683. æC The buzzwords STR# resource used by the MacApp debugger.
  2684.  
  2685. æKY kDebugFont
  2686. æD 
  2687. æFi UMacAppUtilities
  2688. æT CONSTANT 
  2689. æC The font for the text in the Debug Transcript window. 
  2690.  
  2691. æKY kDebugParamsID
  2692. æD 
  2693. æFi UMacAppUtilities
  2694. æT CONSTANT 
  2695. æC The identifier of the Debug Transcript window.
  2696.  
  2697. æKY kDebugSize
  2698. æD 
  2699. æFi UMacAppUtilities
  2700. æT CONSTANT 
  2701. æC The font size for text in the Debug Transcript window.
  2702.  
  2703. æKY kDefaultCredits
  2704. æD 
  2705. æFi UMacAppUtilities
  2706. æT CONSTANT 
  2707. æC The resource ID of the 'STR#' resource containing the names of the people who 
  2708. contributed significantly to the creation of MacApp.
  2709.  
  2710.  
  2711. æKY kDefaultViewID
  2712. æD 
  2713. æFi UMacAppUtilities
  2714. æT CONSTANT 
  2715. æC The resource ID for the default 'view' resource installed in the default 
  2716. window.
  2717.  
  2718. æKY kDefaultWindowID
  2719. æD 
  2720. æFi UMacAppUtilities
  2721. æT CONSTANT 
  2722. æC The resource ID for the default window 'view' resource opened with a TDocument 
  2723. object.
  2724.  
  2725. æKY kDeSelect
  2726. æD 
  2727. æFi UMacAppUtilities
  2728. æT CONSTANT 
  2729. æC Indicates to selection and highlighting methods that previous selections are to 
  2730. be deselected.
  2731.  
  2732. æKY kDontAdorn
  2733. æD 
  2734. æFi UMacAppUtilities
  2735. æT CONSTANT 
  2736. æC When supplied as an argument to TGridView.IGridView, this value specifies that 
  2737. the TGridView object is not to draw its adornment when drawing its contents.
  2738.  
  2739. æKY kDontAlign
  2740. æD 
  2741. æFi UMacAppUtilities
  2742. æT CONSTANT 
  2743. æC The value passed to the global routine OffsetPtr indicating that offsets are 
  2744. not to be word-aligned.
  2745.  
  2746. æKY kDontExtend
  2747. æD 
  2748. æFi UMacAppUtilities
  2749. æT CONSTANT 
  2750. æC Indicates to TGridView selection and highlighting methods that they are not to 
  2751. extend previous selections.
  2752.  
  2753.  
  2754. æKY kDontFlash
  2755. æD 
  2756. æFi UMacAppUtilities
  2757. æT CONSTANT 
  2758. æC Indicates to TDialogView.Dismiss that selected dialog items are not to flash.
  2759.  
  2760. æKY kDontHighlight
  2761. æD 
  2762. æFi UMacAppUtilities
  2763. æT CONSTANT 
  2764. æC Indicates to TGridView highlighting and selection methods that a selected cell 
  2765. is not to be highlighted.
  2766.  
  2767. æKY kDontInvalidate
  2768. æD 
  2769. æFi UMacAppUtilities
  2770. æT CONSTANT 
  2771. æC Indicates to routines with invalidate parameters that the view is not to be 
  2772. invalidated. 
  2773.  
  2774.  
  2775. æKY kDontRedraw
  2776. æD 
  2777. æFi UMacAppUtilities
  2778. æT CONSTANT 
  2779. æC Indicates to routines with redraw parameters that the view is not to be 
  2780. redrawn.
  2781.  
  2782.  
  2783. æKY kEmptyIndex
  2784. æD 
  2785. æFi UMacAppUtilities
  2786. æT CONSTANT 
  2787. æC Indicates that no valid index is available (indexes are always positive 
  2788. values).
  2789.  
  2790. æKY kEraseFirst
  2791. æD 
  2792. æFi UMacAppUtilities
  2793. æT CONSTANT 
  2794. æC Indicates to the global routine MATextBox to erase the rectangle before 
  2795. drawing.
  2796.  
  2797.  
  2798. æKY kErrorHandled
  2799. æD 
  2800. æFi UMacAppUtilities
  2801. æT CONSTANT 
  2802. æC Indicates that it is not necessary to post an alert message because the error 
  2803. condition was handled by the user.
  2804.  
  2805. æKY kEscapeVirtualCode
  2806. æD 
  2807. æFi UMacAppUtilities
  2808. æT CONSTANT 
  2809. æC The virtual key code for the Escape key. For more information on virtual key 
  2810. codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  2811.  
  2812.  
  2813. æKY kExtend
  2814. æD 
  2815. æFi UMacAppUtilities
  2816. æT CONSTANT 
  2817. æC Indicates to TGridView selection and highlighting methods that they are to 
  2818. extend previous selections.
  2819.  
  2820. æKY kF10VirtualCode
  2821. æD 
  2822. æFi UMacAppUtilities
  2823. æT CONSTANT 
  2824. æC The virtual key code for the F10 key. For more information on virtual key 
  2825. codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  2826.  
  2827.  
  2828. æKY kF11VirtualCode
  2829. æD 
  2830. æFi UMacAppUtilities
  2831. æT CONSTANT 
  2832. æC The virtual key code for the F11 key. For more information on virtual key 
  2833. codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  2834.  
  2835.  
  2836. æKY kF12VirtualCode
  2837. æD 
  2838. æFi UMacAppUtilities
  2839. æT CONSTANT 
  2840. æC The virtual key code for the F12 key. For more information on virtual key 
  2841. codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  2842.  
  2843.  
  2844. æKY kF13VirtualCode
  2845. æD 
  2846. æFi UMacAppUtilities
  2847. æT CONSTANT 
  2848. æC The virtual key code for the F13 key. For more information on virtual key 
  2849. codes, see the discussion on page 190 of Inside Macintosh, Volume V.
  2850.  
  2851. æKY kF14VirtualCode
  2852. æD 
  2853. æFi UMacAppUtilities
  2854. æT CONSTANT 
  2855. æC The virtual key code for the F14 key. For more information on virtual key 
  2856. codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  2857.  
  2858. æKY kF15VirtualCode
  2859. æD 
  2860. æFi UMacAppUtilities
  2861. æT CONSTANT 
  2862. æC The virtual key code for the F15 key. For more information on virtual key 
  2863. codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  2864.  
  2865.  
  2866. æKY kF1VirtualCode
  2867. æD 
  2868. æFi UMacAppUtilities
  2869. æT CONSTANT 
  2870. æC The virtual key code for the F1 key. For more information on virtual key codes, 
  2871. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2872.  
  2873.  
  2874. æKY kF2VirtualCode
  2875. æD 
  2876. æFi UMacAppUtilities
  2877. æT CONSTANT 
  2878. æC The virtual key code for the F2 key. For more information on virtual key codes, 
  2879. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2880.  
  2881.  
  2882. æKY kF3VirtualCode
  2883. æD 
  2884. æFi UMacAppUtilities
  2885. æT CONSTANT 
  2886. æC The virtual key code for the F3 key. For more information on virtual key codes, 
  2887. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2888.  
  2889. æKY kF4VirtualCode
  2890. æD 
  2891. æFi UMacAppUtilities
  2892. æT CONSTANT 
  2893. æC The virtual key code for the F4 key. For more information on virtual key codes, 
  2894. see the discussion on page 190 of Inside Macintosh, Volume V.
  2895.  
  2896. æKY kF5VirtualCode
  2897. æD 
  2898. æFi UMacAppUtilities
  2899. æT CONSTANT 
  2900. æC The virtual key code for the F5 key. For more information on virtual key codes, 
  2901. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2902.  
  2903.  
  2904. æKY kF6VirtualCode
  2905. æD 
  2906. æFi UMacAppUtilities
  2907. æT CONSTANT 
  2908. æC The virtual key code for the F6 key. For more information on virtual key codes, 
  2909. see the discussion on page 190 of Inside Macintosh, Volume V.
  2910.  
  2911. æKY kF7VirtualCode
  2912. æD 
  2913. æFi UMacAppUtilities
  2914. æT CONSTANT 
  2915. æC The virtual key code for the F7 key. For more information on virtual key codes, 
  2916. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2917.  
  2918.  
  2919. æKY kF8VirtualCode
  2920. æD 
  2921. æFi UMacAppUtilities
  2922. æT CONSTANT 
  2923. æC The virtual key code for the F8 key. For more information on virtual key codes, 
  2924. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2925.  
  2926.  
  2927. æKY kF9VirtualCode
  2928. æD 
  2929. æFi UMacAppUtilities
  2930. æT CONSTANT 
  2931. æC The virtual key code for the F9 key. For more information on virtual key codes, 
  2932. see the discussion on page 190 of Inside Macintosh, Volume V. 
  2933.  
  2934.  
  2935. æKY kFailAbstract
  2936. æD 
  2937. æFi UMacAppUtilities
  2938. æT CONSTANT 
  2939. æC This constant is not yet documented; it is used internally by MacApp.  You 
  2940. never need to use it yourself. ??? it is allowed but not used by the global 
  2941. routine OBJFail.???
  2942.  
  2943.  
  2944. æKY kFailCoercion
  2945. æD 
  2946. æFi UMacAppUtilities
  2947. æT CONSTANT 
  2948. æC The value returned by a failure handler indicating that the type coercion of an 
  2949. object failed.
  2950.  
  2951. æKY kFailMethNotFound
  2952. æD 
  2953. æFi UMacAppUtilities
  2954. æT CONSTANT 
  2955. æC The value returned by a failure handler indicating that a specified method is 
  2956. not defined.
  2957.  
  2958. æKY kFailNone
  2959. æD 
  2960. æFi UMacAppUtilities
  2961. æT CONSTANT 
  2962. æC Indicates an object failure for a reason other than those represented by the 
  2963. constants kFailAbstract, kFailCoercion, kFailMethNotFound, or kInvalidObj. This 
  2964. value is allowed, but not used, by the global routine OBJFail.
  2965.  
  2966. æKY kFixedSize
  2967. æD 
  2968. æFi UMacAppUtilities
  2969. æT CONSTANT 
  2970. æC Specifies to print handlers that the view is not to be resized.
  2971.  
  2972.  
  2973. æKY kFlash
  2974. æD 
  2975. æFi UMacAppUtilities
  2976. æT CONSTANT 
  2977. æC Indicates to TDialogView.Dismiss that selected dialog items should flash.
  2978.  
  2979. æKY kForceDepth
  2980. æD 
  2981. æFi UMacAppUtilities
  2982. æT CONSTANT 
  2983. æC The number of elements in the internal stack of forced output states maintained 
  2984. by MacApp, which is created by calling the global routine ForceOutput. 
  2985.  
  2986. æKY kForDisplay
  2987. æD 
  2988. æFi UMacAppUtilities
  2989. æT CONSTANT 
  2990. æC Specifies to TDocument.DoMakeViews that the view is for display on the screen 
  2991. rather than for printing.
  2992.  
  2993. æKY kForPrinting
  2994. æD 
  2995. æFi UMacAppUtilities
  2996. æT CONSTANT 
  2997. æC Specifies to TDocument.DoMakeViews that the view is for printing rather than 
  2998. for display on the screen.
  2999.  
  3000. æKY kFrame
  3001. æD 
  3002. æFi UMacAppUtilities
  3003. æT CONSTANT 
  3004. æC A set of adornment identifiers that specifies a rectangular frame around a 
  3005. view.
  3006.  
  3007. æKY kFwdDelVirtualCode
  3008. æD 
  3009. æFi UMacAppUtilities
  3010. æT CONSTANT 
  3011. æC The virtual key code for the Forward Delete key. For more information on 
  3012. virtual key codes, see the discussion on page 190 of Inside Macintosh, Volume V. 
  3013.  
  3014.  
  3015. æKY kGZMaxAlloc
  3016. æD 
  3017. æFi UMacAppUtilities
  3018. æT CONSTANT 
  3019. æC Indicates to the global routine BuildCodeReserve to allocate the maximum amount 
  3020. of memory reserve space.
  3021.  
  3022. æKY kHexDigits
  3023. æD 
  3024. æFi UMacAppUtilities
  3025. æT CONSTANT 
  3026. æC The ASCII characters that constitute legal digits in a hexadecimal number.
  3027.  
  3028. æKY kHighlight
  3029. æD 
  3030. æFi UMacAppUtilities
  3031. æT CONSTANT 
  3032. æC Specifies to TGridView highlighting and selection methods that a selected cell 
  3033. is to be highlighted.
  3034.  
  3035. æKY kHMargin
  3036. æD 
  3037. æFi UMacAppUtilities
  3038. æT CONSTANT 
  3039. æC The size, in pixels, of the horizontal margin of the Debug Transcript window.
  3040.  
  3041. æKY kIDBuzzString
  3042. æD 
  3043. æFi UMacAppUtilities
  3044. æT CONSTANT 
  3045. æC The standard list of buzzwords stored as 'STR#' resources. This string list is 
  3046. reserved for MacApp; you should choose a different resource ID for your strings. 
  3047.  
  3048. æKY kIDClipView
  3049. æD 
  3050. æFi UMacAppUtilities
  3051. æT CONSTANT 
  3052. æC The identifier of the clipboard “orphanage” (gClipOrphanage), which is a view 
  3053. that displays the public desk scrap when your application is launched or when 
  3054. control is returned to your application from a desk accessory or another 
  3055. application.
  3056.  
  3057. æKY kIDClipWindow
  3058. æD 
  3059. æFi UMacAppUtilities
  3060. æT CONSTANT 
  3061. æC The window that displays the Clipboard data.
  3062.  
  3063.  
  3064. æKY kIDDefaultView
  3065. æD 
  3066. æFi UMacAppUtilities
  3067. æT CONSTANT 
  3068. æC The view identifier of the default view.
  3069.  
  3070.  
  3071. æKY kIDMNTBbyCmdNumber
  3072. æD 
  3073. æFi UMacAppUtilities
  3074. æT CONSTANT 
  3075. æC The identifier of the table of menu command numbers.
  3076.  
  3077.  
  3078. æKY kInvalidate
  3079. æD 
  3080. æFi UMacAppUtilities
  3081. æT CONSTANT 
  3082. æC Specifies to routines with invalidate parameters that the view is to be 
  3083. invalidated. 
  3084.  
  3085.  
  3086. æKY kInvalidObj
  3087. æD 
  3088. æFi UMacAppUtilities
  3089. æT CONSTANT 
  3090. æC The value returned when the data tested does not constitute a valid object. 
  3091.  
  3092. æKY kInvalidValue
  3093. æD 
  3094. æFi UMacAppUtilities
  3095. æT CONSTANT 
  3096. æC Indicates that an invalid value was entered in a TDialogView object's text 
  3097. field.
  3098.  
  3099.  
  3100. æKY kInvalidValueReasons
  3101. æD 
  3102. æFi UMacAppUtilities
  3103. æT CONSTANT 
  3104. æC The string list used in alert messages for invalid values.
  3105.  
  3106. æKY kInvisible
  3107. æD 
  3108. æFi UMacAppUtilities
  3109. æT CONSTANT 
  3110. æC The value passed as a parameter to TDocument.OpenDocFile indicating that the 
  3111. document’s window is to be invisible.
  3112.  
  3113. æKY kItem1EqualItem2
  3114. æD 
  3115. æFi UMacAppUtilities
  3116. æT CONSTANT 
  3117. æC The value returned by TSortedList.Compare to indicate that the two items 
  3118. compared are of equal value.
  3119.  
  3120. æKY kItem1GreaterThanItem2
  3121. æD 
  3122. æFi UMacAppUtilities
  3123. æT CONSTANT 
  3124. æC The value returned by TSortedList.Compare to indicate that the value of the 
  3125. first item is greater than that of the comparison criteria.
  3126.  
  3127. æKY kItem1LessThanItem2
  3128. æD 
  3129. æFi UMacAppUtilities
  3130. æT CONSTANT 
  3131. æC The value returned by TSortedList.Compare to indicate that the value of the 
  3132. first item is less than that of the comparison criteria.
  3133.  
  3134. æKY kItemEqualCriteria
  3135. æD 
  3136. æFi UMacAppUtilities
  3137. æT CONSTANT 
  3138. æC The value used by TSortedList.Search to determine that an item meets the test 
  3139. criteria.
  3140.  
  3141. æKY kItemGreaterThanCriteria
  3142. æD 
  3143. æFi UMacAppUtilities
  3144. æT CONSTANT 
  3145. æC The value used by TSortedList.Search to determine that an item is of greater 
  3146. value than the criteria with which it is being compared.
  3147.  
  3148. æKY kItemLessThanCriteria
  3149. æD 
  3150. æFi UMacAppUtilities
  3151. æT CONSTANT 
  3152. æC The value used by TSortedList.Search to determine that an item is of lesser 
  3153. value than the criteria with which it is being compared.
  3154.  
  3155. æKY kIterateBackward
  3156. æD 
  3157. æFi UMacAppUtilities
  3158. æT CONSTANT 
  3159. æC Indicates to methods of UList that they are to proceed from the last element of 
  3160. the list toward the first when iterating over the methods in a list.
  3161.  
  3162. æKY kIterateForward
  3163. æD 
  3164. æFi UMacAppUtilities
  3165. æT CONSTANT 
  3166. æC Indicates to methods of UList that they are to proceed from the first element 
  3167. of the list toward the last when iterating over the methods in a list.
  3168.  
  3169. æKY kLeftPalette
  3170. æD 
  3171. æFi UMacAppUtilities
  3172. æT CONSTANT 
  3173. æC Specifies to the global routine NewPaletteWindow that the window it creates is 
  3174. to have a nonscrolling palette along its left edge.
  3175.  
  3176. æKY kLMApFontID
  3177. æD 
  3178. æFi UMacAppUtilities
  3179. æT CONSTANT 
  3180. æC The address of the low-memory global containing the application font 
  3181. identifier.
  3182.  
  3183. æKY kLMmapFalse
  3184. æD 
  3185. æFi UMacAppUtilities
  3186. æT CONSTANT 
  3187. æC Indicates to the global routine UseROMMap that it is not to search the map of 
  3188. ROM resources.
  3189.  
  3190.  
  3191. æKY kLMmapTrue
  3192. æD 
  3193. æFi UMacAppUtilities
  3194. æT CONSTANT 
  3195. æC Indicates to the global routine UseROMMap that it is to search the map of ROM 
  3196. resources.
  3197.  
  3198. æKY kLMSysFontFam
  3199. æD 
  3200. æFi UMacAppUtilities
  3201. æT CONSTANT 
  3202. æC The low-memory global containing the font family ID of the system font; if 
  3203. there is no font family ID, this value is 0. 
  3204.  
  3205. æKY kLMSysFontSize
  3206. æD 
  3207. æFi UMacAppUtilities
  3208. æT CONSTANT 
  3209. æC The low-memory global containing the system font size; if the font size is 12 
  3210. point, this value is 0.
  3211.  
  3212. æKY kLMTESysJust
  3213. æD 
  3214. æFi UMacAppUtilities
  3215. æT CONSTANT 
  3216. æC The low-memory global containing the system text justification. This constant 
  3217. is not supported on 64 KB ROMs.
  3218.  
  3219. æKY kLowSpaceInterval
  3220. æD 
  3221. æFi UMacAppUtilities
  3222. æT CONSTANT 
  3223. æC The default interval (2 seconds) that MacApp waits before displaying a low-
  3224. memory alert.
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233. æKY kMakingCopy
  3234. æD 
  3235. æFi UMacAppUtilities
  3236. æT CONSTANT 
  3237. æC Specifies to the method TDocument.Save that the save operation is for making a 
  3238. copy of the document rather than for replacing the old one.
  3239.  
  3240.  
  3241. æKY kMANameSize
  3242. æD 
  3243. æFi UMacAppUtilities
  3244. æT CONSTANT 
  3245. æC The maximum length of an MAName strin g. 
  3246.  
  3247. æKY kMaxCoord
  3248. æD 
  3249. æFi UMacAppUtilities
  3250. æT CONSTANT 
  3251. æC The largest acceptable value for a QuickDraw view coordinate (QuickDraw's 
  3252. maximum permissible value minus the amount that allows for the size of the 
  3253. screen). 
  3254.  
  3255.  
  3256. æKY kMaxFlags
  3257. æD 
  3258. æFi UMacAppUtilities
  3259. æT CONSTANT 
  3260. æC The maximum number of flags that can be set in the MacApp debugger.
  3261.  
  3262. æKY kMaxIdleTime
  3263. æD 
  3264. æFi UMacAppUtilities
  3265. æT CONSTANT 
  3266. æC Indicates to a TEvtHandler object that it is not to idle. This is the default 
  3267. value to which a TEvtHandler object's fIdleFreq field is initialized.
  3268.  
  3269. æKY kMaxSignatures
  3270. æD 
  3271. æFi UMacAppUtilities
  3272. æT CONSTANT 
  3273. æC Indicates the maximum number of object types allowed in MacApp.
  3274.  
  3275. æKY kMaxSyms
  3276. æD 
  3277. æFi UMacAppUtilities
  3278. æT CONSTANT 
  3279. æC The maximum number of symbols that can be used in the MacApp debugger.
  3280.  
  3281. æKY kMaxTEWidth
  3282. æD 
  3283. æFi UMacAppUtilities
  3284. æT CONSTANT 
  3285. æC The maximum width, in pixels, that a TEditText view is allowed to autoscroll.
  3286.  
  3287. æKY kMBarDisplayed
  3288. æD 
  3289. æFi UMacAppUtilities
  3290. æT CONSTANT 
  3291. æC The default 'MBAR' ID of the menus that are read in and installed in the menu 
  3292. bar.
  3293.  
  3294. æKY kMBarHierarchical
  3295. æD 
  3296. æFi UMacAppUtilities
  3297. æT CONSTANT 
  3298. æC The default 'MBAR' ID for menus that pop up when a hierarchichal menu item is 
  3299. chosen.
  3300.  
  3301. æKY kMBarNotDisplayed
  3302. æD 
  3303. æFi UMacAppUtilities
  3304. æT CONSTANT 
  3305. æC Default 'MBAR' ID of the pop-up menus that are read in but not installed in the 
  3306. menu bar.
  3307.  
  3308.  
  3309. æKY kMinAhead
  3310. æD 
  3311. æFi UMacAppUtilities
  3312. æT CONSTANT 
  3313. æC Indicates the minimum amount by which to the view is to autoscroll ahead when 
  3314. the selection is being scrolled into view.
  3315.  
  3316. æKY kMNTBbyCmdNumber
  3317. æD 
  3318. æFi UMacAppUtilities
  3319. æT CONSTANT 
  3320. æC The table of menu commands listed in order of command numbers.
  3321.  
  3322. æKY kMouseMovedMessage
  3323. æD 
  3324. æFi UMacAppUtilities
  3325. æT CONSTANT 
  3326. æC An event-message mask used by MultiFinder® to mask out all events except mouse-
  3327. moved events. For more information on event-message masks in general, see the 
  3328. discussion on page 253 of Inside Macintosh, Volume I.
  3329.  
  3330. æKY kMoveBAbsolute
  3331. æD 
  3332. æFi UMacAppUtilities
  3333. æT CONSTANT 
  3334. æC Represents the 68xxx assembly-language instruction MOVE.B of absolute Address 
  3335. data to (SP). 
  3336.  
  3337.  
  3338. æKY kMoveLAbsolute
  3339. æD 
  3340. æFi UMacAppUtilities
  3341. æT CONSTANT 
  3342. æC Represents the 68xxx assembly-language instruction MOVE.L of absolute Address 
  3343. data to (SP). 
  3344.  
  3345. æKY kMoveLImmed
  3346. æD 
  3347. æFi UMacAppUtilities
  3348. æT CONSTANT 
  3349. æC Represents the 68xxx assembly-language instruction MOVE.L of immediate data to 
  3350. (SP).
  3351.  
  3352. æKY kMoveWAbsolute
  3353. æD 
  3354. æFi UMacAppUtilities
  3355. æT CONSTANT 
  3356. æC Represents the 68xxx assembly-language instruction MOVE.W of absolute Address 
  3357. data to (SP). 
  3358.  
  3359. æKY kNeverInitialized
  3360. æD 
  3361. æFi UMacAppUtilities
  3362. æT CONSTANT 
  3363. æC Indicates  to TStdPrintHandler methods that they are to call 
  3364. TStdPrintHandler.PrinterChanged.
  3365.  
  3366. æKY kNilClass
  3367. æD 
  3368. æFi UMacAppUtilities
  3369. æT CONSTANT 
  3370. æC The value for the superclass of TObject.
  3371.  
  3372. æKY kNoAutoWrap
  3373. æD 
  3374. æFi UMacAppUtilities
  3375. æT CONSTANT 
  3376. æC Indicates to the global routine MATextBox that it is not to use word wrap the 
  3377. when it draws the text.
  3378.  
  3379. æKY kNoButton
  3380. æD 
  3381. æFi UMacAppUtilities
  3382. æT CONSTANT 
  3383. æC The No button in various dialog boxes.
  3384.  
  3385. æKY kNoEraseFirst
  3386. æD 
  3387. æFi UMacAppUtilities
  3388. æT CONSTANT 
  3389. æC Indicates to the global routine MATextBox that it is not to erase the rectangle 
  3390. before drawing.
  3391.  
  3392.  
  3393. æKY kNoFileRefnum
  3394. æD 
  3395. æFi UMacAppUtilities
  3396. æT CONSTANT 
  3397. æC An invalid file reference number. This number is used to indicate an unopened 
  3398. file, and is interpreted by HFS as a volume number. 
  3399.  
  3400.  
  3401. æKY kNoIdentifier
  3402. æD 
  3403. æFi UMacAppUtilities
  3404. æT CONSTANT 
  3405. æC Indciates an invalid resource identifier. This value has four blank spaces that 
  3406. take the place of the four characters in a valid resource ID.
  3407.  
  3408. æKY kNonNumericCharacters
  3409. æD 
  3410. æFi UMacAppUtilities
  3411. æT CONSTANT 
  3412. æC Indicates a non-numeric character.
  3413.  
  3414. æKY kNoOfDefaultReasons
  3415. æD 
  3416. æFi UMacAppUtilities
  3417. æT CONSTANT 
  3418. æC The number of default error messages returned by TDialogView methods. This 
  3419. constant is used only by the method TDialogView.CantDeselect.
  3420.  
  3421. æKY kNoResource
  3422. æD 
  3423. æFi UMacAppUtilities
  3424. æT CONSTANT 
  3425. æC Indicates that a resource is unavailable.
  3426.  
  3427. æKY kNoSpaceForCaret
  3428. æD 
  3429. æFi UMacAppUtilities
  3430. æT CONSTANT 
  3431. æC Indicates to the global routine MATextBox that the size of the rectangle is not 
  3432. to increase to account for the presence of the text insertion point.
  3433.  
  3434. æKY kNoStaticLink
  3435. æD 
  3436. æFi UMacAppUtilities
  3437. æT CONSTANT 
  3438. æC A non-nil placeholder passed by C++ users to Object Pascal routines that use a 
  3439. procedure as a parameter. The kNoStaticLink constant is passed when only local 
  3440. variable access is used or needed. For more information, see the kNoStaticLink 
  3441. comment  in the file UMacAppUtilities.p.
  3442.  
  3443.  
  3444.  
  3445.  
  3446. æKY kNoTemplate
  3447. æD 
  3448. æFi UMacAppUtilities
  3449. æT CONSTANT 
  3450. æC Indicates that a resource template is unavailable.
  3451.  
  3452. æKY kPreferColor
  3453. æD 
  3454. æFi UMacAppUtilities
  3455. æT CONSTANT 
  3456. æC Indicates that MacApp is to attempt to load a 'cicn' resource before attempting 
  3457. to load an 'ICON' resource.
  3458.  
  3459. æKY kPrintDriverName
  3460. æD 
  3461. æFi UMacAppUtilities
  3462. æT CONSTANT 
  3463. æC The address of the System file 'STR#' resource containing the name of the 
  3464. current print driver.
  3465.  
  3466. æKY kPrintInfoSize
  3467. æD 
  3468. æFi UMacAppUtilities
  3469. æT CONSTANT 
  3470. æC The size, in bytes, of a printInfo record in bytes.
  3471.  
  3472. æKY kPriorityHigh
  3473. æD 
  3474. æFi UMacAppUtilities
  3475. æT CONSTANT 
  3476. æC A constant of type CommandPriority that can be used to prioritize commands 
  3477. posted to the command queue by TApplication.PostCommand. High-priority commands 
  3478. are handled before all other commands except those having highest priority. 
  3479.  
  3480. æKY kPriorityHighest
  3481. æD 
  3482. æFi UMacAppUtilities
  3483. æT CONSTANT 
  3484. æC A constant of type CommandPriority that can be used to prioritize commands 
  3485. posted to the command queue by TApplication.PostCommand. Commands having highest 
  3486. priority are handled before any others.
  3487.  
  3488. æKY kPriorityLow
  3489. æD 
  3490. æFi UMacAppUtilities
  3491. æT CONSTANT 
  3492. æC A constant of type CommandPriority that can be used to prioritize commands 
  3493. posted to the command queue by TApplication.PostCommand. Low-priority commands are 
  3494. handled after commands having normal, high, or highest priority, but before 
  3495. commands having lowest priority.
  3496.  
  3497. æKY kPriorityLowest
  3498. æD 
  3499. æFi UMacAppUtilities
  3500. æT CONSTANT 
  3501. æC A constant of type CommandPriority that can be used to prioritize commands 
  3502. posted to the command queue by TApplication.PostCommand. Commands having lowest 
  3503. priority are handled after commands having low, normal, high, or highest priority.
  3504.  
  3505. æKY kPriorityNormal
  3506. æD 
  3507. æFi UMacAppUtilities
  3508. æT CONSTANT 
  3509. æC A constant of type CommandPriority that can be used to prioritize commands 
  3510. posted to the command queue by TApplication.PostCommand. Normal priority is the 
  3511. default priority assigned to commands that are prioritized. Commands having normal 
  3512. priority are handled after highest- and high-priority commands, but before low- 
  3513. and lowest-priority commands.
  3514.  
  3515.  
  3516. æKY kRedraw
  3517. æD 
  3518. æFi UMacAppUtilities
  3519. æT CONSTANT 
  3520. æC Specifies to routines with redraw parameters that the view is to be redrawn.
  3521.  
  3522. æKY kRsrcCheckInterval
  3523. æD 
  3524. æFi UMacAppUtilities
  3525. æT CONSTANT 
  3526. æC This constnat is not yet documented; it is used internally by MacApp. You never 
  3527. need to use it yourself.
  3528.  
  3529. æKY kRsrcFileOverhead
  3530. æD 
  3531. æFi UMacAppUtilities
  3532. æT CONSTANT 
  3533. æC The size, in bytes, of the resource header, the fixed part of the resource map, 
  3534. and miscellaneous other resource file overhead30. 
  3535.  
  3536. æKY kRsrcOpen
  3537. æD 
  3538. æFi UMacAppUtilities
  3539. æT CONSTANT 
  3540. æC Specifies to TDocument.IDocument that the document is to keep its file's 
  3541. resource fork open when the document is open.
  3542.  
  3543. æKY kRsrcOverhead
  3544. æD 
  3545. æFi UMacAppUtilities
  3546. æT CONSTANT 
  3547. æC The amount of disk space, expressed in bytes,  that is needed for each resource 
  3548. in the document's resource fork.
  3549.  
  3550. æKY kRsrcTypeOverhead
  3551. æD 
  3552. æFi UMacAppUtilities
  3553. æT CONSTANT 
  3554. æC The amount of the disk space necessary for each unique resource type in the 
  3555. document's resource fork, expressed in bytes.
  3556.  
  3557. æKY kSaveCurrentChars
  3558. æD 
  3559. æFi UMacAppUtilities
  3560. æT CONSTANT 
  3561. æC Specifies to TTECommand.ITECommand to store the text from the current text 
  3562. record when creating a new text record.
  3563.  
  3564.  
  3565. æKY kSBarSize
  3566. æD 
  3567. æFi UMacAppUtilities
  3568. æT CONSTANT 
  3569. æC The width of a scroll bar, expressed in pixels.
  3570.  
  3571. æKY kSBarSizeMinus1
  3572. æD 
  3573. æFi UMacAppUtilities
  3574. æT CONSTANT 
  3575. æC The offset from the edge of a window’s content region to the edge of the region 
  3576. where drawing takes place (the width of a scroll bar minus 1).
  3577.  
  3578. æKY kScrollBarId
  3579. æD 
  3580. æFi UMacAppUtilities
  3581. æT CONSTANT 
  3582. æC The resource ID of the scroll bar resource.
  3583.  
  3584. æKY kSelect
  3585. æD 
  3586. æFi UMacAppUtilities
  3587. æT CONSTANT 
  3588. æC Specifies to TGridView selection methods that a cell is to be selected.
  3589.  
  3590. æKY kShowCantUndo
  3591. æD 
  3592. æFi UMacAppUtilities
  3593. æT CONSTANT 
  3594. æC The argument to TApplication.SetUndoText that changes the text of the Undo menu 
  3595. item to Can’t Undo.
  3596.  
  3597. æKY kShowRedo
  3598. æD 
  3599. æFi UMacAppUtilities
  3600. æT CONSTANT 
  3601. æC The argument to TApplication.SetUndoText that changes the text of the Undo menu 
  3602. item to Redo.
  3603.  
  3604. æKY kShowUndo
  3605. æD 
  3606. æFi UMacAppUtilities
  3607. æT CONSTANT 
  3608. æC The argument to TApplication.SetUndoText that changes the text of the Undo menu 
  3609. item to Undo—as opposed to Redo or Can't Undo, for example.
  3610.  
  3611.  
  3612.  
  3613.  
  3614.  
  3615. æKY kSpaceForCaret
  3616. æD 
  3617. æFi UMacAppUtilities
  3618. æT CONSTANT 
  3619. æC Indicates to the global routine MATextBox that it is to increase the size of 
  3620. the rectangle to leave space for the text insertion point.
  3621.  
  3622. æKY kSquareDots
  3623. æD 
  3624. æFi UMacAppUtilities
  3625. æT CONSTANT 
  3626. æC Specifies that the print image is to be computed using square dots.
  3627.  
  3628. æKY kStdButton
  3629. æD 
  3630. æFi UMacAppUtilities
  3631. æT CONSTANT 
  3632. æC The object signature used to create a standard button object “by signature.”
  3633.  
  3634. æKY kStdCheckBox
  3635. æD 
  3636. æFi UMacAppUtilities
  3637. æT CONSTANT 
  3638. æC The object signature used to create a standard check box object  “by 
  3639. signature.”
  3640.  
  3641.  
  3642. æKY kStdCluster
  3643. æD 
  3644. æFi UMacAppUtilities
  3645. æT CONSTANT 
  3646. æC The object signature used to create a standard TCluster object  “by signature.”
  3647.  
  3648.  
  3649. æKY kStdControl
  3650. æD 
  3651. æFi UMacAppUtilities
  3652. æT CONSTANT 
  3653. æC The object signature used to create a standard TControl object  “by signature.”
  3654.  
  3655.  
  3656. æKY kStdDefaultView
  3657. æD 
  3658. æFi UMacAppUtilities
  3659. æT CONSTANT 
  3660. æC The object signature used to create a standard TView object  “by signature.”
  3661.  
  3662.  
  3663. æKY kStdDialogView
  3664. æD 
  3665. æFi UMacAppUtilities
  3666. æT CONSTANT 
  3667. æC The object signature used to create a standard TDialogView object  “by 
  3668. signature.”
  3669.  
  3670.  
  3671. æKY kStdDocument
  3672. æD 
  3673. æFi UMacAppUtilities
  3674. æT CONSTANT 
  3675. æC The object signature used to create a standard document object  “by signature.”
  3676.  
  3677. æKY kStdEditText
  3678. æD 
  3679. æFi UMacAppUtilities
  3680. æT CONSTANT 
  3681. æC The object signature used to create a standard TEditText object  “by 
  3682. signature.”
  3683.  
  3684.  
  3685. æKY kStdGridView
  3686. æD 
  3687. æFi UMacAppUtilities
  3688. æT CONSTANT 
  3689. æC The object signature used to create a standard TGridView object  “by 
  3690. signature.”
  3691.  
  3692. æKY kStdIcon
  3693. æD 
  3694. æFi UMacAppUtilities
  3695. æT CONSTANT 
  3696. æC The object signature used to create a standard TIcon object  “by signature.”
  3697.  
  3698.  
  3699. æKY kStdList
  3700. æD 
  3701. æFi UMacAppUtilities
  3702. æT CONSTANT 
  3703. æC The object signature used to create a standard list object  “by signature.”
  3704.  
  3705.  
  3706. æKY kStdMainFileType
  3707. æD 
  3708. æFi UMacAppUtilities
  3709. æT CONSTANT 
  3710. æC The default file-type identifier.  
  3711.  
  3712.  
  3713. æKY kStdNumberText
  3714. æD 
  3715. æFi UMacAppUtilities
  3716. æT CONSTANT 
  3717. æC The object signature used to create a standard TNumberText object “by 
  3718. signature.”
  3719.  
  3720.  
  3721. æKY kStdPattern
  3722. æD 
  3723. æFi UMacAppUtilities
  3724. æT CONSTANT 
  3725. æC The object signature used to create a standard TPattern object  “by signature.”
  3726.  
  3727.  
  3728. æKY kStdPicture
  3729. æD 
  3730. æFi UMacAppUtilities
  3731. æT CONSTANT 
  3732. æC The object signature used to create a standard TPicture object “by signature.”
  3733.  
  3734.  
  3735. æKY kStdPopup
  3736. æD 
  3737. æFi UMacAppUtilities
  3738. æT CONSTANT 
  3739. æC The object signature used to create a standard TPopup object “by signature.”
  3740.  
  3741.  
  3742. æKY kStdRadio
  3743. æD 
  3744. æFi UMacAppUtilities
  3745. æT CONSTANT 
  3746. æC The object signature used to create a standard TRadio object “by signature.”
  3747.  
  3748. æKY kStdScroller
  3749. æD 
  3750. æFi UMacAppUtilities
  3751. æT CONSTANT 
  3752. æC The object signature used to create a standard TScroller object “by signature.”
  3753.  
  3754. æKY kStdScrollUnit
  3755. æD 
  3756. æFi UMacAppUtilities
  3757. æT CONSTANT 
  3758. æC The default value of the fScrollUnit field.
  3759.  
  3760. æKY kStdSScrollBar
  3761. æD 
  3762. æFi UMacAppUtilities
  3763. æT CONSTANT 
  3764. æC The object signature used to create a standard TSScrollBar object “by 
  3765. signature.”
  3766.  
  3767.  
  3768. æKY kStdStaggerAmount
  3769. æD 
  3770. æFi UMacAppUtilities
  3771. æT CONSTANT 
  3772. æC The standard number of pixels by which to stagger windows.
  3773.  
  3774.  
  3775. æKY kStdStaticText
  3776. æD 
  3777. æFi UMacAppUtilities
  3778. æT CONSTANT 
  3779. æC The object signature used to create a standard TStaticText object  “by 
  3780. signature.”
  3781.  
  3782. æKY kStdSzMinus1SBar
  3783. æD 
  3784. æFi UMacAppUtilities
  3785. æT CONSTANT 
  3786. æC The width of a standard scroll bar minus 1.
  3787.  
  3788. æKY kStdSzSBar
  3789. æD 
  3790. æFi UMacAppUtilities
  3791. æT CONSTANT 
  3792. æC The width of a standard scroll bar.
  3793.  
  3794. æKY kStdTEView
  3795. æD 
  3796. æFi UMacAppUtilities
  3797. æT CONSTANT 
  3798. æC The object signature used to create a standard TTEView object  “by signature.”
  3799.  
  3800.  
  3801. æKY kStdTextGridView
  3802. æD 
  3803. æFi UMacAppUtilities
  3804. æT CONSTANT 
  3805. æC The object signature used to create a standard TTextGridView object  “by 
  3806. signature.”
  3807.  
  3808.  
  3809. æKY kStdTextListView
  3810. æD 
  3811. æFi UMacAppUtilities
  3812. æT CONSTANT 
  3813. æC The object signature used to create a standard TTextListView object “by 
  3814. signature.”
  3815.  
  3816.  
  3817. æKY kStdTracker
  3818. æD 
  3819. æFi UMacAppUtilities
  3820. æT CONSTANT 
  3821. æC The object signature used to create a standard mouse tracker object “by 
  3822. signature.”
  3823.  
  3824.  
  3825. æKY kStdView
  3826. æD 
  3827. æFi UMacAppUtilities
  3828. æT CONSTANT 
  3829. æC The object signature used to create a standard TView object “by signature.”
  3830.  
  3831. æKY kStdWindow
  3832. æD 
  3833. æFi UMacAppUtilities
  3834. æT CONSTANT 
  3835. æC The object signature used to create a standard TWindow object  “by signature.”
  3836.  
  3837. æKY kSuspendOrResume
  3838. æD 
  3839. æFi UMacAppUtilities
  3840. æT CONSTANT 
  3841. æC An event-message mask used by MultiFinder® to mask out all events except 
  3842. suspend or resume events. For more information on event-message masks in general, 
  3843. see the discussion on page 253 of Inside Macintosh, Volume I.
  3844.  
  3845. æKY kSwitchToTarget
  3846. æD 
  3847. æFi UMacAppUtilities
  3848. æT CONSTANT 
  3849. æC Specifies to TDocument.Save that the file currently being saved is to replace 
  3850. any copy of the file on the disk that has the same name.
  3851.  
  3852. æKY kSysClear
  3853. æD 
  3854. æFi UMacAppUtilities
  3855. æT CONSTANT 
  3856. æC When supplied as an argument to the Toolbox function SystemEdit, this value 
  3857. indicates that the user chose the Clear command from the Edit menu while a desk 
  3858. accessory was the active window.  This constant is also used for range checking of 
  3859. editing commands.
  3860.  
  3861. æKY kSysCopy
  3862. æD 
  3863. æFi UMacAppUtilities
  3864. æT CONSTANT 
  3865. æC When supplied as an argument to the Toolbox function SystemEdit, this value 
  3866. indicates that the user chose the Copy command from the Edit menu while a desk 
  3867. accessory was the active window. This constant is also used for range checking of 
  3868. editing commands.
  3869.  
  3870.  
  3871. æKY kSysCut
  3872. æD 
  3873. æFi UMacAppUtilities
  3874. æT CONSTANT 
  3875. æC When supplied as an argument to the Toolbox function SystemEdit, this value 
  3876. indicates that the user chose the Cut command from the Edit menu while a desk 
  3877. accessory was the active window. This constant is also used for range checking of 
  3878. editing commands.
  3879.  
  3880.  
  3881. æKY kSysFontName
  3882. æD 
  3883. æFi UMacAppUtilities
  3884. æT CONSTANT 
  3885. æC The name of the system font. The global routine GetFontNum returns a 0 when it 
  3886. encounters this constant.
  3887.  
  3888.  
  3889. æKY kSysPaste
  3890. æD 
  3891. æFi UMacAppUtilities
  3892. æT CONSTANT 
  3893. æC When supplied as an argument to the Toolbox function SystemEdit, this value 
  3894. indicates that the user chose the Paste command from the Edit menu while a desk 
  3895. accessory was the active window. This constant is also used for range checking of 
  3896. editing commands.
  3897.  
  3898. æKY kSysUndo
  3899. æD 
  3900. æFi UMacAppUtilities
  3901. æT CONSTANT 
  3902. æC When supplied as an argument to the Toolbox function SystemEdit, this value 
  3903. indicates that the user chose the Undo command from the Edit menu while a desk 
  3904. accessory was the active window. This constant is also used for range checking of 
  3905. editing commands.
  3906.  
  3907. æKY kTooManyCharacters
  3908. æD 
  3909. æFi UMacAppUtilities
  3910. æT CONSTANT 
  3911. æC Indicates that the user entered too many characters in a text field.
  3912.  
  3913. æKY kTopPalette
  3914. æD 
  3915. æFi UMacAppUtilities
  3916. æT CONSTANT 
  3917. æC Specifies to the global routine NewPaletteWindow that the window it creates is 
  3918. to have a non-scrolling status area at the top.
  3919.  
  3920. æKY kUnlimited
  3921. æD 
  3922. æFi UMacAppUtilities
  3923. æT CONSTANT 
  3924. æC Specifies the maximum number of characters that can be in a TTEView object's 
  3925. fText field.
  3926.  
  3927. æKY kUsesDataFork
  3928. æD 
  3929. æFi UMacAppUtilities
  3930. æT CONSTANT 
  3931. æC Specifies to TDocument.IDocument that the document is to use its file's data 
  3932. fork.
  3933.  
  3934. æKY kUsesRsrcFork
  3935. æD 
  3936. æFi UMacAppUtilities
  3937. æT CONSTANT 
  3938. æC Specifies to TDocument.IDocument that the document  is to use its file's 
  3939. resource fork.
  3940.  
  3941.  
  3942. æKY kUsualPages
  3943. æD 
  3944. æFi UMacAppUtilities
  3945. æT CONSTANT 
  3946. æC Indicates to methods with “pageNumber” parameters that a general setting is to 
  3947. be used, rather than a setting customized to one particular page. 
  3948.  
  3949. æKY kValidValue
  3950. æD 
  3951. æFi UMacAppUtilities
  3952. æT CONSTANT 
  3953. æC Indicates that the value in a dialog box’s text field is valid.
  3954.  
  3955. æKY kValueTooLarge
  3956. æD 
  3957. æFi UMacAppUtilities
  3958. æT CONSTANT 
  3959. æC Indicates that the value in a dialog box’s text field is too large.
  3960.  
  3961.  
  3962. æKY kValueTooSmall
  3963. æD 
  3964. æFi UMacAppUtilities
  3965. æT CONSTANT 
  3966. æC Indicates that the value in a dialog box’s text field is too small.
  3967.  
  3968. æKY kViewRsrcExpandAmt
  3969. æD 
  3970. æFi UMacAppUtilities
  3971. æT CONSTANT 
  3972. æC The amount by which to increase the size of a 'view' resource.
  3973.  
  3974. æKY kVisible
  3975. æD 
  3976. æFi UMacAppUtilities
  3977. æT CONSTANT 
  3978. æC Indicates that a view is to be made visible.
  3979.  
  3980.  
  3981. æKY kVMargin
  3982. æD 
  3983. æFi UMacAppUtilities
  3984. æT CONSTANT 
  3985. æC The width, in pixels, of the margin around a view’s drawing area.
  3986.  
  3987. æKY kWantHScrollBar
  3988. æD 
  3989. æFi UMacAppUtilities
  3990. æT CONSTANT 
  3991. æC Specifies that the view is to be associated with a horizontal scroll bar.
  3992.  
  3993. æKY kWantVScrollBar
  3994. æD 
  3995. æFi UMacAppUtilities
  3996. æT CONSTANT 
  3997. æC Specifies that the view is to be associated with a vertical scroll bar.
  3998.  
  3999.  
  4000. æKY kWatchDelay
  4001. æD 
  4002. æFi UMacAppUtilities
  4003. æT CONSTANT 
  4004. æC The default amount of time, in ticks, that MacApp waits before changing the 
  4005. arrow cursor to a wristwatch cursor.
  4006.  
  4007.  
  4008. æKY kWithoutStyle
  4009. æD 
  4010. æFi UMacAppUtilities
  4011. æT CONSTANT 
  4012. æC Specifies to TTEView.ITEView that the TTEView object does not support multiple 
  4013. styles of text.
  4014.  
  4015. æKY kWithStyle
  4016. æD 
  4017. æFi UMacAppUtilities
  4018. æT CONSTANT 
  4019. æC Specifies to TTEView.ITEView tthat the TTEView object supports multiple styles 
  4020. of text.
  4021.  
  4022. æKY kWordAlign
  4023. æD 
  4024. æFi UMacAppUtilities
  4025. æT CONSTANT 
  4026. æC Specifies to the global routine OffsetPtr that offsets are to be word-aligned.
  4027.  
  4028.  
  4029. æKY kWWEol
  4030. æD 
  4031. æFi UMacAppUtilities
  4032. æT CONSTANT 
  4033. æC Indicates the end of the line to the MacApp debugger when writing to a window 
  4034. (usually the Debug Transcript window).
  4035.  
  4036.  
  4037. æKY kYesButton
  4038. æD 
  4039. æFi UMacAppUtilities
  4040. æT CONSTANT 
  4041. æC The Yes button in various dialog boxes.
  4042.  
  4043. æKY mApple
  4044. æD 
  4045. æFi UMacAppUtilities
  4046. æT CONSTANT 
  4047. æC The identifier of the Apple menu.
  4048.  
  4049. æKY maxErr
  4050. æD 
  4051. æFi UMacAppUtilities
  4052. æT CONSTANT 
  4053. æC The maximum value allowed for error numbers.
  4054.  
  4055.  
  4056. æKY mButtonHit
  4057. æD 
  4058. æFi UMacAppUtilities
  4059. æT CONSTANT 
  4060. æC Indicates that the user clicked a TButton object.
  4061.  
  4062. æKY mCancelHit
  4063. æD 
  4064. æFi UMacAppUtilities
  4065. æT CONSTANT 
  4066. æC Indicates that the user clicked a Cancel button.
  4067.  
  4068. æKY mCancelKey
  4069. æD 
  4070. æFi UMacAppUtilities
  4071. æT CONSTANT 
  4072. æC Indicates that the user selected a Cancel button by pressing a key.
  4073.  
  4074. æKY mCheckBoxHit
  4075. æD 
  4076. æFi UMacAppUtilities
  4077. æT CONSTANT 
  4078. æC Indicates that the user clicked a check box.
  4079.  
  4080. æKY mClusterHit
  4081. æD 
  4082. æFi UMacAppUtilities
  4083. æT CONSTANT 
  4084. æC Indicates that the user clicked a TCluster object.
  4085.  
  4086. æKY mControlHit
  4087. æD 
  4088. æFi UMacAppUtilities
  4089. æT CONSTANT 
  4090. æC Indicates that the user clicked a control.
  4091.  
  4092. æKY mDebug
  4093. æD 
  4094. æFi UMacAppUtilities
  4095. æT CONSTANT 
  4096. æC The identifier of the Debug menu. It is read in if debugging is turned on; its 
  4097. value corresponds with debugging command numbers.
  4098.  
  4099. æKY mDefaultKey
  4100. æD 
  4101. æFi UMacAppUtilities
  4102. æT CONSTANT 
  4103. æC Indicates that the user selected a default button by pressing a key.
  4104.  
  4105. æKY mEdit
  4106. æD 
  4107. æFi UMacAppUtilities
  4108. æT CONSTANT 
  4109. æC Indicates that the user selected an item on the Edit menu.
  4110.  
  4111. æKY mEditEnterKey
  4112. æD 
  4113. æFi UMacAppUtilities
  4114. æT CONSTANT 
  4115. æC Indicates that the user pressed the Enter key while editing text.
  4116.  
  4117.  
  4118. æKY mEditReturnKey
  4119. æD 
  4120. æFi UMacAppUtilities
  4121. æT CONSTANT 
  4122. æC Indicates that the user pressed the Return key while editing text.
  4123.  
  4124.  
  4125. æKY mEditTabKey
  4126. æD 
  4127. æFi UMacAppUtilities
  4128. æT CONSTANT 
  4129. æC Indicates that the user pressed the Tab key while editing text.
  4130.  
  4131.  
  4132. æKY mEditTextHit
  4133. æD 
  4134. æFi UMacAppUtilities
  4135. æT CONSTANT 
  4136. æC Indicates that the user clicked in a text box that can be edited.
  4137.  
  4138.  
  4139. æKY mFile
  4140. æD 
  4141. æFi UMacAppUtilities
  4142. æT CONSTANT 
  4143. æC Indicates that the user selected an item on the File menu.
  4144.  
  4145. æKY mHScrollBarHit
  4146. æD 
  4147. æFi UMacAppUtilities
  4148. æT CONSTANT 
  4149. æC Indicates that the user clicked in a scroll bar.
  4150.  
  4151. æKY mIconHit
  4152. æD 
  4153. æFi UMacAppUtilities
  4154. æT CONSTANT 
  4155. æC Indicates that the user clicked an icon.
  4156.  
  4157. æKY minErr
  4158. æD 
  4159. æFi UMacAppUtilities
  4160. æT CONSTANT 
  4161. æC The minimum value allowed for error numbers.
  4162.  
  4163.  
  4164. æKY mLastMenu
  4165. æD 
  4166. æFi UMacAppUtilities
  4167. æT CONSTANT 
  4168. æC The identifier of the "last" menu in the menu bar. The global routine 
  4169. PerformMenuSetup works only on menus having identifiers whose values are between 1 
  4170. and mLastMenu;  you can define menus having identifiers greater than the value of 
  4171. mLastMenu to optimize menu setup. For more information, see the "Theory of 
  4172. Operation" comment in the file UMenuSetup.p.
  4173.  
  4174. æKY mListItemHit
  4175. æD 
  4176. æFi UMacAppUtilities
  4177. æT CONSTANT 
  4178. æC Indicates that the user selected an item in a list.
  4179.  
  4180. æKY mListScrollBarHit
  4181. æD 
  4182. æFi UMacAppUtilities
  4183. æT CONSTANT 
  4184. æC Indicates that the user clicked in the scroll bar of a TListView list.
  4185.  
  4186. æKY mOKHit
  4187. æD 
  4188. æFi UMacAppUtilities
  4189. æT CONSTANT 
  4190. æC Indicates that the user clicked an OK button.
  4191.  
  4192.  
  4193. æKY mPatternHit
  4194. æD 
  4195. æFi UMacAppUtilities
  4196. æT CONSTANT 
  4197. æC Indicates that the user clicked a TPattern object.
  4198.  
  4199. æKY mPictureHit
  4200. æD 
  4201. æFi UMacAppUtilities
  4202. æT CONSTANT 
  4203. æC Indicates that the user clicked a TPicture object.
  4204.  
  4205.  
  4206. æKY mPopupHit
  4207. æD 
  4208. æFi UMacAppUtilities
  4209. æT CONSTANT 
  4210. æC Indicates that the user clicked a TPopup object.
  4211.  
  4212. æKY mRadioHit
  4213. æD 
  4214. æFi UMacAppUtilities
  4215. æT CONSTANT 
  4216. æC Indicates that the user clicked a TRadio object.
  4217.  
  4218.  
  4219. æKY msgAlert
  4220. æD 
  4221. æFi UMacAppUtilities
  4222. æT CONSTANT 
  4223. æC The value that MacApp adds to an alert number to obtain the number associated 
  4224. with the appropriate message.
  4225.  
  4226. æKY msgAltRecovery
  4227. æD 
  4228. æFi UMacAppUtilities
  4229. æT CONSTANT 
  4230. æC The value  used in an alternate scheme of looking up error recovery strings.
  4231.  
  4232.  
  4233. æKY msgCancelled
  4234. æD 
  4235. æFi UMacAppUtilities
  4236. æT CONSTANT 
  4237. æC Indicates no error when certain operations fail because the user cancelled 
  4238. them.
  4239.  
  4240. æKY msgCmdErr
  4241. æD 
  4242. æFi UMacAppUtilities
  4243. æT CONSTANT 
  4244. æC The value that MacApp  uses to fill in the message "Could not complete the … 
  4245. command …" MacApp adds the value of msgCmdErr to a command number and uses that 
  4246. number to find the appropriate parameters for the message.
  4247.  
  4248. æKY msgDrawFailed
  4249. æD 
  4250. æFi UMacAppUtilities
  4251. æT CONSTANT 
  4252. æC The error code that results when a view fails to draw its contents.
  4253.  
  4254. æKY msgExportClipFailed
  4255. æD 
  4256. æFi UMacAppUtilities
  4257. æT CONSTANT 
  4258. æC The error code that results when a view fails to export its contents to the 
  4259. Clipboard.
  4260.  
  4261.  
  4262. æKY msgImportClipFailed
  4263. æD 
  4264. æFi UMacAppUtilities
  4265. æT CONSTANT 
  4266. æC The error code that results when a view fails to import the contents of the 
  4267. Clipboard.
  4268.  
  4269. æKY msgInitFailed
  4270. æD 
  4271. æFi UMacAppUtilities
  4272. æT CONSTANT 
  4273. æC The error code that results when an object fails to initialize itself.
  4274.  
  4275. æKY msgLookup
  4276. æD 
  4277. æFi UMacAppUtilities
  4278. æT CONSTANT 
  4279. æC The value that MacApp uses to fill in the message “Could not … because …”  
  4280. MacApp adds the value to an integer and uses that number to find the appropriate 
  4281. parameters in the errOperationsID table.
  4282.  
  4283. æKY msgNewFailed
  4284. æD 
  4285. æFi UMacAppUtilities
  4286. æT CONSTANT 
  4287. æC The error code that results when the handler for the New menu command fails.
  4288.  
  4289.  
  4290. æKY msgOpenFailed
  4291. æD 
  4292. æFi UMacAppUtilities
  4293. æT CONSTANT 
  4294. æC The error code that results when the handler for the Open menu command fails.
  4295.  
  4296.  
  4297. æKY msgPrintFailed
  4298. æD 
  4299. æFi UMacAppUtilities
  4300. æT CONSTANT 
  4301. æC The error code that results when the handler for the Print menu command fails.
  4302.  
  4303. æKY msgRevertFailed
  4304. æD 
  4305. æFi UMacAppUtilities
  4306. æT CONSTANT 
  4307. æC The error code that results when the handler for the Revert menu item fails.
  4308.  
  4309. æKY msgSaveAsFailed
  4310. æD 
  4311. æFi UMacAppUtilities
  4312. æT CONSTANT 
  4313. æC The error code that results when the handler for the Save As menu item fails.
  4314.  
  4315. æKY msgSaveCopyFailed
  4316. æD 
  4317. æFi UMacAppUtilities
  4318. æT CONSTANT 
  4319. æC The error code that results when the handler for the Save a Copy In menu item 
  4320. fails.
  4321.  
  4322. æKY msgSaveFailed
  4323. æD 
  4324. æFi UMacAppUtilities
  4325. æT CONSTANT 
  4326. æC The error code that results when a handler for the Save menu item fails.
  4327.  
  4328. æKY msgStrList
  4329. æD 
  4330. æFi UMacAppUtilities
  4331. æT CONSTANT 
  4332. æC The standard list of operation strings used by MacApp. 
  4333.  
  4334. æKY mStaticTextHit
  4335. æD 
  4336. æFi UMacAppUtilities
  4337. æT CONSTANT 
  4338. æC Indicates that the user clicked a TStaticText object.
  4339.  
  4340.  
  4341. æKY mVScrollBarHit
  4342. æD 
  4343. æFi UMacAppUtilities
  4344. æT CONSTANT 
  4345. æC Indicates that the user clicked in a vertical scroll bar.
  4346.  
  4347.  
  4348. æKY phAboutApp
  4349. æD 
  4350. æFi UMacAppUtilities
  4351. æT CONSTANT 
  4352. æC The resource identifier of the About box.
  4353.  
  4354.  
  4355. æKY phCmdErr
  4356. æD 
  4357. æFi UMacAppUtilities
  4358. æT CONSTANT 
  4359. æC An error message that makes use of parameterized text to display the message 
  4360. “Could not complete the “^2” command because ^0. ^1”. 
  4361.  
  4362. æKY phFileChanged
  4363. æD 
  4364. æFi UMacAppUtilities
  4365. æT CONSTANT 
  4366. æC The error message displayed if the file has changed since it was last saved on 
  4367. the disk.
  4368.  
  4369. æKY phFinderPrintDialog
  4370. æD 
  4371. æFi UMacAppUtilities
  4372. æT CONSTANT 
  4373. æC The dialog box displayed when the user is printing from the Finder.  This 
  4374. dialog box includes a Cancel All Printing button; the dialog box represented by 
  4375. phSpoolPrintDialog does not.
  4376.  
  4377. æKY phGenError
  4378. æD 
  4379. æFi UMacAppUtilities
  4380. æT CONSTANT 
  4381. æC A generic error message that uses parameterized text to display the message 
  4382. “Could not ^2, because ^0. ^1.” 
  4383.  
  4384. æKY phInvalidValue
  4385. æD 
  4386. æFi UMacAppUtilities
  4387. æT CONSTANT 
  4388. æC The message displayed when the user enters an invalid value.
  4389.  
  4390. æKY phNoPages
  4391. æD 
  4392. æFi UMacAppUtilities
  4393. æT CONSTANT 
  4394. æC The message displayed when the user enters an invalid page range in the print 
  4395. dialog box.
  4396.  
  4397. æKY phOfferReadOnly
  4398. æD 
  4399. æFi UMacAppUtilities
  4400. æT CONSTANT 
  4401. æC The message displayed when a file cannot be opened for write access and the 
  4402. application offers to open it for read-only access.
  4403.  
  4404. æKY phPurgeOld
  4405. æD 
  4406. æFi UMacAppUtilities
  4407. æT CONSTANT 
  4408. æC The message displayed when the application must attempt a save-in-place 
  4409. operation.
  4410.  
  4411. æKY phReopenDoc
  4412. æD 
  4413. æFi UMacAppUtilities
  4414. æT CONSTANT 
  4415. æC The message displayed when the user attempts to open a document that is already 
  4416. open.
  4417.  
  4418. æKY phRevert
  4419. æD 
  4420. æFi UMacAppUtilities
  4421. æT CONSTANT 
  4422. æC The message that confirms the user's command to restore the state of the 
  4423. document to the state that was previously saved on the disk.
  4424.  
  4425. æKY phSaveChanges
  4426. æD 
  4427. æFi UMacAppUtilities
  4428. æT CONSTANT 
  4429. æC The message displayed when the user closes a document that has changed since it 
  4430. was last saved.
  4431.  
  4432. æKY phSpaceIsLow
  4433. æD 
  4434. æFi UMacAppUtilities
  4435. æT CONSTANT 
  4436. æC The message displayed when MacApp is close to running out of memory.
  4437.  
  4438. æKY phSpoolPrintDialog
  4439. æD 
  4440. æFi UMacAppUtilities
  4441. æT CONSTANT 
  4442. æC The dialog box displayed when the application is printing a file. The name is 
  4443. somewhat misleading because this dialog box is also used when the application is 
  4444. not spooling.
  4445.  
  4446. æKY phStylesTooBig
  4447. æD 
  4448. æFi UMacAppUtilities
  4449. æT CONSTANT 
  4450. æC The alert message used in the UTEView unit to reject the “styles” portion of a 
  4451. paste operation.
  4452.  
  4453. æKY phTooManyChars
  4454. æD 
  4455. æFi UMacAppUtilities
  4456. æT CONSTANT 
  4457. æC The alert message used in the UDialog and UTEView unitsto reject excess 
  4458. keystrokes or a paste operation that contains too much data.
  4459.  
  4460. æKY phUnimplemented
  4461. æD 
  4462. æFi UMacAppUtilities
  4463. æT CONSTANT 
  4464. æC The alert message used to respond to the user's choice of an unimplemented 
  4465. command.
  4466.  
  4467. æKY phUnknownErr
  4468. æD 
  4469. æFi UMacAppUtilities
  4470. æT CONSTANT 
  4471. æC The alert displayed when no operation is supplied and the command fails; it 
  4472. says “Could not complete your request because ^0. ^1.”
  4473.  
  4474. æKY phUnsupportedConfiguration
  4475. æD 
  4476. æFi UMacAppUtilities
  4477. æT CONSTANT 
  4478. æC The alert message displayed when the host machine does not have the 
  4479. configuration necessary to run the application.
  4480.  
  4481.  
  4482. æKY phWhichDoc
  4483. æD 
  4484. æFi UMacAppUtilities
  4485. æT CONSTANT 
  4486. æC The dialog box used to specify the current print job when the application is 
  4487. printing from the Finder.
  4488.  
  4489. æKY teJustSystem
  4490. æD 
  4491. æFi UMacAppUtilities
  4492. æT CONSTANT 
  4493. æC Indicates that methods accepting this constant as an argument are to use the 
  4494. system justification set by the installed script. In Arabic and Hebrew systems, 
  4495. this is typically right justification (but may be changed by the user). This 
  4496. constant simply renames the constant teJustLeft; using the name teJustSystem  
  4497. makes this issue more visible to the developer.  If left justification is 
  4498. required, you can use teForceLeft.
  4499.  
  4500. æKY Fields
  4501. æKL
  4502. TApplication.fCommandQueue
  4503. TApplication.fLastCommand
  4504. TApplication.fLaunchWithNewDocument
  4505. TApplication.fTicksOfLastIdle
  4506. TApplication.fTicksTilNextIdle
  4507. TAssociation.fEntries
  4508. TCellSelectCommand.fAnchorCell
  4509. TCellSelectCommand.fCmdKey
  4510. TCellSelectCommand.fDeselecting
  4511. TCellSelectCommand.fDifference
  4512. TCellSelectCommand.fGridView
  4513. TCellSelectCommand.fPrevCell
  4514. TCellSelectCommand.fPrevSelection
  4515. TCellSelectCommand.fShiftKey
  4516. TCellSelectCommand.fThisSelection
  4517. TClassListView.fInspectWindow
  4518. TCluster.fDataHandle
  4519. TCluster.fIndex
  4520. TCluster.fRsrcID
  4521. TCommand.fCanUndo
  4522. TCommand.fCausesChange
  4523. TCommand.fChangedDocument
  4524. TCommand.fChangesClipboard
  4525. TCommand.fCmdDone
  4526. TCommand.fCmdNumber
  4527. TCommand.fConstrainsMouse
  4528. TCommand.fFreeOnCompletion
  4529. TCommand.fInitialPt
  4530. TCommand.fPriority
  4531. TCommand.fReadyToExecute
  4532. TCommand.fRecurring
  4533. TCommand.fScroller
  4534. TCommand.fTrackNonMovement
  4535. TCommand.fTracksMouse
  4536. TCommand.fView
  4537. TCommand.fViewConstrain
  4538. TControl.fAdornment
  4539. TControl.fDefChoice
  4540. TControl.fDimmed
  4541. TControl.fDismissesDialog
  4542. TControl.fHilite
  4543. TControl.fInset
  4544. TControl.fPenSize
  4545. TControl.fSizeable
  4546. TControl.fTextStyle
  4547. TControlTracker.fControl
  4548. TCtlMgr.fBitsToShift
  4549. TCtlMgr.fCMgrControl
  4550. TCtlMgr.fLongMax
  4551. TCtlMgr.fLongMin
  4552. TCtlMgr.fLongVal
  4553. TDeskScrapView.fDataHandle
  4554. TDeskScrapView.fHavePicture
  4555. TDeskScrapView.fHaveText
  4556. TDeskScrapView.fScrapCount
  4557. TDialogTEView.fEditText
  4558. TDialogTEView.fScroller
  4559. TDialogView.fCancelItem
  4560. TDialogView.fCurrentEditText
  4561. TDialogView.fDefaultItem
  4562. TDialogView.fDismissed
  4563. TDialogView.fDismisser
  4564. TDialogView.fParamTxt
  4565. TDialogView.fTEView
  4566. TDocument.fChangeCount
  4567. TDocument.fCommitOnSave
  4568. TDocument.fCreator
  4569. TDocument.fDataOpen
  4570. TDocument.fDataPerm
  4571. TDocument.fDataRefNum
  4572. TDocument.fDocPrintHandler
  4573. TDocument.fFileType
  4574. TDocument.fModDate
  4575. TDocument.fPrintInfo
  4576. TDocument.fReopenAlert
  4577. TDocument.fRsrcOpen
  4578. TDocument.fRsrcPerm
  4579. TDocument.fRsrcRefNum
  4580. TDocument.fSaveExists
  4581. TDocument.fSaveInPlace
  4582. TDocument.fSavePrintInfo
  4583. TDocument.fSharePrintInfo
  4584. TDocument.fTitle
  4585. TDocument.fUsesDataFork
  4586. TDocument.fUsesRsrcFork
  4587. TDocument.fViewList
  4588. TDocument.fVolRefNum
  4589. TDocument.fWindowList
  4590. TDynamicArray.fAllocatedSize
  4591. TDynamicArray.fAllocationIncrement
  4592. TDynamicArray.fClassSize
  4593. TDynamicArray.fElementSize
  4594. TDynamicArray.fElementSizeShift
  4595. TDynamicArray.fFreeRequested
  4596. TDynamicArray.fSize
  4597. TEditText.fControlChars
  4598. TEditText.fMaxChars
  4599. TEditText.fTEView
  4600. TEntry.fKey
  4601. TEntry.fValue
  4602. TEvtHandler.fIdleFreq
  4603. TEvtHandler.fLastIdle
  4604. TEvtHandler.fNextHandler
  4605. TGridView.fAdornCols
  4606. TGridView.fAdornRows
  4607. TGridView.fColInset
  4608. TGridView.fColWidths
  4609. TGridView.fHLRegion
  4610. TGridView.fNumOfCols
  4611. TGridView.fNumOfRows
  4612. TGridView.fRowHeights
  4613. TGridView.fRowInset
  4614. TGridView.fSelections
  4615. TGridView.fSingleSelection
  4616. TGridView.fTempSelections
  4617. TIcon.fDataHandle
  4618. TIcon.fPreferColor
  4619. TIcon.fRsrcID
  4620. TInspector.fClassesByID
  4621. TInspector.fClassesByName
  4622. TInspector.fStaggerCount
  4623. TInspector.fWindowCount
  4624. TInspectWindow.fClassListView
  4625. TInspectWindow.fObjectView
  4626. TInspectWindow.fObjListView
  4627. TList.fObjClassID
  4628. TListView.fCurrentSelection
  4629. TListView.fItemHeight
  4630. TListView.fLineAscent
  4631. TListView.fNumberOfItems
  4632. TListView.fTextStyle
  4633. TNumberText.fMaximum
  4634. TNumberText.fMinimum
  4635. TObjectView.fInspectWindow
  4636. TObjectView.fLockState
  4637. TObjectView.fObject
  4638. TObjectView.fType
  4639. TObjListView.fInspectWindow
  4640. TObjListView.fObjectList
  4641. TPattern.fDataHandle
  4642. TPattern.fPreferColor
  4643. TPattern.fRsrcID
  4644. TPicture.fDataHandle
  4645. TPicture.fRsrcID
  4646. TPopup.fCurrentItem
  4647. TPopup.fItemOffset
  4648. TPopup.fMenuHandle
  4649. TPopup.fMenuID
  4650. TPopup.fRsrcID
  4651. TPrintCommand.fStdPrintHandler
  4652. TPrintHandler.fDeviceRes
  4653. TPrintHandler.fDocument
  4654. TPrintHandler.fFocusedPage
  4655. TPrintHandler.fView
  4656. TPrintHandler.fViewPerPage
  4657. TPrintStyleChangeCommand.fNewHPrint
  4658. TPrintStyleChangeCommand.fOldHPrint
  4659. TPrintStyleChangeCommand.fStdPrintHandler
  4660. TPtrBasedDoublyLinkedList.fHeadNodePtr
  4661. TPtrBasedDoublyLinkedList.fTailNodePtr
  4662. TRunArray.fChunks
  4663. TRunArray.fLastChunk
  4664. TRunArray.fLastIndex
  4665. TRunArray.fLastItem
  4666. TRunArray.fLastTotal
  4667. TRunArray.fNoOfChunks
  4668. TRunArray.fNoOfItems
  4669. TRunArray.fTotal
  4670. TScrollBar.fBitsToShift
  4671. TScrollBar.fDirection
  4672. TScrollBar.fLongMax
  4673. TScrollBar.fLongMin
  4674. TScrollBar.fLongVal
  4675. TScroller.fConstrain
  4676. TScroller.fMaxTranslation
  4677. TScroller.fRespondsToFunctionKeys
  4678. TScroller.fSBarOffsets
  4679. TScroller.fScrollBars
  4680. TScroller.fScrollLimit
  4681. TScroller.fScrollUnit
  4682. TScroller.fTranslation
  4683. TSScrollBar.fScrollers
  4684. TStaticText.fAutoWrap
  4685. TStaticText.fDataHandle
  4686. TStaticText.fIndex
  4687. TStaticText.fJust
  4688. TStaticText.fRsrcID
  4689. TStdPrintHandler.fFinderJobDialog
  4690. TStdPrintHandler.fFinderSetup
  4691. TStdPrintHandler.fFixedSizePages
  4692. TStdPrintHandler.fHPrint
  4693. TStdPrintHandler.fLastBreak
  4694. TStdPrintHandler.fLastCheckedPrinter
  4695. TStdPrintHandler.fLastPrinterName
  4696. TStdPrintHandler.fLastStrip
  4697. TStdPrintHandler.fMarginRes
  4698. TStdPrintHandler.fMinimalMargins
  4699. TStdPrintHandler.fPageAreas
  4700. TStdPrintHandler.fPageDirection
  4701. TStdPrintHandler.fPageStrips
  4702. TStdPrintHandler.fPPrPort
  4703. TStdPrintHandler.fPrintDialog
  4704. TStdPrintHandler.fPrinterDev
  4705. TStdPrintHandler.fPrintExtent
  4706. TStdPrintHandler.fShowBreaks
  4707. TStdPrintHandler.fSquareDots
  4708. TStdPrintHandler.fStartPage
  4709. TStdPrintHandler.fViewedRect
  4710. TTECommand.fHTE
  4711. TTECommand.fNewEnd
  4712. TTECommand.fNewStart
  4713. TTECommand.fNewStyles
  4714. TTECommand.fNewText
  4715. TTECommand.fOldEnd
  4716. TTECommand.fOldStart
  4717. TTECommand.fOldStyles
  4718. TTECommand.fOldText
  4719. TTECommand.fPadding
  4720. TTECommand.fStylePad
  4721. TTECommand.fTEView
  4722. TTECommand.fTextPad
  4723. TTECutCopyCommand.fClipCreated
  4724. TTEStyleCommand.fMode
  4725. TTEStyleCommand.fNewTextStyle
  4726. TTEStyleCommand.fOldTextStyle
  4727. TTETypingCommand.fCompleted
  4728. TTETypingCommand.fFirstChar
  4729. TTEView.fAcceptsChanges
  4730. TTEView.fAutoWrap
  4731. TTEView.fControlChars
  4732. TTEView.fFreeText
  4733. TTEView.fHTE
  4734. TTEView.fInset
  4735. TTEView.fJustification
  4736. TTEView.fKeyCmdNumber
  4737. TTEView.fLastHeight
  4738. TTEView.fLastLine
  4739. TTEView.fLastPageBreak
  4740. TTEView.fLastWidth
  4741. TTEView.fMaxChars
  4742. TTEView.fMinAhead
  4743. TTEView.fSavedTEHandle
  4744. TTEView.fSpecsChanged
  4745. TTEView.fStyleType
  4746. TTEView.fText
  4747. TTEView.fTextStyle
  4748. TTEView.fTypingCommand
  4749. TTextGridView.fLineAscent
  4750. TTextGridView.fLineHeight
  4751. TTextGridView.fTextStyle
  4752. TTranscriptView.fCols
  4753. TTranscriptView.fFirstLineIndex
  4754. TTranscriptView.fFontHeight
  4755. TTranscriptView.fFontInfo
  4756. TTranscriptView.fForcePtr
  4757. TTranscriptView.fForceStack
  4758. TTranscriptView.fGotRefnum
  4759. TTranscriptView.fHelpProc
  4760. TTranscriptView.fInsertionPointOn
  4761. TTranscriptView.fInsertionPt
  4762. TTranscriptView.fLastCh
  4763. TTranscriptView.fLastInsertionPointTime
  4764. TTranscriptView.fLineLengths
  4765. TTranscriptView.fLineStarts
  4766. TTranscriptView.fRefnum
  4767. TTranscriptView.fRows
  4768. TTranscriptView.fText
  4769. TTranscriptView.fTextStyle
  4770. TTranscriptView.fTotal
  4771. TTranscriptView.fUpdateRgn
  4772. TTranscriptView.fVRefNum
  4773. TTranscriptView.fWrToFile
  4774. TTranscriptView.fWrToWindow
  4775. TView.fDocument
  4776. TView.fFocusRec
  4777. TView.fHLDesired
  4778. TView.fIdentifier
  4779. TView.fLocation
  4780. TView.fPrintHandler
  4781. TView.fShown
  4782. TView.fSize
  4783. TView.fSizeDeterminer
  4784. TView.fSubViews
  4785. TView.fSuperView
  4786. TView.fViewEnabled
  4787. TWindow.fAdapted
  4788. TWindow.fClosesDocument
  4789. TWindow.fConstTitle
  4790. TWindow.fContDifference
  4791. TWindow.fContRgnInset
  4792. TWindow.fDisposeOnFree
  4793. TWindow.fDoFirstClick
  4794. TWindow.fFloats
  4795. TWindow.fForcedOnScreen
  4796. TWindow.fFreeOnClosing
  4797. TWindow.fHorzCentered
  4798. TWindow.fIsActive
  4799. TWindow.fIsClosable
  4800. TWindow.fIsModal
  4801. TWindow.fIsResizable
  4802. TWindow.fMoveBounds
  4803. TWindow.fMustAdapt
  4804. TWindow.fMustForceOnScreen
  4805. TWindow.fMustHorzCenter
  4806. TWindow.fMustStagger
  4807. TWindow.fMustVertCenter
  4808. TWindow.fOpenInitially
  4809. TWindow.fPreDocname
  4810. TWindow.fProcId
  4811. TWindow.fResizeLimits
  4812. TWindow.fStaggered
  4813. TWindow.fTarget
  4814. TWindow.fTargetId
  4815. TWindow.fVertCentered
  4816. TWindow.fWMgrWindow
  4817.  
  4818.  
  4819. æKY TApplication.fCommandQueue
  4820. æD fCommandQueue: TCommandList;
  4821. æFi UMacApp.p
  4822. æT FIELD 
  4823. æC The queue of commands that were posted for execution. 
  4824.  
  4825.  
  4826.  
  4827. æKY TApplication.fLastCommand
  4828. æD fLastCommand: TCommand;
  4829. æFi UMacApp.p
  4830. æT FIELD 
  4831. æC The last command done or undone by the user. 
  4832.  
  4833.  
  4834.  
  4835. æKY TApplication.fLaunchWithNewDocument
  4836. æD fLaunchWithNewDocument: BOOLEAN;
  4837. æFi UMacApp.p
  4838. æT FIELD 
  4839. æC A value of TRUE (the default) specifies that a new untitled document is to be 
  4840. created when the application is launched without a document. 
  4841.  
  4842.  
  4843.  
  4844. æKY TApplication.fTicksOfLastIdle
  4845. æD fTicksOfLastIdle: LONGINT;
  4846. æFi UMacApp.p
  4847. æT FIELD 
  4848. æC The time, in ticks, when the active chain and cohandlers were last idled. 
  4849.  
  4850.  
  4851.  
  4852. æKY TApplication.fTicksTilNextIdle
  4853. æD fTicksTilNextIdle: LONGINT;
  4854. æFi UMacApp.p
  4855. æT FIELD 
  4856. æC The computed number of ticks until the next time TApplication.Idle needs to be 
  4857. called. The field also represents the maximum number of waitTicks that can be 
  4858. passed to TApplication.GetEvent. 
  4859.  
  4860.  
  4861.  
  4862. æKY TAssociation.fEntries
  4863. æD fEntries: TEntriesList;
  4864. æFi UAssociation.p
  4865. æT FIELD 
  4866. æC The items in a TEntriesList list. 
  4867.  
  4868.  
  4869.  
  4870. æKY TCellSelectCommand.fAnchorCell
  4871. æD fAnchorCell: GridCell;
  4872. æFi UGridView.p
  4873. æT FIELD 
  4874. æC The first cell in a selection. 
  4875.  
  4876.  
  4877.  
  4878. æKY TCellSelectCommand.fCmdKey
  4879. æD fCmdKey: BOOLEAN;
  4880. æFi UGridView.p
  4881. æT FIELD 
  4882. æC TRUE if the Command key is currently pressed. 
  4883.  
  4884.  
  4885.  
  4886. æKY TCellSelectCommand.fDeselecting
  4887. æD fDeselecting: BOOLEAN;
  4888. æFi UGridView.p
  4889. æT FIELD 
  4890. æC TRUE if one or more cells are to be excluded from the selection. 
  4891.  
  4892.  
  4893.  
  4894. æKY TCellSelectCommand.fDifference
  4895. æD fDifference: RgnHandle;
  4896. æFi UGridView.p
  4897. æT FIELD 
  4898. æC The region to be excluded from the selection when the value of fDeselecting is 
  4899. TRUE. 
  4900.  
  4901.  
  4902.  
  4903. æKY TCellSelectCommand.fGridView
  4904. æD fGridView: TGridView;
  4905. æFi UGridView.p
  4906. æT FIELD 
  4907. æC The associated TGridView object. 
  4908.  
  4909.  
  4910.  
  4911. æKY TCellSelectCommand.fPrevCell
  4912. æD fPrevCell: GridCell;
  4913. æFi UGridView.p
  4914. æT FIELD 
  4915. æC The cell selected prior to the current selection. 
  4916.  
  4917.  
  4918.  
  4919. æKY TCellSelectCommand.fPrevSelection
  4920. æD fPrevSelection: RgnHandle;
  4921. æFi UGridView.p
  4922. æT FIELD 
  4923. æC A handle to the region that defines the selection made prior to the current 
  4924. selection. 
  4925.  
  4926.  
  4927.  
  4928. æKY TCellSelectCommand.fShiftKey
  4929. æD fShiftKey: BOOLEAN;
  4930. æFi UGridView.p
  4931. æT FIELD 
  4932. æC TRUE if the Shift key is currently pressed. 
  4933.  
  4934.  
  4935.  
  4936. æKY TCellSelectCommand.fThisSelection
  4937. æD fThisSelection: RgnHandle;
  4938. æFi UGridView.p
  4939. æT FIELD 
  4940. æC A handle to the region that defines the current selection. The value of the 
  4941. fThisSelection field may be the union of fPrevSelection and a new selection, the 
  4942. difference between the two, or simply the new selection. 
  4943.  
  4944.  
  4945.  
  4946. æKY TClassListView.fInspectWindow
  4947. æD fInspectWindow: TInspectWindow;
  4948. æFm UInspector.inc1.p
  4949. æT FIELD 
  4950. æC The Window Manager window in which the MacApp Inspector appears. 
  4951.  
  4952.  
  4953.  
  4954. æKY TCluster.fDataHandle
  4955. æD fDataHandle: StringHandle;
  4956. æFi UDialog.p
  4957. æT FIELD 
  4958. æC The handle to the string list containing labels for the cluster. 
  4959.  
  4960.  
  4961.  
  4962. æKY TCluster.fIndex
  4963. æD fIndex: INTEGER;
  4964. æFi UDialog.p
  4965. æT FIELD 
  4966. æC The index specifying which position in the string list the specified label 
  4967. occupies. 
  4968.  
  4969.  
  4970.  
  4971. æKY TCluster.fRsrcID
  4972. æD fRsrcID: INTEGER;
  4973. æFi UDialog.p
  4974. æT FIELD 
  4975. æC The resource ID of the string list. 
  4976.  
  4977.  
  4978.  
  4979. æKY TCommand.fCanUndo
  4980. æD fCanUndo: BOOLEAN;
  4981. æFi UMacApp.p
  4982. æT FIELD 
  4983. æC TRUE if this command can be undone. The default value is TRUE. 
  4984.  
  4985.  
  4986.  
  4987. æKY TCommand.fCausesChange
  4988. æD fCausesChange: BOOLEAN;
  4989. æFi UMacApp.p
  4990. æT FIELD 
  4991. æC TRUE if this command changes the document referenced by the command’s 
  4992. fChangedDocument field. The default value is TRUE. When fCausesChange has the value TRUE, 
  4993. the document is automatically marked as changed when the command is done. If 
  4994. the command is undone, the document’s change count is automatically decremented; 
  4995. if the command is redone, the change count is incremented again. 
  4996.  
  4997.  
  4998.  
  4999. æKY TCommand.fChangedDocument
  5000. æD fChangedDocument: TDocument;
  5001. æFi UMacApp.p
  5002. æT FIELD 
  5003. æC The document that may be changed by the command. 
  5004.  
  5005.  
  5006.  
  5007. æKY TCommand.fChangesClipboard
  5008. æD fChangesClipboard: BOOLEAN;
  5009. æFi UMacApp.p
  5010. æT FIELD 
  5011. æC TRUE if the command changes the Clipboard. The default value is FALSE; you 
  5012. should set it to TRUE for Cut or Copy commands that change the Clipboard. 
  5013.  
  5014.  
  5015.  
  5016. æKY TCommand.fCmdDone
  5017. æD fCmdDone: BOOLEAN;
  5018. æFi UMacApp.p
  5019. æT FIELD 
  5020. æC TRUE if the last "execution" message sent to the command was a DoIt or RedoIt 
  5021. method. 
  5022.  
  5023.  
  5024.  
  5025. æKY TCommand.fCmdNumber
  5026. æD fCmdNumber: CmdNumber;
  5027. æFi UMacApp.p
  5028. æT FIELD 
  5029. æC The command number associated with a particular menu command. 
  5030.  
  5031.  
  5032.  
  5033. æKY TCommand.fConstrainsMouse
  5034. æD fConstrainsMouse: BOOLEAN;
  5035. æFi UMacApp.p
  5036. æT FIELD 
  5037. æC TRUE indicates that MacApp calls this command’s TrackConstrain method while the 
  5038. mouse moves. The default value is FALSE. 
  5039.  
  5040.  
  5041.  
  5042. æKY TCommand.fFreeOnCompletion
  5043. æD fFreeOnCompletion:BOOLEAN;
  5044. æFi UMacApp.p
  5045. æT FIELD 
  5046. æC A value of TRUE causes a command to be freed when it is completed (the default). 
  5047. The command is considered complete after the DoIt method is executed for 
  5048. commands that cannot be undone and after the Commit method is executed for commands 
  5049. that can be undone. 
  5050.  
  5051.  
  5052.  
  5053. æKY TCommand.fInitialPt
  5054. æD fInitialPt: Point;
  5055. æFi UMacApp.p
  5056. æT FIELD 
  5057. æC The point from which to track (usually the point at which the mouse button was 
  5058. pressed) in global coordinates. MacApp sets this field in 
  5059. TApplication.HandleMouseDown; you set it if you create trackers that are not passed back through that 
  5060. call chain. 
  5061.  
  5062.  
  5063.  
  5064. æKY TCommand.fPriority
  5065. æD fPriority: CommandPriority;
  5066. æFi UMacApp.p
  5067. æT FIELD 
  5068. æC Defines how the command should be prioritized if it has to compete on a 
  5069. prioritized basis for execution. The default is kNormalPriority. You usually do not 
  5070. have to set the value of this field. 
  5071.  
  5072.  
  5073.  
  5074. æKY TCommand.fReadyToExecute
  5075. æD fReadyToExecute: BOOLEAN;
  5076. æFi UMacApp.p
  5077. æT FIELD 
  5078. æC TRUE (the default) enables this command to be returned from any queues in which 
  5079. it may be stored. You usually do not have to set this field. 
  5080.  
  5081.  
  5082.  
  5083. æKY TCommand.fRecurring
  5084. æD fRecurring: BOOLEAN;
  5085. æFi UMacApp.p
  5086. æT FIELD 
  5087. æC FALSE (the default) enables this command to be removed from any command queue in 
  5088. which it may be stored, because the command is to be executed only once. 
  5089.  
  5090.  
  5091.  
  5092. æKY TCommand.fScroller
  5093. æD fScroller: TScroller;
  5094. æFi UMacApp.p
  5095. æT FIELD 
  5096. æC A handle to the scroller used for automatic scrolling. If no scroller is 
  5097. associated with the view, the value of fScroller is NIL. To disable automatic 
  5098. scrolling, set the value of fScroller to NIL. 
  5099.  
  5100.  
  5101.  
  5102. æKY TCommand.fTrackNonMovement
  5103. æD fTrackNonMovement: BOOLEAN;
  5104. æFi UMacApp.p
  5105. æT FIELD 
  5106. æC When the value of this field is TRUE, MacApp calls TrackMouse even if the mouse 
  5107. hasn’t moved since the previous call to TrackMouse. The default value is FALSE. 
  5108.  
  5109.  
  5110.  
  5111.  
  5112. æKY TCommand.fTracksMouse
  5113. æD fTracksMouse: BOOLEAN;
  5114. æFi UMacApp.p
  5115. æT FIELD 
  5116. æC TRUE if the command should be tracked. 
  5117.  
  5118.  
  5119.  
  5120. æKY TCommand.fView
  5121. æD fView: TView;
  5122. æFi UMacApp.p
  5123. æT FIELD 
  5124. æC The view in which mouse tracking takes place; set to NIL if you want to track 
  5125. the mouse in global coordinates rather than view coordinates. 
  5126.  
  5127.  
  5128.  
  5129. æKY TCommand.fViewConstrain
  5130. æD fViewConstrain: BOOLEAN;
  5131. æFi UMacApp.p
  5132. æT FIELD 
  5133. æC TRUE if the mouse is constrained to the view. The default value is TRUE. 
  5134.  
  5135.  
  5136.  
  5137. æKY TControl.fAdornment
  5138. æD fAdornment: CntlAdornment;
  5139. æFi UMacApp.p
  5140. æT FIELD 
  5141. æC The type of adornment for the control. Possible values are adnShadow, which 
  5142. shadows the control; adnOval, which frames the control with an oval; adnRRect, 
  5143. which frames the control with a rounded rectangle; adnLineTop, which draws a line 
  5144. above the control; adnLineLeft, which draws a line to the left of the control; 
  5145. adnLine Bottom, which draws a line below the control; and adnLineRight, which 
  5146. draws a line to the right of the control. The default value of fAdornment is NIL, 
  5147. which means the control has no adornment. 
  5148.  
  5149.  
  5150.  
  5151. æKY TControl.fDefChoice
  5152. æD fDefChoice: INTEGER;
  5153. æFi UMacApp.p
  5154. æT FIELD 
  5155. æC The code that is passed to TControl.DoChoice. The default value is the constant 
  5156. mOKHit. 
  5157.  
  5158.  
  5159.  
  5160. æKY TControl.fDimmed
  5161. æD fDimmed: BOOLEAN;
  5162. æFi UMacApp.p
  5163. æT FIELD 
  5164. æC TRUE if the control is dimmed. The default value is FALSE. 
  5165.  
  5166.  
  5167.  
  5168. æKY TControl.fDismissesDialog
  5169. æD fDismissesDialog: BOOLEAN;
  5170. æFi UMacApp.p
  5171. æT FIELD 
  5172. æC TRUE if clicking this control dismisses a dialog box. The default value is 
  5173. FALSE. 
  5174.  
  5175.  
  5176.  
  5177. æKY TControl.fHilite
  5178. æD fHilite: BOOLEAN;
  5179. æFi UMacApp.p
  5180. æT FIELD 
  5181. æC TRUE if the control is highlighted. The default value is FALSE. 
  5182.  
  5183.  
  5184.  
  5185. æKY TControl.fInset
  5186. æD fInset: Rect;
  5187. æFi UMacApp.p
  5188. æT FIELD 
  5189. æC Defines which part of the view is the control's active area. The active control 
  5190. area is determined by insetting the view’s dimensions by fInset. Generally, 
  5191. controls respond to mouse clicks only in the active area, and adornments are drawn 
  5192. in the inactive area. The default inset is (0,0,0,0). 
  5193.  
  5194.  
  5195.  
  5196. æKY TControl.fPenSize
  5197. æD fPenSize: Point;
  5198. æFi UMacApp.p
  5199. æT FIELD 
  5200. æC The pen size used to draw the control’s adornment. The default value is (1,1). 
  5201.  
  5202.  
  5203.  
  5204. æKY TControl.fSizeable
  5205. æD fSizeable: BOOLEAN;
  5206. æFi UMacApp.p
  5207. æT FIELD 
  5208. æC TRUE indicates that the control's active area changes in proportion to the 
  5209. view’s size; FALSE indicates that the size of the control's active area is fixed. If 
  5210. the value of this field is FALSE, changing the view's size simply changes the 
  5211. bottom and right insets from the view’s size to the control’s size. The default 
  5212. value is TRUE. 
  5213.  
  5214.  
  5215.  
  5216. æKY TControl.fTextStyle
  5217. æD fTextStyle: TextStyle;
  5218. æFi UMacApp.p
  5219. æT FIELD 
  5220. æC The font, style, size, and color of the text used to draw the control’s label. 
  5221. The default value is the system font and plain text style. 
  5222.  
  5223.  
  5224.  
  5225. æKY TControlTracker.fControl
  5226. æD fControl: TControl;
  5227. æFi UMacApp.p
  5228. æT FIELD 
  5229. æC The control for which the mouse is being tracked. 
  5230.  
  5231.  
  5232.  
  5233. æKY TCtlMgr.fBitsToShift
  5234. æD fBitsToShift: INTEGER;
  5235. æFi UMacApp.p
  5236. æT FIELD 
  5237. æC The number of bits to shift to convert the control’s long values into Control 
  5238. Manager control values. 
  5239.  
  5240.  
  5241.  
  5242. æKY TCtlMgr.fCMgrControl
  5243. æD fCMgrControl: ControlHandle;
  5244. æFi UMacApp.p
  5245. æT FIELD 
  5246. æC The Control Manager control that the view represents. 
  5247.  
  5248.  
  5249.  
  5250. æKY TCtlMgr.fLongMax
  5251. æD fLongMax: VCoordinate;
  5252. æFi UMacApp.p
  5253. æT FIELD 
  5254. æC The control’s maximum value in VCoordinate units. 
  5255.  
  5256.  
  5257.  
  5258. æKY TCtlMgr.fLongMin
  5259. æD fLongMin: VCoordinate;
  5260. æFi UMacApp.p
  5261. æT FIELD 
  5262. æC The control’s minimum value in VCoordinate units. The default value is 0. 
  5263.  
  5264.  
  5265.  
  5266. æKY TCtlMgr.fLongVal
  5267. æD fLongVal: VCoordinate;
  5268. æFi UMacApp.p
  5269. æT FIELD 
  5270. æC The control’s current value in VCoordinate units. 
  5271.  
  5272.  
  5273.  
  5274. æKY TDeskScrapView.fDataHandle
  5275. æD fDataHandle: Handle;
  5276. æFi UMacApp.p
  5277. æT FIELD 
  5278. æC The handle to the desk scrap. 
  5279.  
  5280.  
  5281.  
  5282. æKY TDeskScrapView.fHavePicture
  5283. æD fHavePicture: BOOLEAN;
  5284. æFi UMacApp.p
  5285. æT FIELD 
  5286. æC TRUE if the data in the desk scrap is of type 'PICT'. 
  5287.  
  5288.  
  5289.  
  5290. æKY TDeskScrapView.fHaveText
  5291. æD fHaveText: BOOLEAN;
  5292. æFi UMacApp.p
  5293. æT FIELD 
  5294. æC TRUE if the desk scrap is of type 'TEXT'. 
  5295.  
  5296.  
  5297.  
  5298. æKY TDeskScrapView.fScrapCount
  5299. æD fScrapCount: INTEGER;
  5300. æFi UMacApp.p
  5301. æT FIELD 
  5302. æC The scrap count of the scrap represented by the view. MacApp uses fScrapCount to 
  5303. determine whether the contents of the desk scrap have changed. 
  5304.  
  5305.  
  5306.  
  5307. æKY TDialogTEView.fEditText
  5308. æD fEditText: TEditText;
  5309. æFi UDialog.p
  5310. æT FIELD 
  5311. æC The associated TEditText object. 
  5312.  
  5313.  
  5314.  
  5315. æKY TDialogTEView.fScroller
  5316. æD fScroller: TScroller;
  5317. æFi UDialog.p
  5318. æT FIELD 
  5319. æC A reference to the scroller in which the TDialogTEView object is contained; used 
  5320. to make mouse-tracking and automatic scrolling easier. 
  5321.  
  5322.  
  5323.  
  5324. æKY TDialogView.fCancelItem
  5325. æD fCancelItem: IDType;
  5326. æFi UDialog.p
  5327. æT FIELD 
  5328. æC The identifier of the Cancel item. 
  5329.  
  5330.  
  5331.  
  5332. æKY TDialogView.fCurrentEditText
  5333. æD fCurrentEditText: TEditText;
  5334. æFi UDialog.p
  5335. æT FIELD 
  5336. æC The currently selected TEditText item. 
  5337.  
  5338.  
  5339.  
  5340. æKY TDialogView.fDefaultItem
  5341. æD fDefaultItem: IDType;
  5342. æFi UDialog.p
  5343. æT FIELD 
  5344. æC The identifier of the default item. 
  5345.  
  5346.  
  5347.  
  5348. æKY TDialogView.fDismissed
  5349. æD fDismissed: BOOLEAN;
  5350. æFi UDialog.p
  5351. æT FIELD 
  5352. æC TRUE if the dialog box has been dismissed. 
  5353.  
  5354.  
  5355.  
  5356. æKY TDialogView.fDismisser
  5357. æD fDismisser: IDType;
  5358. æFi UDialog.p
  5359. æT FIELD 
  5360. æC The identifier of the view in which the message dismissing the dialog box 
  5361. originated. 
  5362.  
  5363.  
  5364.  
  5365. æKY TDialogView.fParamTxt
  5366. æD fParamTxt: TAssociation;
  5367. æFi UDialog.p
  5368. æT FIELD 
  5369. æC The TEntry list of strings that replace parameters in dialog boxes. 
  5370.  
  5371.  
  5372.  
  5373. æKY TDialogView.fTEView
  5374. æD fTEView: TDialogTEView;
  5375. æFi UDialog.p
  5376. æT FIELD 
  5377. æC The subview in which text editing actually takes place in TEditText views. 
  5378.  
  5379.  
  5380.  
  5381. æKY TDocument.fChangeCount
  5382. æD fChangeCount: LONGINT;
  5383. æFi UMacApp.p
  5384. æT FIELD 
  5385. æC The number of changes that occurred since the last time the document was saved. 
  5386. You can use TDocument.SetChangeCount to set this value. 
  5387.  
  5388.  
  5389.  
  5390. æKY TDocument.fCommitOnSave
  5391. æD fCommitOnSave: BOOLEAN;
  5392. æFi UMacApp.p
  5393. æT FIELD 
  5394. æC Set fCommitOnSave to TRUE if the last command affects the document and is to be 
  5395. committed when saving the document. The default value is TRUE. 
  5396.  
  5397.  
  5398.  
  5399. æKY TDocument.fCreator
  5400. æD fCreator: OSType;
  5401. æFi UMacApp.p
  5402. æT FIELD 
  5403. æC A four-character code that specifies the application that created the document; 
  5404. you specify its default value as an argument to the method TDocument.IDocument. 
  5405.  
  5406.  
  5407.  
  5408.  
  5409. æKY TDocument.fDataOpen
  5410. æD fDataOpen: BOOLEAN;
  5411. æFi UMacApp.p
  5412. æT FIELD 
  5413. æC TRUE if the document file's data fork must be kept open at all times. The value 
  5414. of fDataOpen is TRUE only for disk-based documents. You specify this field's 
  5415. default value as an argument to the method TDocument.IDocument. 
  5416.  
  5417.  
  5418.  
  5419. æKY TDocument.fDataPerm
  5420. æD fDataPerm: INTEGER;
  5421. æFi UMacApp.p
  5422. æT FIELD 
  5423. æC The permission used to open the file's data fork. Possible values are fsRdPerm 
  5424. (read-only permission, the default), fsWrPerm (write-only permission), 
  5425. fsRdWrPerm (read and write permission), and fsRdWrShPerm (shared permission). 
  5426.  
  5427.  
  5428.  
  5429. æKY TDocument.fDataRefNum
  5430. æD fDataRefNum: INTEGER;
  5431. æFi UMacApp.p
  5432. æT FIELD 
  5433. æC The reference number for the document file's open data fork. This field is valid 
  5434. only if the value of the fDataOpen field is TRUE. 
  5435.  
  5436.  
  5437.  
  5438. æKY TDocument.fDocPrintHandler
  5439. æD fDocPrintHandler: TPrintHandler;
  5440. æFi UMacApp.p
  5441. æT FIELD 
  5442. æC The object that enables and executes the Print, Print One, and Page Setup 
  5443. commands. 
  5444.  
  5445.  
  5446.  
  5447. æKY TDocument.fFileType
  5448. æD fFileType: OSType;
  5449. æFi UMacApp.p
  5450. æT FIELD 
  5451. æC The four-character code that specifies the document's file type; you specify its 
  5452. default value as an argument to the method TDocument.IDocument. 
  5453.  
  5454.  
  5455.  
  5456. æKY TDocument.fModDate
  5457. æD fModDate: LONGINT;
  5458. æFi UMacApp.p
  5459. æT FIELD 
  5460. æC The file modification date specifying when the file was last read or saved; the 
  5461. default value in newly-initialized TDocument objects is 0. 
  5462.  
  5463.  
  5464.  
  5465. æKY TDocument.fPrintInfo
  5466. æD fPrintInfo: Handle;
  5467. æFi UMacApp.p
  5468. æT FIELD 
  5469. æC A handle to a 120-byte print information record. The handle is allocated by 
  5470. TDocument.DoRead if an existing document is being opened, or by IStdPrintHandler if 
  5471. a new document is being created. If there is no print information record, set 
  5472. fPrintInfo to NIL; McApp does this for you when creating a new document and 
  5473. when freeing a document. 
  5474.  
  5475.  
  5476.  
  5477. æKY TDocument.fReopenAlert
  5478. æD fReopenAlert: BOOLEAN;
  5479. æFi UMacApp.p
  5480. æT FIELD 
  5481. æC Set the value of fReopenAlert to TRUE if you want an alert box to appear when 
  5482. the user attempts to reopen a document. The default value is TRUE. 
  5483.  
  5484.  
  5485.  
  5486. æKY TDocument.fRsrcOpen
  5487. æD fRsrcOpen: BOOLEAN;
  5488. æFi UMacApp.p
  5489. æT FIELD 
  5490. æC TRUE if the document file's resource fork must be kept open at all times. You 
  5491. specify this field's default value as an argument to the method 
  5492. TDocument.IDocument. 
  5493.  
  5494.  
  5495.  
  5496. æKY TDocument.fRsrcPerm
  5497. æD fRsrcPerm: INTEGER;
  5498. æFi UMacApp.p
  5499. æT FIELD 
  5500. æC The permission used to open the file's resource fork. Possible values of 
  5501. fRsrcPerm are fsRdPerm (read-only permission, the default), fsWrPerm (write-only 
  5502. permission), fsRdWrPerm (read and write permission), and fsRdWrShPerm (shared 
  5503. permission). 
  5504.  
  5505.  
  5506.  
  5507. æKY TDocument.fRsrcRefNum
  5508. æD fRsrcRefNum: INTEGER;
  5509. æFi UMacApp.p
  5510. æT FIELD 
  5511. æC The reference number for the document file's open resource fork. This field is 
  5512. valid only if the value of the fRsrcOpen field is TRUE. 
  5513.  
  5514.  
  5515.  
  5516. æKY TDocument.fSaveExists
  5517. æD fSaveExists: BOOLEAN;
  5518. æFi UMacApp.p
  5519. æT FIELD 
  5520. æC TRUE if a disk file representing this document exists; in other words, TRUE if 
  5521. this document has ever been saved on disk. 
  5522.  
  5523.  
  5524.  
  5525. æKY TDocument.fSaveInPlace
  5526. æD fSaveInPlace: SIPChoice;
  5527. æFi UMacApp.p
  5528. æT FIELD 
  5529. æC The value that determines what happens when there isn’t room on the disk to save 
  5530. the document in a new file. Possible values of fSaveInPlace are sipNever (the 
  5531. original file should never be overwritten; the default), sipAlways (the 
  5532. original file should always be overwritten when there is not enough space to save a 
  5533. copy), and sipAskUser (the user should be asked whether or not the original file 
  5534. should be overwritten when there is not enough space to save a copy). 
  5535.  
  5536.  
  5537.  
  5538. æKY TDocument.fSavePrintInfo
  5539. æD fSavePrintInfo: BOOLEAN;
  5540. æFi UMacApp.p
  5541. æT FIELD 
  5542. æC Set to TRUE if you want TDocument.DoWrite to write the fDocPrintHandler's print 
  5543. information record to the data fork of the document file when the document is 
  5544. saved. TRUE also indicates that TDocument.DoRead reads this record when the 
  5545. document is read. The default is FALSE. 
  5546.  
  5547.  
  5548.  
  5549. æKY TDocument.fSharePrintInfo
  5550. æD fSharePrintInfo: BOOLEAN;
  5551. æFi UMacApp.p
  5552. æT FIELD 
  5553. æC Set to TRUE if you want all print handlers associated with this document's views 
  5554. to share the same print information record. The default is TRUE. 
  5555.  
  5556.  
  5557.  
  5558. æKY TDocument.fTitle
  5559. æD fTitle: StringHandle;
  5560. æFi UMacApp.p
  5561. æT FIELD 
  5562. æC The name of the document file. 
  5563.  
  5564.  
  5565.  
  5566. æKY TDocument.fUsesDataFork
  5567. æD fUsesDataFork: BOOLEAN;
  5568. æFi UMacApp.p
  5569. æT FIELD 
  5570. æC TRUE if the document uses the file's data fork. You specify this field's default 
  5571. value as an argument to the method TDocument.IDocument. 
  5572.  
  5573.  
  5574.  
  5575. æKY TDocument.fUsesRsrcFork
  5576. æD fUsesRsrcFork: BOOLEAN;
  5577. æFi UMacApp.p
  5578. æT FIELD 
  5579. æC TRUE if the document uses the file's resource fork. You specify this field's 
  5580. default value as an argument to the method TDocument.IDocument. 
  5581.  
  5582.  
  5583.  
  5584. æKY TDocument.fViewList
  5585. æD fViewList: TList;
  5586. æFi UMacApp.p
  5587. æT FIELD 
  5588. æC The list of views that render this document’s data. 
  5589.  
  5590.  
  5591.  
  5592. æKY TDocument.fVolRefNum
  5593. æD fVolRefNum: INTEGER;
  5594. æFi UMacApp.p
  5595. æT FIELD 
  5596. æC The document file's volume reference number. 
  5597.  
  5598.  
  5599.  
  5600. æKY TDocument.fWindowList
  5601. æD fWindowList: TList;
  5602. æFi UMacApp.p
  5603. æT FIELD 
  5604. æC The list of windows associated with the document. 
  5605.  
  5606.  
  5607.  
  5608. æKY TDynamicArray.fAllocatedSize
  5609. æD fAllocatedSize: ArrayIndex;
  5610. æFi UList.p
  5611. æT FIELD 
  5612. æC The number of elements for which storage is allocated. 
  5613.  
  5614.  
  5615.  
  5616. æKY TDynamicArray.fAllocationIncrement
  5617. æD fAllocationIncrement: ArrayIndex;
  5618. æFi UList.p
  5619. æT FIELD 
  5620. æC The number of elements by which to increase or decrease the allocated size of 
  5621. the array when it needs to grow or shrink. Its default value is 
  5622. kAllocationIncrement (in MacApp 2.0, the value of this constant is 6); you can change the 
  5623. default allocation increment by overriding TDyanamicArray.IDynamicArray. 
  5624.  
  5625.  
  5626.  
  5627. æKY TDynamicArray.fClassSize
  5628. æD fClassSize: Size;
  5629. æFi UList.p
  5630. æT FIELD 
  5631. æC The size of the non-dynamic part of a TDynamicArray array; used by 
  5632. ComputeAddress to create a pointer to an element. 
  5633.  
  5634.  
  5635.  
  5636. æKY TDynamicArray.fElementSize
  5637. æD fElementSize: INTEGER;
  5638. æFi UList.p
  5639. æT FIELD 
  5640. æC The size in bytes of an element. This must be a power of 2 (1, 2, 4, 8, 16, and 
  5641. so on) when inserting or deleting more than one element at a time; odd-size 
  5642. elements are supported only for single-element insertions or deletions. 
  5643.  
  5644.  
  5645.  
  5646. æKY TDynamicArray.fElementSizeShift
  5647. æD fElementSizeShift: INTEGER;
  5648. æFi UList.p
  5649. æT FIELD 
  5650. æC The power of 2 for the element size. This is used to avoid using DIV and MUL. 
  5651.  
  5652.  
  5653.  
  5654. æKY TDynamicArray.fFreeRequested
  5655. æD fFreeRequested: BOOLEAN;
  5656. æFi UList.p
  5657. æT FIELD 
  5658. æC TRUE if the Free method was called but couldn’t be honored because enumeration 
  5659. was in process. MacApp checks this field when it completes the enumeration and 
  5660. calls the Free method if the value of fFreeRequested is TRUE. 
  5661.  
  5662.  
  5663.  
  5664. æKY TDynamicArray.fSize
  5665. æD fSize: ArrayIndex;
  5666. æFi UList.p
  5667. æT FIELD 
  5668. æC The number of elements actually in the array, from 0 to the limit of memory. 
  5669.  
  5670.  
  5671.  
  5672. æKY TEditText.fControlChars
  5673. æD fControlChars: ControlCharSet;
  5674. æFi UDialog.p
  5675. æT FIELD 
  5676. æC Control characters that are allowed and not passed to the next handler for 
  5677. editing. 
  5678.  
  5679.  
  5680.  
  5681. æKY TEditText.fMaxChars
  5682. æD fMaxChars: INTEGER;
  5683. æFi UDialog.p
  5684. æT FIELD 
  5685. æC The maximum number of characters to accept. 
  5686.  
  5687.  
  5688.  
  5689. æKY TEditText.fTEView
  5690. æD fTEView: TDialogTEView;
  5691. æFi UDialog.p
  5692. æT FIELD 
  5693. æC Used for the view in which editing actually takes place. 
  5694.  
  5695.  
  5696.  
  5697. æKY TEntry.fKey
  5698. æD fKey: StringHandle;
  5699. æFi UAssociation.p
  5700. æT FIELD 
  5701. æC A handle to the key associated with a particular string. 
  5702.  
  5703.  
  5704.  
  5705. æKY TEntry.fValue
  5706. æD fValue: StringHandle;
  5707. æFi UAssociation.p
  5708. æT FIELD 
  5709. æC A handle to the string associated with a particular key. 
  5710.  
  5711.  
  5712.  
  5713. æKY TEvtHandler.fIdleFreq
  5714. æD fIdleFreq: LONGINT;
  5715. æFi UMacApp.p
  5716. æT FIELD 
  5717. æC The minimum number of ticks that can elapse before MacApp calls the DoIdle 
  5718. method of the object. When the value of fIdleFreq is 0, MacApp calls the DoIdle 
  5719. method as often as possible. If the field is set to kMaxIdleTime (the default), 
  5720. DoIdle is never called. 
  5721.  
  5722.  
  5723.  
  5724. æKY TEvtHandler.fLastIdle
  5725. æD fLastIdle: LONGINT;
  5726. æFi UMacApp.p
  5727. æT FIELD 
  5728. æC The tick count at the time a DoIdle method was last called. 
  5729.  
  5730.  
  5731.  
  5732. æKY TEvtHandler.fNextHandler
  5733. æD fNextHandler: TEvtHandler;
  5734. æFi UMacApp.p
  5735. æT FIELD 
  5736. æC The next event handler in the event handler chain, or NIL if there isn't one. 
  5737.  
  5738.  
  5739.  
  5740. æKY TGridView.fAdornCols
  5741. æD fAdornCols: BOOLEAN;
  5742. æFi UGridView.p
  5743. æT FIELD 
  5744. æC Set to TRUE if you want to draw adornments for columns. 
  5745.  
  5746.  
  5747.  
  5748. æKY TGridView.fAdornRows
  5749. æD fAdornRows: BOOLEAN;
  5750. æFi UGridView.p
  5751. æT FIELD 
  5752. æC Set to TRUE if you want to draw adornments for rows. 
  5753.  
  5754.  
  5755.  
  5756. æKY TGridView.fColInset
  5757. æD fColInset: INTEGER;
  5758. æFi UGridView.p
  5759. æT FIELD 
  5760. æC The number of pixels between columns of cells. 
  5761.  
  5762.  
  5763.  
  5764. æKY TGridView.fColWidths
  5765. æD fColWidths: TRunArray;
  5766. æFi UGridView.p
  5767. æT FIELD 
  5768. æC A dynamic array containing column widths. 
  5769.  
  5770.  
  5771.  
  5772. æKY TGridView.fHLRegion
  5773. æD fHLRegion: RgnHandle;
  5774. æFi UGridView.p
  5775. æT FIELD 
  5776. æC The region of cells to be highlighted. This will be different from fSelections 
  5777. while selection with the mouse is taking place. 
  5778.  
  5779.  
  5780.  
  5781. æKY TGridView.fNumOfCols
  5782. æD fNumOfCols: INTEGER;
  5783. æFi UGridView.p
  5784. æT FIELD 
  5785. æC The number of columns in the grid. 
  5786.  
  5787.  
  5788.  
  5789. æKY TGridView.fNumOfRows
  5790. æD fNumOfRows: INTEGER;
  5791. æFi UGridView.p
  5792. æT FIELD 
  5793. æC The number of rows in the grid. 
  5794.  
  5795.  
  5796.  
  5797. æKY TGridView.fRowHeights
  5798. æD fRowHeights: TRunArray;
  5799. æFi UGridView.p
  5800. æT FIELD 
  5801. æC A dynamic array containing row heights. 
  5802.  
  5803.  
  5804.  
  5805. æKY TGridView.fRowInset
  5806. æD fRowInset: INTEGER;
  5807. æFi UGridView.p
  5808. æT FIELD 
  5809. æC The number of pixels between rows of cells. 
  5810.  
  5811.  
  5812.  
  5813. æKY TGridView.fSelections
  5814. æD fSelections: RgnHandle;
  5815. æFi UGridView.p
  5816. æT FIELD 
  5817. æC The region containing the currently selected cells. 
  5818.  
  5819.  
  5820.  
  5821. æKY TGridView.fSingleSelection
  5822. æD fSingleSelection: BOOLEAN;
  5823. æFi UGridView.p
  5824. æT FIELD 
  5825. æC Set to TRUE if you want to limit selections to only one cell at a time. 
  5826.  
  5827.  
  5828.  
  5829. æKY TGridView.fTempSelections
  5830. æD fTempSelections: RgnHandle;
  5831. æFi UGridView.p
  5832. æT FIELD 
  5833. æC Used internally by TGridView.SetSelectionRect. 
  5834.  
  5835.  
  5836.  
  5837. æKY TIcon.fDataHandle
  5838. æD fDataHandle: Handle;
  5839. æFi UDialog.p
  5840. æT FIELD 
  5841. æC The handle to the icon data. 
  5842.  
  5843.  
  5844.  
  5845. æKY TIcon.fPreferColor
  5846. æD fPreferColor: BOOLEAN;
  5847. æFi UDialog.p
  5848. æT FIELD 
  5849. æC TRUE if 'cicn' resources should be checked before 'ICON' resources. 
  5850.  
  5851.  
  5852.  
  5853. æKY TIcon.fRsrcID
  5854. æD fRsrcID: INTEGER;
  5855. æFi UDialog.p
  5856. æT FIELD 
  5857. æC The resource ID of the icon. 
  5858.  
  5859.  
  5860.  
  5861. æKY TInspector.fClassesByID
  5862. æD fClassesByID: TClassesByID;
  5863. æFm UInspector.inc1.p
  5864. æT FIELD 
  5865. æC The list of classes sorted by ID number. 
  5866.  
  5867.  
  5868.  
  5869. æKY TInspector.fClassesByName
  5870. æD fClassesByName: TClassesByName;
  5871. æFm UInspector.inc1.p
  5872. æT FIELD 
  5873. æC The list of classes sorted by name. 
  5874.  
  5875.  
  5876.  
  5877. æKY TInspector.fStaggerCount
  5878. æD fStaggerCount: INTEGER;
  5879. æFm UInspector.inc1.p
  5880. æT FIELD 
  5881. æC When staggering windows, fStaggerCount is used to compute the amount by which 
  5882. each window's location is offset from the previous one. 
  5883.  
  5884.  
  5885.  
  5886. æKY TInspector.fWindowCount
  5887. æD fWindowCount: INTEGER;
  5888. æFm UInspector.inc1.p
  5889. æT FIELD 
  5890. æC The number of open windows. 
  5891.  
  5892.  
  5893.  
  5894. æKY TInspectWindow.fClassListView
  5895. æD fClassListView: TClassListView;
  5896. æFm UInspector.inc1.p
  5897. æT FIELD 
  5898. æC The view that displays the list of classes in an Inspector window. 
  5899.  
  5900.  
  5901.  
  5902. æKY TInspectWindow.fObjectView
  5903. æD fObjectView: TObjectView;
  5904. æFm UInspector.inc1.p
  5905. æT FIELD 
  5906. æC The view that displays a list of fields in an Inspector window. 
  5907.  
  5908.  
  5909.  
  5910. æKY TInspectWindow.fObjListView
  5911. æD fObjListView: TObjListView;
  5912. æFm UInspector.inc1.p
  5913. æT FIELD 
  5914. æC The view that displays the list of objects in an Inspector window. 
  5915.  
  5916.  
  5917.  
  5918. æKY TList.fObjClassID
  5919. æD fObjClassID: ObjClassID;
  5920. æFi UList.p
  5921. æT FIELD 
  5922. æC The identifier of the type of objects in the list. 
  5923.  
  5924.  
  5925.  
  5926. æKY TListView.fCurrentSelection
  5927. æD fCurrentSelection: INTEGER;
  5928. æFm UInspector.inc1.p
  5929. æT FIELD 
  5930. æC The index of the current selection; if there is no selection, the value of this 
  5931. field is 0. 
  5932.  
  5933.  
  5934.  
  5935. æKY TListView.fItemHeight
  5936. æD fItemHeight: INTEGER;
  5937. æFm UInspector.inc1.p
  5938. æT FIELD 
  5939. æC The height of each item, including leading. 
  5940.  
  5941.  
  5942.  
  5943. æKY TListView.fLineAscent
  5944. æD fLineAscent: INTEGER;
  5945. æFm UInspector.inc1.p
  5946. æT FIELD 
  5947. æC The position of the text's baseline relative to the top of the line. 
  5948.  
  5949.  
  5950.  
  5951. æKY TListView.fNumberOfItems
  5952. æD fNumberOfItems: INTEGER;
  5953. æFm UInspector.inc1.p
  5954. æT FIELD 
  5955. æC The number of items currently in the list. 
  5956.  
  5957.  
  5958.  
  5959. æKY TListView.fTextStyle
  5960. æD fTextStyle: TextStyle;
  5961. æFm UInspector.inc1.p
  5962. æT FIELD 
  5963. æC The text style (color, size, and font). 
  5964.  
  5965.  
  5966.  
  5967. æKY TNumberText.fMaximum
  5968. æD fMaximum: LONGINT;
  5969. æFi UDialog.p
  5970. æT FIELD 
  5971. æC The maximum value allowed in the view. 
  5972.  
  5973.  
  5974.  
  5975. æKY TNumberText.fMinimum
  5976. æD fMinimum: LONGINT;
  5977. æFi UDialog.p
  5978. æT FIELD 
  5979. æC The minimum value allowed in the view. 
  5980.  
  5981.  
  5982.  
  5983. æKY TObjectView.fInspectWindow
  5984. æD fInspectWindow: TInspectWindow;
  5985. æFm UInspector.inc1.p
  5986. æT FIELD 
  5987. æC The Window Manager window in which the MacApp Inspector appears. 
  5988.  
  5989.  
  5990.  
  5991. æKY TObjectView.fLockState
  5992. æD fLockState: BOOLEAN;
  5993. æFm UInspector.inc1.p
  5994. æT FIELD 
  5995. æC Set to TRUE if you want to lock an object's handle. 
  5996.  
  5997.  
  5998.  
  5999. æKY TObjectView.fObject
  6000. æD fObject: TObject;
  6001. æFm UInspector.inc1.p
  6002. æT FIELD 
  6003. æC A reference to the instance of class TObject that is being displayed in the 
  6004. Inspector window. 
  6005.  
  6006.  
  6007.  
  6008. æKY TObjectView.fType
  6009. æD fType: INTEGER;
  6010. æFm UInspector.inc1.p
  6011. æT FIELD 
  6012. æC The type of information being inspected. Possible values are bObject (the item 
  6013. is an object), bGrafPtr (the item is a pointer to a grafPort), bWindowPointer 
  6014. (the item is a pointer to a window), bControlHandle (the item is a handle to a 
  6015. TControl object), bRgnHandle (the item is a handle to a region), and bTEHandle 
  6016. (the item is a handle to a TEditText object). 
  6017.  
  6018.  
  6019.  
  6020. æKY TObjListView.fInspectWindow
  6021. æD fInspectWindow: TInspectWindow;
  6022. æFm UInspector.inc1.p
  6023. æT FIELD 
  6024. æC The Window Manager window in which the MacApp Inspector appears. 
  6025.  
  6026.  
  6027.  
  6028. æKY TObjListView.fObjectList
  6029. æD fObjectList: TObjectList;
  6030. æFm UInspector.inc1.p
  6031. æT FIELD 
  6032. æC An instance of TObjectList used by the Inspector. 
  6033.  
  6034.  
  6035.  
  6036. æKY TPattern.fDataHandle
  6037. æD fDataHandle: Handle;
  6038. æFi UDialog.p
  6039. æT FIELD 
  6040. æC The handle to the pattern data. 
  6041.  
  6042.  
  6043.  
  6044. æKY TPattern.fPreferColor
  6045. æD fPreferColor: BOOLEAN;
  6046. æFi UDialog.p
  6047. æT FIELD 
  6048. æC TRUE if 'ppat' resources should be checked before 'PAT ' resources. 
  6049.  
  6050.  
  6051.  
  6052. æKY TPattern.fRsrcID
  6053. æD fRsrcID: INTEGER;
  6054. æFi UDialog.p
  6055. æT FIELD 
  6056. æC The resource ID of the pattern. 
  6057.  
  6058.  
  6059.  
  6060. æKY TPicture.fDataHandle
  6061. æD fDataHandle: PicHandle;
  6062. æFi UDialog.p
  6063. æT FIELD 
  6064. æC The handle to the picture data. 
  6065.  
  6066.  
  6067.  
  6068. æKY TPicture.fRsrcID
  6069. æD fRsrcID: INTEGER;
  6070. æFi UDialog.p
  6071. æT FIELD 
  6072. æC The picture's resource ID. 
  6073.  
  6074.  
  6075.  
  6076. æKY TPopup.fCurrentItem
  6077. æD fCurrentItem: INTEGER;
  6078. æFi UDialog.p
  6079. æT FIELD 
  6080. æC The currently selected menu item. 
  6081.  
  6082.  
  6083.  
  6084. æKY TPopup.fItemOffset
  6085. æD fItemOffset: INTEGER;
  6086. æFi UDialog.p
  6087. æT FIELD 
  6088. æC The offset from the left edge of the extent to the left edge of the pop-up 
  6089. selector. 
  6090.  
  6091.  
  6092.  
  6093. æKY TPopup.fMenuHandle
  6094. æD fMenuHandle: MenuHandle;
  6095. æFi UDialog.p
  6096. æT FIELD 
  6097. æC The handle to a pop-up menu. 
  6098.  
  6099.  
  6100.  
  6101. æKY TPopup.fMenuID
  6102. æD fMenuID: INTEGER;
  6103. æFi UDialog.p
  6104. æT FIELD 
  6105. æC The menu ID of the pop-up menu. 
  6106.  
  6107.  
  6108.  
  6109. æKY TPopup.fRsrcID
  6110. æD fRsrcID: INTEGER;
  6111. æFi UDialog.p
  6112. æT FIELD 
  6113. æC The resource ID of the 'MENU' resource. 
  6114.  
  6115.  
  6116.  
  6117. æKY TPrintCommand.fStdPrintHandler
  6118. æD fStdPrintHandler: TStdPrintHandler;
  6119. æFi UPrinting.p
  6120. æT FIELD 
  6121. æC The associated print handler. 
  6122.  
  6123.  
  6124.  
  6125. æKY TPrintHandler.fDeviceRes
  6126. æD fDeviceRes: Point;
  6127. æFi UMacApp.p
  6128. æT FIELD 
  6129. æC The resolution of the selected printer, expressed in dots per inch. 
  6130.  
  6131.  
  6132.  
  6133. æKY TPrintHandler.fDocument
  6134. æD fDocument: TDocument;
  6135. æFi UMacApp.p
  6136. æT FIELD 
  6137. æC The document printed by this handler. 
  6138.  
  6139.  
  6140.  
  6141. æKY TPrintHandler.fFocusedPage
  6142. æD fFocusedPage: INTEGER;
  6143. æFi UMacApp.p
  6144. æT FIELD 
  6145. æC The page number of the currently focused page during printing. 
  6146.  
  6147.  
  6148.  
  6149. æKY TPrintHandler.fView
  6150. æD fView: TView;
  6151. æFi UMacApp.p
  6152. æT FIELD 
  6153. æC The view whose image the print handler prints. 
  6154.  
  6155.  
  6156.  
  6157. æKY TPrintHandler.fViewPerPage
  6158. æD fViewPerPage: VPoint;
  6159. æFi UMacApp.p
  6160. æT FIELD 
  6161. æC The default page-strip size. 
  6162.  
  6163.  
  6164.  
  6165. æKY TPrintStyleChangeCommand.fNewHPrint
  6166. æD fNewHPrint: Handle;
  6167. æFi UPrinting.p
  6168. æT FIELD 
  6169. æC A handle to the new print record. 
  6170.  
  6171.  
  6172.  
  6173. æKY TPrintStyleChangeCommand.fOldHPrint
  6174. æD fOldHPrint: Handle;
  6175. æFi UPrinting.p
  6176. æT FIELD 
  6177. æC A handle to the old print record. 
  6178.  
  6179.  
  6180.  
  6181. æKY TPrintStyleChangeCommand.fStdPrintHandler
  6182. æD fStdPrintHandler:TStdPrintHandler;
  6183. æFi UPrinting.p
  6184. æT FIELD 
  6185. æC The print handler associated with this command. 
  6186.  
  6187.  
  6188.  
  6189. æKY TPtrBasedDoublyLinkedList.fHeadNodePtr
  6190. æD fHeadNodePtr: PtrBasedDoublyLinkedListNodePtr;
  6191. æFi UList.p
  6192. æT FIELD 
  6193. æC The head, or first, pointer of the linked list. 
  6194.  
  6195.  
  6196.  
  6197. æKY TPtrBasedDoublyLinkedList.fTailNodePtr
  6198. æD fTailNodePtr: PtrBasedDoublyLinkedListNodePtr;
  6199. æFi UList.p
  6200. æT FIELD 
  6201. æC The tail, or last, pointer of the linked list. 
  6202.  
  6203.  
  6204.  
  6205. æKY TRunArray.fChunks
  6206. æD fChunks: ChunkArrayHandle;
  6207. æFi UGridView.p
  6208. æT FIELD 
  6209. æC A handle to the "chunks" in a run array. A "chunk" is two or more consecutive 
  6210. items in the array that have the same value. 
  6211.  
  6212.  
  6213.  
  6214. æKY TRunArray.fLastChunk
  6215. æD fLastChunk: INTEGER;
  6216. æFi UGridView.p
  6217. æT FIELD 
  6218. æC The last "chunk" found. 
  6219.  
  6220.  
  6221.  
  6222. æKY TRunArray.fLastIndex
  6223. æD fLastIndex: INTEGER;
  6224. æFi UGridView.p
  6225. æT FIELD 
  6226. æC The last index used. 
  6227.  
  6228.  
  6229.  
  6230. æKY TRunArray.fLastItem
  6231. æD fLastItem: INTEGER;
  6232. æFi UGridView.p
  6233. æT FIELD 
  6234. æC The last item found. 
  6235.  
  6236.  
  6237.  
  6238. æKY TRunArray.fLastTotal
  6239. æD fLastTotal: LONGINT;
  6240. æFi UGridView.p
  6241. æT FIELD 
  6242. æC The last total calculated. 
  6243.  
  6244.  
  6245.  
  6246. æKY TRunArray.fNoOfChunks
  6247. æD fNoOfChunks: INTEGER;
  6248. æFi UGridView.p
  6249. æT FIELD 
  6250. æC The number of "chunks" in the run array. 
  6251.  
  6252.  
  6253.  
  6254. æKY TRunArray.fNoOfItems
  6255. æD fNoOfItems: INTEGER;
  6256. æFi UGridView.p
  6257. æT FIELD 
  6258. æC The number of items (values) in this run array. 
  6259.  
  6260.  
  6261.  
  6262. æKY TRunArray.fTotal
  6263. æD fTotal: LONGINT;
  6264. æFi UGridView.p
  6265. æT FIELD 
  6266. æC The sum of the values in the run array. 
  6267.  
  6268.  
  6269.  
  6270. æKY TScrollBar.fBitsToShift
  6271. æD fBitsToShift: INTEGER;
  6272. æFi UMacApp.p
  6273. æT FIELD 
  6274. æC The number of bits to shift in order to convert the scroll bar’s long values 
  6275. into Control Manager control values. 
  6276.  
  6277.  
  6278.  
  6279. æKY TScrollBar.fDirection
  6280. æD fDirection: VHSelect;
  6281. æFi UMacApp.p
  6282. æT FIELD 
  6283. æC The scroll bar’s direction (horizontal or vertical). 
  6284.  
  6285.  
  6286.  
  6287. æKY TScrollBar.fLongMax
  6288. æD fLongMax: VCoordinate;
  6289. æFi UMacApp.p
  6290. æT FIELD 
  6291. æC The scroll bar’s maximum value in VCoordinate units. 
  6292.  
  6293.  
  6294.  
  6295. æKY TScrollBar.fLongMin
  6296. æD fLongMin: VCoordinate;
  6297. æFi UMacApp.p
  6298. æT FIELD 
  6299. æC The scroll bar’s minimum value in VCoordinate units. The default value is zero. 
  6300.  
  6301.  
  6302.  
  6303. æKY TScrollBar.fLongVal
  6304. æD fLongVal: VCoordinate;
  6305. æFi UMacApp.p
  6306. æT FIELD 
  6307. æC The scroll bar’s current value in VCoordinate units. 
  6308.  
  6309.  
  6310.  
  6311. æKY TScroller.fConstrain
  6312. æD fConstrain: ARRAY [VHSelect] OF BOOLEAN;
  6313. æFi UMacApp.p
  6314. æT FIELD 
  6315. æC Indicates TRUE if the translation values should be constrained to even multiples 
  6316. of fScrollUnits in either the horizontal or vertical direction. 
  6317.  
  6318.  
  6319.  
  6320. æKY TScroller.fMaxTranslation
  6321. æD fMaxTranslation: VPoint;
  6322. æFi UMacApp.p
  6323. æT FIELD 
  6324. æC The maximum values that fTranslation can accept. The value of fMaxTranslation is 
  6325. computed by subtracting the scroller’s size from the value of fScrollLimit. 
  6326.  
  6327.  
  6328.  
  6329. æKY TScroller.fRespondsToFunctionKeys
  6330. æD fRespondsToFunctionKeys: BOOLEAN;
  6331. æFi UMacApp.p
  6332. æT FIELD 
  6333. æC TRUE if the scroller object responds to the Page Up, Page Down, Home, or End 
  6334. keys. 
  6335.  
  6336.  
  6337.  
  6338. æKY TScroller.fSBarOffsets
  6339. æD fSBarOffsets: VRect;
  6340. æFi UMacApp.p
  6341. æT FIELD 
  6342. æC Used to determine how to resize the associated scroll bars. The fSBarOffsets.top 
  6343. and fSBarOffsets.bottom fields indicate where the top and bottom of the 
  6344. vertical scroll bar are in relation to the top and bottom of the scroller. The 
  6345. fSBarOffsets.left and fSBarOffsets.right fields indicate where the left and right 
  6346. offsets of the horizontal scroll bar are in relation to the left and right offsets 
  6347. of the scroller. 
  6348.  
  6349.  
  6350.  
  6351. æKY TScroller.fScrollBars
  6352. æD fScrollBars: ARRAY [VHSelect] OF TSScrollBar;
  6353. æFi UMacApp.p
  6354. æT FIELD 
  6355. æC A reference to the horizontal and vertical scroll bars; set fScrollBars to NIL 
  6356. if they don't exist. 
  6357.  
  6358.  
  6359.  
  6360. æKY TScroller.fScrollLimit
  6361. æD fScrollLimit: VPoint;
  6362. æFi UMacApp.p
  6363. æT FIELD 
  6364. æC The point of the view past which scrolling cannot take place. 
  6365.  
  6366.  
  6367.  
  6368. æKY TScroller.fScrollUnit
  6369. æD fScrollUnit: Point;
  6370. æFi UMacApp.p
  6371. æT FIELD 
  6372. æC The amount of change, either horizontal or vertical, to be made in the 
  6373. translation values when the scroller receives a “scroll-by-arrow” message. 
  6374.  
  6375.  
  6376.  
  6377. æKY TScroller.fTranslation
  6378. æD fTranslation: VPoint;
  6379. æFi UMacApp.p
  6380. æT FIELD 
  6381. æC The number of pixels, either horizontally or vertically, by which all 
  6382. coordinates in the scroller are translated. 
  6383.  
  6384.  
  6385.  
  6386. æKY TSScrollBar.fScrollers
  6387. æD fScrollers: TList;
  6388. æFi UMacApp.p
  6389. æT FIELD 
  6390. æC A list of the scroller views associated with the scroll bar. 
  6391.  
  6392.  
  6393.  
  6394. æKY TStaticText.fAutoWrap
  6395. æD fAutoWrap: BOOLEAN;
  6396. æFi UDialog.p
  6397. æT FIELD 
  6398. æC TRUE if the view will automatically word wrap lines at the view boundary; FALSE 
  6399. if the view will wrap lines only at carriage returns. 
  6400.  
  6401.  
  6402.  
  6403. æKY TStaticText.fDataHandle
  6404. æD fDataHandle: StringHandle;
  6405. æFi UDialog.p
  6406. æT FIELD 
  6407. æC The handle to the string data. 
  6408.  
  6409.  
  6410.  
  6411. æKY TStaticText.fIndex
  6412. æD fIndex: INTEGER;
  6413. æFi UDialog.p
  6414. æT FIELD 
  6415. æC The index specifying which position in the string list the resource specified by 
  6416. fRsrcID occupies. 
  6417.  
  6418.  
  6419.  
  6420. æKY TStaticText.fJust
  6421. æD fJust: INTEGER;
  6422. æFi UDialog.p
  6423. æT FIELD 
  6424. æC The string's justification. 
  6425.  
  6426.  
  6427.  
  6428. æKY TStaticText.fRsrcID
  6429. æD fRsrcID: INTEGER;
  6430. æFi UDialog.p
  6431. æT FIELD 
  6432. æC The resource ID of a string list. 
  6433.  
  6434.  
  6435.  
  6436. æKY TStdPrintHandler.fFinderJobDialog
  6437. æD fFinderJobDialog: BOOLEAN;
  6438. æFi UPrinting.p
  6439. æT FIELD 
  6440. æC TRUE if you want to display the job dialog box when printing from the Finder. 
  6441.  
  6442.  
  6443.  
  6444. æKY TStdPrintHandler.fFinderSetup
  6445. æD fFinderSetup: BOOLEAN;
  6446. æFi UPrinting.p
  6447. æT FIELD 
  6448. æC TRUE if you want to display the Page Setup dialog box when printing from the 
  6449. Finder. 
  6450.  
  6451.  
  6452.  
  6453. æKY TStdPrintHandler.fFixedSizePages
  6454. æD fFixedSizePages: ARRAY [VHSelect] OF BOOLEAN;
  6455. æFi UPrinting.p
  6456. æT FIELD 
  6457. æC TRUE if the page strips are of fixed horizontal and vertical size. 
  6458.  
  6459.  
  6460.  
  6461. æKY TStdPrintHandler.fHPrint
  6462. æD fHPrint: Handle;
  6463. æFi UPrinting.p
  6464. æT FIELD 
  6465. æC A handle to the Printing Manager print record. 
  6466.  
  6467.  
  6468.  
  6469. æKY TStdPrintHandler.fLastBreak
  6470. æD fLastBreak: VPoint;
  6471. æFi UPrinting.p
  6472. æT FIELD 
  6473. æC The coordinates of the last page break computed. 
  6474.  
  6475.  
  6476.  
  6477. æKY TStdPrintHandler.fLastCheckedPrinter
  6478. æD fLastCheckedPrinter: LONGINT;
  6479. æFi UPrinting.p
  6480. æT FIELD 
  6481. æC The tick count from the point at which it was last known that the print handler 
  6482. and the selected printer were synchronized. 
  6483.  
  6484.  
  6485.  
  6486. æKY TStdPrintHandler.fLastPrinterName
  6487. æD fLastPrinterName: StringHandle;
  6488. æFi UPrinting.p
  6489. æT FIELD 
  6490. æC The name of the printer driver at the time indicated by fLastCheckedPrinter. 
  6491.  
  6492.  
  6493.  
  6494. æKY TStdPrintHandler.fLastStrip
  6495. æD fLastStrip: Point;
  6496. æFi UPrinting.p
  6497. æT FIELD 
  6498. æC The last page strip for which a page break was computed. 
  6499.  
  6500.  
  6501.  
  6502. æKY TStdPrintHandler.fMarginRes
  6503. æD fMarginRes: Point;
  6504. æFi UPrinting.p
  6505. æT FIELD 
  6506. æC Originally set to 72 pixels or 1-inch margins on standard screens, this field is 
  6507. modified by the CheckPrinter method when that method determines the actual 
  6508. device resolution. 
  6509.  
  6510.  
  6511.  
  6512. æKY TStdPrintHandler.fMinimalMargins
  6513. æD fMinimalMargins: BOOLEAN;
  6514. æFi UPrinting.p
  6515. æT FIELD 
  6516. æC Set to TRUE when you want to maintain page margins in a way that allows use of 
  6517. the entire printable area of the page. 
  6518.  
  6519.  
  6520.  
  6521. æKY TStdPrintHandler.fPageAreas
  6522. æD fPageAreas: PageAreas;
  6523. æFi UPrinting.p
  6524. æT FIELD 
  6525. æC A record defining the dimensions of the printed page. It contains the following 
  6526. fields: 
  6527. • theInk: A rectangle defining the printable part of the page. Its upper-left corner 
  6528. is always (0,0). Its lower-right corner is the maximum page height and width attainable 
  6529. on the given printer. 
  6530. • thePaper: A rectangle defining the entire physical page, in the coordinate system 
  6531. of theInk. Since the physical page is typically larger than the printable part of the 
  6532. page, the upper-left corner of thePaper is negative, and the lower-right coordinates 
  6533. are greater than those of theInk. 
  6534. • theInterior: A rectangle, in the coordinate system of theInk, defining the part of 
  6535. the page in which the print handler draws its view. The value of theInterior is never 
  6536. larger than the value of theInk. It may be smaller than theInk if you want to inset 
  6537. printing from the edges of the paper. The value of theInterior is computed by subtracting 
  6538. the value of theMargins from the value of thePaper. 
  6539. • theMargins: A rectangle defining the top, left, bottom, and right paper margins. 
  6540. The margins define the distance from the edge of the physical page to the interior of 
  6541. the page. The margins can never be smaller than the difference between theInk 
  6542. and thePaper. 
  6543.  
  6544.  
  6545.  
  6546. æKY TStdPrintHandler.fPageDirection
  6547. æD fPageDirection: VHSelect;
  6548. æFi UPrinting.p
  6549. æT FIELD 
  6550. æC Indicates whether page numbering is horizontal or vertical. If the value of this 
  6551. field is v, page 2 is below page 1, and so on; if the value is h, page 2 is to 
  6552. the right of page 1, and so on. Ignore this field if the view is only one page 
  6553. wide or only one page high 
  6554.  
  6555.  
  6556.  
  6557. æKY TStdPrintHandler.fPageStrips
  6558. æD fPageStrips: Point;
  6559. æFi UPrinting.p
  6560. æT FIELD 
  6561. æC The number of horizontal and vertical page strips. 
  6562.  
  6563.  
  6564.  
  6565. æKY TStdPrintHandler.fPPrPort
  6566. æD fPPrPort:TPPrPort;
  6567. æFi UPrinting.p
  6568. æT FIELD 
  6569. æC The printer port in use during printing. 
  6570.  
  6571.  
  6572.  
  6573. æKY TStdPrintHandler.fPrintDialog
  6574. æD fPrintDialog:DialogPtr;
  6575. æFi UPrinting.p
  6576. æT FIELD 
  6577. æC A reference to various printing dialog boxes. 
  6578.  
  6579.  
  6580.  
  6581. æKY TStdPrintHandler.fPrinterDev
  6582. æD fPrinterDev: INTEGER;
  6583. æFi UPrinting.p
  6584. æT FIELD 
  6585. æC The device number of the printer, returned by the Printing Manager. 
  6586.  
  6587.  
  6588.  
  6589. æKY TStdPrintHandler.fPrintExtent
  6590. æD fPrintExtent: VRect;
  6591. æFi UPrinting.p
  6592. æT FIELD 
  6593. æC The part of the view that is to be printed by the print handler. 
  6594.  
  6595.  
  6596.  
  6597. æKY TStdPrintHandler.fShowBreaks
  6598. æD fShowBreaks: BOOLEAN;
  6599. æFi UPrinting.p
  6600. æT FIELD 
  6601. æC Set to TRUE if you want to draw page breaks when drawing the view. 
  6602.  
  6603.  
  6604.  
  6605. æKY TStdPrintHandler.fSquareDots
  6606. æD fSquareDots: BOOLEAN;
  6607. æFi UPrinting.p
  6608. æT FIELD 
  6609. æC Applies to the ImageWriter® only. Set to TRUE if you want to use 72-by-72 dot 
  6610. resolution; set to FALSE if you want to use 80-by-72 dot resolution (“tall 
  6611. adjusted”). 
  6612.  
  6613.  
  6614.  
  6615. æKY TStdPrintHandler.fStartPage
  6616. æD fStartPage: INTEGER;
  6617. æFi UPrinting.p
  6618. æT FIELD 
  6619. æC The page number of the first page. 
  6620.  
  6621.  
  6622.  
  6623. æKY TStdPrintHandler.fViewedRect
  6624. æD fViewedRect: VRect;
  6625. æFi UPrinting.p
  6626. æT FIELD 
  6627. æC The part of the view that is visible in the current page. 
  6628.  
  6629.  
  6630.  
  6631. æKY TTECommand.fHTE
  6632. æD fHTE: TEHandle;
  6633. æFi UTEView.p
  6634. æT FIELD 
  6635. æC A handle to the actual TextEdit record on which commands operate. It is the same 
  6636. record referenced by fTEView's fHTE; the handle is duplicated for code 
  6637. efficiency. 
  6638.  
  6639.  
  6640.  
  6641. æKY TTECommand.fNewEnd
  6642. æD fNewEnd: INTEGER;
  6643. æFi UTEView.p
  6644. æT FIELD 
  6645. æC The location in the text of the end of any new text added by the command. 
  6646.  
  6647.  
  6648.  
  6649. æKY TTECommand.fNewStart
  6650. æD fNewStart: INTEGER;
  6651. æFi UTEView.p
  6652. æT FIELD 
  6653. æC The location in the text of the beginning of any new text added by the command. 
  6654.  
  6655.  
  6656.  
  6657. æKY TTECommand.fNewStyles
  6658. æD fNewStyles: StScrpHandle;
  6659. æFi UTEView.p
  6660. æT FIELD 
  6661. æC A handle to any new styles in the scrap. 
  6662.  
  6663.  
  6664.  
  6665. æKY TTECommand.fNewText
  6666. æD fNewText: Handle;
  6667. æFi UTEView.p
  6668. æT FIELD 
  6669. æC A handle to characters that the command adds. 
  6670.  
  6671.  
  6672.  
  6673. æKY TTECommand.fOldEnd
  6674. æD fOldEnd: INTEGER;
  6675. æFi UTEView.p
  6676. æT FIELD 
  6677. æC The selection's ending position just before a command is invoked. 
  6678.  
  6679.  
  6680.  
  6681. æKY TTECommand.fOldStart
  6682. æD fOldStart: INTEGER;
  6683. æFi UTEView.p
  6684. æT FIELD 
  6685. æC The selection's beginning position just before a command is invoked. 
  6686.  
  6687.  
  6688.  
  6689. æKY TTECommand.fOldStyles
  6690. æD fOldStyles: StScrpHandle;
  6691. æFi UTEView.p
  6692. æT FIELD 
  6693. æC A handle to the old styles in the scrap. 
  6694.  
  6695.  
  6696.  
  6697. æKY TTECommand.fOldText
  6698. æD fOldText: Handle;
  6699. æFi UTEView.p
  6700. æT FIELD 
  6701. æC A handle that provides temporary storage for the characters in the old 
  6702. selection. If the old selection is an insertion point, then fOldStart is the same as 
  6703. fOldEnd and the value of fOldText is NIL. 
  6704.  
  6705.  
  6706.  
  6707. æKY TTECommand.fPadding
  6708. æD fPadding: Handle;
  6709. æFi UTEView.p
  6710. æT FIELD 
  6711. æC A handle to fill the space in memory between new and old text. The use of 
  6712. fPadding ensures that there will be sufficient memory to carry out Undo and Redo 
  6713. commands. 
  6714.  
  6715.  
  6716.  
  6717. æKY TTECommand.fStylePad
  6718. æD fStylePad: LONGINT;
  6719. æFi UTEView.p
  6720. æT FIELD 
  6721. æC The difference in size between the new style record (after command execution) 
  6722. and the old style record (before command execution). 
  6723.  
  6724.  
  6725.  
  6726. æKY TTECommand.fTEView
  6727. æD fTEView: TTEView;
  6728. æFi UTEView.p
  6729. æT FIELD 
  6730. æC The TTEView object on which commands operate. 
  6731.  
  6732.  
  6733.  
  6734. æKY TTECommand.fTextPad
  6735. æD fTextPad: INTEGER;
  6736. æFi UTEView.p
  6737. æT FIELD 
  6738. æC The value of fTextPad is the difference in size between new (after command 
  6739. execution) text and old (before command execution) text. 
  6740.  
  6741.  
  6742.  
  6743. æKY TTECutCopyCommand.fClipCreated
  6744. æD fClipCreated: BOOLEAN;
  6745. æFi UTEView.p
  6746. æT FIELD 
  6747. æC TRUE indicates that the Clipboard view was created successfully. 
  6748.  
  6749.  
  6750.  
  6751. æKY TTEStyleCommand.fMode
  6752. æD fMode: INTEGER;
  6753. æFi UTEView.p
  6754. æT FIELD 
  6755. æC Indicates which style attributes are set; used only in nonstyled TextEdit 
  6756. records. 
  6757.  
  6758.  
  6759.  
  6760. æKY TTEStyleCommand.fNewTextStyle
  6761. æD fNewTextStyle: TextStyle;
  6762. æFi UTEView.p
  6763. æT FIELD 
  6764. æC The new style to be imposed on a nonstyled text record. 
  6765.  
  6766.  
  6767.  
  6768. æKY TTEStyleCommand.fOldTextStyle
  6769. æD fOldTextStyle: TextStyle;
  6770. æFi UTEView.p
  6771. æT FIELD 
  6772. æC The original text style in a nonstyled (original TextEdit) text record. 
  6773.  
  6774.  
  6775.  
  6776. æKY TTETypingCommand.fCompleted
  6777. æD fCompleted: BOOLEAN;
  6778. æFi UTEView.p
  6779. æT FIELD 
  6780. æC TRUE if the command has already been completed. If the value of fCompleted is 
  6781. FALSE, incoming keystrokes are considered extensions to the command. 
  6782.  
  6783.  
  6784.  
  6785. æKY TTETypingCommand.fFirstChar
  6786. æD fFirstChar: Char;
  6787. æFi UTEView.p
  6788. æT FIELD 
  6789. æC Stores the first character typed. 
  6790.  
  6791.  
  6792.  
  6793. æKY TTEView.fAcceptsChanges
  6794. æD fAcceptsChanges: BOOLEAN;
  6795. æFi UTEView.p
  6796. æT FIELD 
  6797. æC Set to FALSE for text that cannot accept any change; for example, Clipboard 
  6798. text. 
  6799.  
  6800.  
  6801.  
  6802. æKY TTEView.fAutoWrap
  6803. æD fAutoWrap: BOOLEAN;
  6804. æFi UTEView.p
  6805. æT FIELD 
  6806. æC Set to FALSE if you want to wrap lines at carriage returns only. 
  6807.  
  6808.  
  6809.  
  6810. æKY TTEView.fControlChars
  6811. æD fControlChars: ControlCharSet;
  6812. æFi UTEView.p
  6813. æT FIELD 
  6814. æC The control characters that are to be accepted in text. 
  6815.  
  6816.  
  6817.  
  6818. æKY TTEView.fFreeText
  6819. æD fFreeText: BOOLEAN;
  6820. æFi UTEView.p
  6821. æT FIELD 
  6822. æC TRUE if the memory used by fText should be freed when Free is called. 
  6823.  
  6824.  
  6825.  
  6826. æKY TTEView.fHTE
  6827. æD fHTE: TEHandle;
  6828. æFi UTEView.p
  6829. æT FIELD 
  6830. æC fHTE is a handle to the actual TextEdit object on which commands operate. This 
  6831. object is also referenced by the fHTE field of the TTECommand object associated 
  6832. with the view; the handle is duplicated for code efficiency. 
  6833.  
  6834.  
  6835.  
  6836. æKY TTEView.fInset
  6837. æD fInset: Rect;
  6838. æFi UTEView.p
  6839. æT FIELD 
  6840. æC A rectangle defining the number of pixels by which to inset the TERecord's view 
  6841. rectangle from the view's extent. Thus, fInset defines margins around the edges 
  6842. of the view. Views with text that wraps automatically must have a bottom 
  6843. margin of 0. 
  6844.  
  6845.  
  6846.  
  6847. æKY TTEView.fJustification
  6848. æD fJustification: INTEGER;
  6849. æFi UTEView.p
  6850. æT FIELD 
  6851. æC The justification of the text record. 
  6852.  
  6853.  
  6854.  
  6855. æKY TTEView.fKeyCmdNumber
  6856. æD fKeyCmdNumber: CmdNumber;
  6857. æFi UTEView.p
  6858. æT FIELD 
  6859. æC The string number for the Undo Typing command. 
  6860.  
  6861.  
  6862.  
  6863. æKY TTEView.fLastHeight
  6864. æD fLastHeight: LONGINT;
  6865. æFi UTEView.p
  6866. æT FIELD 
  6867. æC The last cached value for the height of the record. 
  6868.  
  6869.  
  6870.  
  6871. æKY TTEView.fLastLine
  6872. æD fLastLine: INTEGER;
  6873. æFi UTEView.p
  6874. æT FIELD 
  6875. æC The line number of the last page break cached. 
  6876.  
  6877.  
  6878.  
  6879. æKY TTEView.fLastPageBreak
  6880. æD fLastPageBreak: INTEGER;
  6881. æFi UTEView.p
  6882. æT FIELD 
  6883. æC The last page break cached. MacApp uses fLastPageBreak when computing page 
  6884. breaks for printing. 
  6885.  
  6886.  
  6887.  
  6888. æKY TTEView.fLastWidth
  6889. æD fLastWidth:LONGINT;
  6890. æFi UTEView.p
  6891. æT FIELD 
  6892. æC Represents the last checked width, in pixels. In MacApp 2.0, the field is not 
  6893. used if the TextEdit record is styled. 
  6894.  
  6895.  
  6896.  
  6897. æKY TTEView.fMaxChars
  6898. æD fMaxChars: INTEGER;
  6899. æFi UTEView.p
  6900. æT FIELD 
  6901. æC Maximum number of characters that fText will accept. The default value is 
  6902. MAXINT; you can set fMaxChars to a different value. 
  6903.  
  6904.  
  6905.  
  6906. æKY TTEView.fMinAhead
  6907. æD fMinAhead: INTEGER;
  6908. æFi UTEView.p
  6909. æT FIELD 
  6910. æC This field specifies the minimum amount of automatic scrolling forward that 
  6911. should take place when the selection scrolls into view. 
  6912.  
  6913.  
  6914.  
  6915. æKY TTEView.fSavedTEHandle
  6916. æD fSavedTEHandle: Handle;
  6917. æFi UTEView.p
  6918. æT FIELD 
  6919. æC The handle returned by the Toolbox function TENew. 
  6920.  
  6921.  
  6922.  
  6923. æKY TTEView.fSpecsChanged
  6924. æD fSpecsChanged: BOOLEAN;
  6925. æFi UTEView.p
  6926. æT FIELD 
  6927. æC Set to TRUE if something happens that could affect the font, style, size, or 
  6928. color of a menu item needing updating. You should reset fSpecsChanged to FALSE 
  6929. when the application has taken appropriate action. 
  6930.  
  6931.  
  6932.  
  6933. æKY TTEView.fStyleType
  6934. æD fStyleType: BOOLEAN;
  6935. æFi UTEView.p
  6936. æT FIELD 
  6937. æC Set to kWithStyle if the text record is styled; set to kWithOutStyle if the 
  6938. record is not styled. 
  6939.  
  6940.  
  6941.  
  6942. æKY TTEView.fText
  6943. æD fText: Handle;
  6944. æFi UTEView.p
  6945. æT FIELD 
  6946. æC A handle to the text in the record associated with the handle TEHandle. 
  6947.  
  6948.  
  6949.  
  6950. æKY TTEView.fTextStyle
  6951. æD fTextStyle: TextStyle;
  6952. æFi UTEView.p
  6953. æT FIELD 
  6954. æC The text style (color, size, and so on). 
  6955.  
  6956.  
  6957.  
  6958. æKY TTEView.fTypingCommand
  6959. æD fTypingCommand: TTETypingCommand;
  6960. æFi UTEView.p
  6961. æT FIELD 
  6962. æC The current TTETypingCommand object relating to this object. MacApp sets the 
  6963. value of this field to NIL if there is none. 
  6964.  
  6965.  
  6966.  
  6967. æKY TTextGridView.fLineAscent
  6968. æD fLineAscent: INTEGER;
  6969. æFi UGridView.p
  6970. æT FIELD 
  6971. æC The position of the text's baseline relative to the top of the line. 
  6972.  
  6973.  
  6974.  
  6975. æKY TTextGridView.fLineHeight
  6976. æD fLineHeight: INTEGER;
  6977. æFi UGridView.p
  6978. æT FIELD 
  6979. æC The height of each item, including leading. 
  6980.  
  6981.  
  6982.  
  6983. æKY TTextGridView.fTextStyle
  6984. æD fTextStyle: TextStyle;
  6985. æFi UGridView.p
  6986. æT FIELD 
  6987. æC The font, font size, style, and color of the text. 
  6988.  
  6989.  
  6990.  
  6991. æKY TTranscriptView.fCols
  6992. æD fCols: INTEGER;
  6993. æFi UTranscriptView.p
  6994. æT FIELD 
  6995. æC The maximum number of characters per line. 
  6996.  
  6997.  
  6998.  
  6999. æKY TTranscriptView.fFirstLineIndex
  7000. æD fFirstLineIndex: INTEGER;
  7001. æFi UTranscriptView.p
  7002. æT FIELD 
  7003. æC Indexes where the top line starts in the array of line lengths and starts. 
  7004.  
  7005.  
  7006.  
  7007. æKY TTranscriptView.fFontHeight
  7008. æD fFontHeight: INTEGER;
  7009. æFi UTranscriptView.p
  7010. æT FIELD 
  7011. æC The font height, in points. 
  7012.  
  7013.  
  7014.  
  7015. æKY TTranscriptView.fFontInfo
  7016. æD fFontInfo: FontInfo;
  7017. æFi UTranscriptView.p
  7018. æT FIELD 
  7019. æC Information about the current grafPort's character font, described in pixels: 
  7020. the ascent, descent, maximum character width (the greatest distance the pen will 
  7021. move when a character is drawn), and leading (the vertical distance between the 
  7022. descent line and the ascent line below it). These values take into 
  7023. consideration the font size and any styles that are applied to the text. 
  7024.  
  7025.  
  7026.  
  7027. æKY TTranscriptView.fForcePtr
  7028. æD fForcePtr:INTEGER;
  7029. æFi UTranscriptView.p
  7030. æT FIELD 
  7031. æC This field is the top of the stack in fForceStack. 
  7032.  
  7033.  
  7034.  
  7035. æKY TTranscriptView.fForceStack
  7036. æD fForceStack: ARRAY [1..kForceDepth] OF ForceState;
  7037. æFi UTranscriptView.p
  7038. æT FIELD 
  7039. æC This is a stack of forced output states. ForceOutput and EndForce methods push 
  7040. and pop this stack, respectively. 
  7041.  
  7042.  
  7043.  
  7044. æKY TTranscriptView.fGotRefnum
  7045. æD fGotRefnum: BOOLEAN;
  7046. æFi UTranscriptView.p
  7047. æT FIELD 
  7048. æC TRUE if a reference number for output redirection is in fRefnum. 
  7049.  
  7050.  
  7051.  
  7052. æKY TTranscriptView.fHelpProc
  7053. æD fHelpProc: ProcPtr;
  7054. æFi UTranscriptView.p
  7055. æT FIELD 
  7056. æC Call this to display a help window in response to the Help key. 
  7057.  
  7058.  
  7059.  
  7060. æKY TTranscriptView.fInsertionPointOn
  7061. æD fInsertionPointOn: BOOLEAN;
  7062. æFi UTranscriptView.p
  7063. æT FIELD 
  7064. æC TRUE if the insertion poin was turned on when exiting the idle chain. 
  7065.  
  7066.  
  7067.  
  7068. æKY TTranscriptView.fInsertionPt
  7069. æD fInsertionPt: Point;
  7070. æFi UTranscriptView.p
  7071. æT FIELD 
  7072. æC The location of the insertion point, described as the intersection of a row and 
  7073. column. 
  7074.  
  7075.  
  7076.  
  7077. æKY TTranscriptView.fLastCh
  7078. æD fLastCh: CHAR;
  7079. æFi UTranscriptView.p
  7080. æT FIELD 
  7081. æC The last character typed. 
  7082.  
  7083.  
  7084.  
  7085. æKY TTranscriptView.fLastInsertionPointTime
  7086. æD fLastInsertionPointTime: Longint;
  7087. æFi UTranscriptView.p
  7088. æT FIELD 
  7089. æC The last time, in ticks, that the insertion point was displayed. 
  7090.  
  7091.  
  7092.  
  7093. æKY TTranscriptView.fLineLengths
  7094. æD fLineLengths: HLineLens;
  7095. æFi UTranscriptView.p
  7096. æT FIELD 
  7097. æC The line length of each line; that is, the number of characters in the line. 
  7098.  
  7099.  
  7100.  
  7101. æKY TTranscriptView.fLineStarts
  7102. æD fLineStarts: HLineLens;
  7103. æFi UTranscriptView.p
  7104. æT FIELD 
  7105. æC The amount by which the first character in the line is offset from the fText 
  7106. handle. 
  7107.  
  7108.  
  7109.  
  7110. æKY TTranscriptView.fRefnum
  7111. æD fRefnum: INTEGER;
  7112. æFi UTranscriptView.p
  7113. æT FIELD 
  7114. æC The reference number indicating where to send the output of 
  7115. TTranscriptView.Redirect. 
  7116.  
  7117.  
  7118.  
  7119. æKY TTranscriptView.fRows
  7120. æD fRows: INTEGER;
  7121. æFi UTranscriptView.p
  7122. æT FIELD 
  7123. æC The number of lines saved in the transcript. 
  7124.  
  7125.  
  7126.  
  7127. æKY TTranscriptView.fText
  7128. æD fText: HText;
  7129. æFi UTranscriptView.p
  7130. æT FIELD 
  7131. æC The handle to the ring buffer; blank characters fill out each line to 80 
  7132. characters. 
  7133.  
  7134.  
  7135.  
  7136. æKY TTranscriptView.fTextStyle
  7137. æD fTextStyle: TextStyle;
  7138. æFi UTranscriptView.p
  7139. æT FIELD 
  7140. æC The text style (color, size, and so on). 
  7141.  
  7142.  
  7143.  
  7144. æKY TTranscriptView.fTotal
  7145. æD fTotal: INTEGER;
  7146. æFi UTranscriptView.p
  7147. æT FIELD 
  7148. æC The number of characters in all lines in the Debug Transcript window. 
  7149.  
  7150.  
  7151.  
  7152. æKY TTranscriptView.fUpdateRgn
  7153. æD fUpdateRgn: RgnHandle;
  7154. æFi UTranscriptView.p
  7155. æT FIELD 
  7156. æC A handle used in a scrolling shortcut. 
  7157.  
  7158.  
  7159.  
  7160. æKY TTranscriptView.fVRefNum
  7161. æD fVRefNum: INTEGER;
  7162. æFi UTranscriptView.p
  7163. æT FIELD 
  7164. æC The volume reference number used by TTranscriptView.Redirect in writing the 
  7165. contents of the Debug Transcript window to a file. 
  7166.  
  7167.  
  7168.  
  7169. æKY TTranscriptView.fWrToFile
  7170. æD fWrToFile: BOOLEAN;
  7171. æFi UTranscriptView.p
  7172. æT FIELD 
  7173. æC Set to TRUE to enable recording of the transcript data to a file. 
  7174.  
  7175.  
  7176.  
  7177. æKY TTranscriptView.fWrToWindow
  7178. æD fWrToWindow: BOOLEAN;
  7179. æFi UTranscriptView.p
  7180. æT FIELD 
  7181. æC Set to TRUE to enable display of the transcript data in a view. 
  7182.  
  7183.  
  7184.  
  7185. æKY TView.fDocument
  7186. æD fDocument: TDocument;
  7187. æFi UMacApp.p
  7188. æT FIELD 
  7189. æC The document whose data the view represents. If the view is not associated with 
  7190. a document, set the value of this field to NIL. The value of fDocument usually 
  7191. is NIL if the view does not directly represent a document’s data. Thus, views 
  7192. such as scrollers and controls typically have a value of NIL in the fDocument 
  7193. field. 
  7194.  
  7195.  
  7196.  
  7197. æKY TView.fFocusRec
  7198. æD fFocusRec: FocusRec;
  7199. æFi UMacApp.p
  7200. æT FIELD 
  7201. æC The cached focus information for the view. 
  7202.  
  7203.  
  7204.  
  7205. æKY TView.fHLDesired
  7206. æD fHLDesired: HLState;
  7207. æFi UMacApp.p
  7208. æT FIELD 
  7209. æC The type of highlighting used to draw the view’s selection. MacApp sets this 
  7210. field to hlOn when the view is activated and to hlDim when the view is 
  7211. deactivated. 
  7212.  
  7213.  
  7214.  
  7215. æKY TView.fIdentifier
  7216. æD fIdentifier: IDType;
  7217. æFi UMacApp.p
  7218. æT FIELD 
  7219. æC A four-character code that identifies this view. Given the view’s identifier, 
  7220. you can obtain a reference to the view by using the TView.FindSubView method. 
  7221.  
  7222.  
  7223.  
  7224. æKY TView.fLocation
  7225. æD fLocation: VPoint;
  7226. æFi UMacApp.p
  7227. æT FIELD 
  7228. æC The location of the view in its superview’s coordinate space. 
  7229.  
  7230.  
  7231.  
  7232. æKY TView.fPrintHandler
  7233. æD fPrintHandler: TPrintHandler;
  7234. æFi UMacApp.p
  7235. æT FIELD 
  7236. æC A reference to the print handler associated with the view. 
  7237.  
  7238.  
  7239.  
  7240. æKY TView.fShown
  7241. æD fShown: BOOLEAN;
  7242. æFi UMacApp.p
  7243. æT FIELD 
  7244. æC TRUE indicates that the view is shown; FALSE indicates that the view is hidden. 
  7245. You normally do not access this field directly; instead, use the methods 
  7246. TView.Show and TView.IsShown. 
  7247.  
  7248.  
  7249.  
  7250. æKY TView.fSize
  7251. æD fSize: VPoint;
  7252. æFi UMacApp.p
  7253. æT FIELD 
  7254. æC The horizontal and vertical size of the view. 
  7255.  
  7256.  
  7257.  
  7258. æKY TView.fSizeDeterminer
  7259. æD fSizeDeterminer: ARRAY [VHSelect] OF SizeDeterminer;
  7260. æFi UMacApp.p
  7261. æT FIELD 
  7262. æC Indicates the techniques used to compute the view's width and height. The 
  7263. technique used for computing the width may be different from the technique used for 
  7264. the height. Possible values are sizeFixed (the view’s width or height is 
  7265. constant), sizeVariable (the view determines its width or height by overriding 
  7266. TView.CalcMinSize), sizePage (the view’s width or height is exactly one page whose 
  7267. size is determined by the view’s print handler), sizeFillPages (the view's 
  7268. CalcMinSize method overrides INHERITED CalcMinSize to determine its minimum size, 
  7269. which is then rounded up to fill the last page in the specified direction), 
  7270. sizeSuperView (the view’s width or height is the same as its superview—when its 
  7271. superview changes size, the view’s size changes as well), or sizeRelSuperView (the 
  7272. view's width or height changes relative to its superview’s size—when the 
  7273. superview’s size changes, the view’s size changes by the same amount). 
  7274.  
  7275.  
  7276.  
  7277. æKY TView.fSubViews
  7278. æD fSubViews: TList;
  7279. æFi UMacApp.p
  7280. æT FIELD 
  7281. æC A TList object implementing a list of views contained in this view. 
  7282.  
  7283.  
  7284.  
  7285. æKY TView.fSuperView
  7286. æD fSuperView: TView;
  7287. æFi UMacApp.p
  7288. æT FIELD 
  7289. æC The view in which this view appears. The fSuperView field of a window always has 
  7290. the value NIL, since windows are assumed to be at the top of the view 
  7291. hierarchy. 
  7292.  
  7293.  
  7294.  
  7295. æKY TView.fViewEnabled
  7296. æD fViewEnabled: BOOLEAN;
  7297. æFi UMacApp.p
  7298. æT FIELD 
  7299. æC TRUE if the view responds to mouse clicks. You usually do not access this field 
  7300. directly; instead, use the methods TView.ViewEnable and TView.IsViewEnabled. 
  7301.  
  7302.  
  7303.  
  7304. æKY TWindow.fAdapted
  7305. æD fAdapted: BOOLEAN;
  7306. æFi UMacApp.p
  7307. æT FIELD 
  7308. æC Set to TRUE if you called TWindow.AdaptToScreen when activating the window. 
  7309. AdaptToScreen resizes the window to fit the screen of the CPU that is running the 
  7310. application. 
  7311.  
  7312.  
  7313.  
  7314. æKY TWindow.fClosesDocument
  7315. æD fClosesDocument: BOOLEAN;
  7316. æFi UMacApp.p
  7317. æT FIELD 
  7318. æC Set to TRUE to close the document when the window closes. The default value is 
  7319. TRUE. 
  7320.  
  7321.  
  7322.  
  7323. æKY TWindow.fConstTitle
  7324. æD fConstTitle: INTEGER;
  7325. æFi UMacApp.p
  7326. æT FIELD 
  7327. æC Used to parse the window title into a constant part and a part replaced by the 
  7328. window’s document name. 
  7329.  
  7330.  
  7331.  
  7332. æKY TWindow.fContDifference
  7333. æD fContDifference: Point;
  7334. æFi UMacApp.p
  7335. æT FIELD 
  7336. æC The total amount the content is less than and offset into the structure (this 
  7337. allows for the title bar and so on). 
  7338.  
  7339.  
  7340.  
  7341. æKY TWindow.fContRgnInset
  7342. æD fContRgnInset: Point;
  7343. æFi UMacApp.p
  7344. æT FIELD 
  7345. æC The top left inset of the content region in the struc region. 
  7346.  
  7347.  
  7348.  
  7349. æKY TWindow.fDisposeOnFree
  7350. æD fDisposeOnFree: BOOLEAN;
  7351. æFi UMacApp.p
  7352. æT FIELD 
  7353. æC Set to TRUE if you want MacApp to dispose of the associated Window Manager 
  7354. window when the TWindow object is freed. 
  7355.  
  7356.  
  7357.  
  7358. æKY TWindow.fDoFirstClick
  7359. æD fDoFirstClick: BOOLEAN;
  7360. æFi UMacApp.p
  7361. æT FIELD 
  7362. æC TRUE indicates that the window responds to mouse clicks even when it isn’t the 
  7363. frontmost window. The default value is FALSE. 
  7364.  
  7365.  
  7366.  
  7367. æKY TWindow.fFloats
  7368. æD fFloats: BOOLEAN;
  7369. æFi UMacApp.p
  7370. æT FIELD 
  7371. æC TRUE indicates that the window will "float" above the other windows—that is, it 
  7372. will never be considered active—and will not be affected by the methods 
  7373. TWindow.DebugGetActiveWindow, TApplication.GetFrontWindow, and 
  7374. TApplication.GetActiveWindow. The default value of fFloats is FALSE. This field is not supported in 
  7375. MacApp 2.0. 
  7376.  
  7377.  
  7378.  
  7379. æKY TWindow.fForcedOnScreen
  7380. æD fForcedOnScreen: BOOLEAN;
  7381. æFi UMacApp.p
  7382. æT FIELD 
  7383. æC Set to TRUE if you want the window to be located and resized so that part of it 
  7384. will show on the screen of the currently running CPU. 
  7385.  
  7386.  
  7387.  
  7388. æKY TWindow.fFreeOnClosing
  7389. æD fFreeOnClosing: BOOLEAN;
  7390. æFi UMacApp.p
  7391. æT FIELD 
  7392. æC Set to TRUE if you want to free this object when the window is closed. The 
  7393. default value is FALSE. 
  7394.  
  7395.  
  7396.  
  7397. æKY TWindow.fHorzCentered
  7398. æD fHorzCentered: BOOLEAN;
  7399. æFi UMacApp.p
  7400. æT FIELD 
  7401. æC Set to TRUE if you want the window's Center method to center it horizontally on 
  7402. the screen. 
  7403.  
  7404.  
  7405.  
  7406. æKY TWindow.fIsActive
  7407. æD fIsActive: BOOLEAN;
  7408. æFi UMacApp.p
  7409. æT FIELD 
  7410. æC TRUE if this window is active. An activate event that hasn’t been handled yet 
  7411. may cause fIsActive to have the value TRUE even if the window specified by 
  7412. fWMgrWindow is not the frontmost window. 
  7413.  
  7414.  
  7415.  
  7416. æKY TWindow.fIsClosable
  7417. æD fIsClosable: BOOLEAN;
  7418. æFi UMacApp.p
  7419. æT FIELD 
  7420. æC TRUE indicates that the Close menu item is enabled when the window is active. If 
  7421. the window has a close box, then fIsClosable is initially set to TRUE. 
  7422.  
  7423.  
  7424.  
  7425. æKY TWindow.fIsModal
  7426. æD fIsModal: BOOLEAN;
  7427. æFi UMacApp.p
  7428. æT FIELD 
  7429. æC TRUE indicates that the window is modal—that is, no other window can be 
  7430. activated while this one is active, although the menu bar is available. 
  7431.  
  7432.  
  7433.  
  7434. æKY TWindow.fIsResizable
  7435. æD fIsResizable: BOOLEAN;
  7436. æFi UMacApp.p
  7437. æT FIELD 
  7438. æC TRUE indicates that the window has a size box. 
  7439.  
  7440.  
  7441.  
  7442. æKY TWindow.fMoveBounds
  7443. æD fMoveBounds: Rect;
  7444. æFi UMacApp.p
  7445. æT FIELD 
  7446. æC A rectangle defining the boundaries of the area in which it is possible to drag 
  7447. the window. Its default value is gStdWMoveBounds. 
  7448.  
  7449.  
  7450.  
  7451. æKY TWindow.fMustAdapt
  7452. æD fMustAdapt : BOOLEAN;
  7453. æFi UMacApp.p
  7454. æT FIELD 
  7455. æC TRUE specifies that the window must be adapted to the screen. 
  7456.  
  7457.  
  7458.  
  7459. æKY TWindow.fMustForceOnScreen
  7460. æD fMustForceOnScreen : BOOLEAN;
  7461. æFi UMacApp.p
  7462. æT FIELD 
  7463. æC TRUE specifies that the window’s position must be changed to one that is on the 
  7464. screen. 
  7465.  
  7466.  
  7467.  
  7468. æKY TWindow.fMustHorzCenter
  7469. æD fMustHorzCenter : BOOLEAN;
  7470. æFi UMacApp.p
  7471. æT FIELD 
  7472. æC TRUE indicates that the window requires horizontal centering. 
  7473.  
  7474.  
  7475.  
  7476. æKY TWindow.fMustStagger
  7477. æD fMustStagger : BOOLEAN;
  7478. æFi UMacApp.p
  7479. æT FIELD 
  7480. æC TRUE specifies that this window requires staggering. 
  7481.  
  7482.  
  7483.  
  7484. æKY TWindow.fMustVertCenter
  7485. æD fMustVertCenter : BOOLEAN;
  7486. æFi UMacApp.p
  7487. æT FIELD 
  7488. æC TRUE specifies that this window requires vertical centering. 
  7489.  
  7490.  
  7491.  
  7492. æKY TWindow.fOpenInitially
  7493. æD fOpenInitially: BOOLEAN;
  7494. æFi UMacApp.p
  7495. æT FIELD 
  7496. æC TRUE indicates that this window is opened when the window’s document is opened. 
  7497. The default value is TRUE. 
  7498.  
  7499.  
  7500.  
  7501. æKY TWindow.fPreDocname
  7502. æD fPreDocname: INTEGER;
  7503. æFi UMacApp.p
  7504. æT FIELD 
  7505. æC Used to parse the window title into a constant part and a part replaced by the 
  7506. window’s document name. 
  7507.  
  7508.  
  7509.  
  7510. æKY TWindow.fProcId
  7511. æD fProcId: INTEGER;
  7512. æFi UMacApp.p
  7513. æT FIELD 
  7514. æC The window definition function that defines the Window Manager window associated 
  7515. with the TWindow object. 
  7516.  
  7517.  
  7518.  
  7519. æKY TWindow.fResizeLimits
  7520. æD fResizeLimits: Rect;
  7521. æFi UMacApp.p
  7522. æT FIELD 
  7523. æC A rectangle defining the minimum and maximum sizes of the window. It is 
  7524. initially set to gStdWSizeRect. 
  7525.  
  7526.  
  7527.  
  7528. æKY TWindow.fStaggered
  7529. æD fStaggered: BOOLEAN;
  7530. æFi UMacApp.p
  7531. æT FIELD 
  7532. æC Set to TRUE if the window was staggered by its Stagger method. 
  7533.  
  7534.  
  7535.  
  7536. æKY TWindow.fTarget
  7537. æD fTarget: TEvtHandler;
  7538. æFi UMacApp.p
  7539. æT FIELD 
  7540. æC The event handler, usually a view, that becomes the application’s target 
  7541. (gTarget) when the window is active. 
  7542.  
  7543.  
  7544.  
  7545. æKY TWindow.fTargetId
  7546. æD fTargetId: IDType;
  7547. æFi UMacApp.p
  7548. æT FIELD 
  7549. æC The identifier of the view that will be the window’s initial target when it is 
  7550. created from a resource template. 
  7551.  
  7552.  
  7553.  
  7554. æKY TWindow.fVertCentered
  7555. æD fVertCentered: BOOLEAN;
  7556. æFi UMacApp.p
  7557. æT FIELD 
  7558. æC Set to TRUE if the window was centered vertically by its Center method. 
  7559.  
  7560.  
  7561.  
  7562. æKY TWindow.fWMgrWindow
  7563. æD fWMgrWindow: WindowPtr;
  7564. æFi UMacApp.p
  7565. æT FIELD 
  7566. æC The pointer to this window's corresponding Window Manager window. 
  7567.  
  7568. æKY Global Routines
  7569. æKL
  7570. %_BP
  7571. %_CLASSINFO
  7572. %_DISCIPLINEDISPATCH
  7573. %_DISCIPLINEDISPATCH_PATCHPOINT
  7574. %_EP
  7575. %_EX
  7576. %_INITOBJ
  7577. %_INOBJ
  7578. %_JMPTOTRAP
  7579. %_METHOD
  7580. %_NewMethod
  7581. %_OBCHK
  7582. %_OBDISP
  7583. %_ObjError
  7584. %_OBNEW
  7585. %_OptInitObj
  7586. %_OPTINOBJ
  7587. %_OptSetCI
  7588. %_PGM1
  7589. _addDevHandler
  7590. _DataInit
  7591. ActionProcForTScrollBar
  7592. AddAllRsrc
  7593. AddHandle
  7594. AddNewObjectsToInspector
  7595. AddObjectToInspector
  7596. AddSegSizes
  7597. AddVPt
  7598. AllocateObjectsFromPerm
  7599. AllocBlock
  7600. ALoadMacAppSeg
  7601. APostLoadMacAppSeg
  7602. ApplicationBeep
  7603. Assertion
  7604. AtMAName
  7605. AtStr
  7606. aVBLTask
  7607. AWatchTask
  7608. BlockSet
  7609. BuildAllReserves
  7610. BuildCodeReserve
  7611. BuildMessage
  7612. BusyActivate
  7613. BusyDelay
  7614. BusyInstall
  7615. BusyRemove
  7616. BusyReset
  7617. BusyTurnOff
  7618. CallAlertFilter
  7619. CallCapture
  7620. CallEnter
  7621. CallFileFilter
  7622. CallFlagActionProc
  7623. CallHelpProc
  7624. CallInspector
  7625. CallNotify
  7626. CallSymActionProc
  7627. CallSymbolLookup
  7628. CallWDefProc
  7629. CanPaste
  7630. CanReadLn
  7631. CanWriteLn
  7632. CatchFailures
  7633. CenterRectOnScreen
  7634. CheckFreeMasters
  7635. CheckReserve
  7636. CheckRsrcUsage
  7637. CleanupMacApp
  7638. ClearTheFPU
  7639. ClickLoopForTTEView
  7640. CloseFile
  7641. ClrBreakCmd
  7642. CmdEnabled
  7643. CmdFromMenuItem
  7644. CmdToComponents
  7645. CmdToMenuItem
  7646. CmdToName
  7647. CompareStrings
  7648. ConcatNumber
  7649. ConfigRecFields
  7650. CopyStr255
  7651. CurrentCursor
  7652. DebugCanReadLn
  7653. DebugCanWriteLn
  7654. DebugCapture
  7655. DebugEndForce
  7656. DebugException
  7657. DebugFlag
  7658. DebugForceOutput
  7659. DebugGetActiveDocument
  7660. DebugGetActiveWindow
  7661. DebugGetLastCommand
  7662. DebugGlobalHandle
  7663. DebugPerfMonitor
  7664. DebugReadCh
  7665. DebugReadLn
  7666. DebugRedirect
  7667. DebugShowTranscriptWindow
  7668. DebugTerminate
  7669. DebugTranscriptWidth
  7670. DebugWriteLn
  7671. DefaultSize
  7672. DefineConfiguration
  7673. DeleteFile
  7674. DevClose
  7675. DevFAccess
  7676. DevIoctl
  7677. DevRead
  7678. DevWrite
  7679. DisciplineMethodCalls
  7680. DisposeIfHandle
  7681. DisposeIfPtr
  7682. DisposIfHandle
  7683. DisposIfPtr
  7684. DoChangeReserve
  7685. DoFailure
  7686. DoInitUMacApp
  7687. DoInitUMemory
  7688. DoneViewRsrc
  7689. DoneWithTempRgn
  7690. DoRealInitToolBox
  7691. DoShowAboutAppFilter
  7692. DoToSubView
  7693. DoWaiting
  7694. DumpTERecord
  7695. DumpTTECommand
  7696. EachClassDo
  7697. EachFailureHandlerDo
  7698. EachFrameDo
  7699. EachMenuDo
  7700. EachPatchDo
  7701. EachSubClassDo
  7702. EachSuperClassDo
  7703. EachWMgrWindowDo
  7704. EmptyVRect
  7705. Enable
  7706. EnableCheck
  7707. EntDebugger
  7708. EnterMacAppDebugger
  7709. EqualBlocks
  7710. EqualVPt
  7711. EqualVRect
  7712. ErrorAlert
  7713. ExchangeHandles
  7714. ExitMacApp
  7715. ExpandPtr
  7716. ExpandPtrWStr
  7717. FailMemError
  7718. FailNewMessage
  7719. FailNIL
  7720. FailNILResource
  7721. FailNonObject
  7722. FailNoReserve
  7723. FailOSErr
  7724. FailResError
  7725. FailSpaceIsLow
  7726. Failure
  7727. FieldToString
  7728. FileModDate
  7729. FillInDirID
  7730. FinderSegProc
  7731. FindWindowBefore
  7732. ForceBusy
  7733. FreeIfObject
  7734. FreeIfWMgrWindow
  7735. FreeListIfObject
  7736. FreeObject
  7737. FreeWMgrWindow
  7738. GetA5
  7739. GetActualJustification
  7740. GetAndLoadWDefProc
  7741. GetCallersMethodName
  7742. GetClassID
  7743. GetClassIDFromName
  7744. GetClassNameFromID
  7745. GetClassSizeFromId
  7746. GetCrsrBusy
  7747. GetCurJTOffset
  7748. GetCurStackBase
  7749. GetCurStackFramePtr
  7750. GetCurStackTop
  7751. GetDirID
  7752. GetErrTxt
  7753. GetFileInfo
  7754. GetFocus
  7755. GetFontNum
  7756. GetFrameInfo
  7757. GetFreeMastersCount
  7758. GetFSFCBLen
  7759. GetGZMoveHnd
  7760. GetGZRootHnd
  7761. GetHandleBits
  7762. GetHwCfgFlags
  7763. GetIfBkColor
  7764. GetIfColor
  7765. GetLevel
  7766. GetLMMBarHeight
  7767. GetMenuColors
  7768. GetMenuList
  7769. GetMethodName
  7770. GetNewCenteredDialog
  7771. GetParmBlockPtr
  7772. GetPortFontInfo
  7773. GetPortTextStyle
  7774. GetProcName
  7775. GetPromptedChar
  7776. GetPromptedNames
  7777. GetPromptedNumber
  7778. GetPromptedNumberWithDefault
  7779. GetPromptedString
  7780. GetPromptedStringWithDefault
  7781. GetPromptedValue
  7782. GetRcvrAtLevel
  7783. GetReserveSize
  7784. GetResLoad
  7785. GetResMenu
  7786. GetROMMapInsert
  7787. GetSaveVisRgnPtr
  7788. GetSegFromPC
  7789. GetSegNumber
  7790. GetSegResource
  7791. GetSegSize
  7792. GetSuperClassID
  7793. GetSuperClassTableHandle
  7794. GetTextStyleFontInfo
  7795. GetTheCrsr
  7796. GetTrapType
  7797. GetUnitNtryCnt
  7798. GetUTableBase
  7799. GetWindowList
  7800. GetWindowVariant
  7801. GrowZoneProc
  7802. HandleIsEligible
  7803. HandlerExists
  7804. HdlInitFailed
  7805. Head1Patch
  7806. HeadPatch
  7807. HeapCmd
  7808. IdleProcForTStdPrintHandler
  7809. IDUDebug
  7810. IDUobject
  7811. IDUTranscriptView
  7812. InitializationThatMustNotFail
  7813. InitMacAppCursor
  7814. InitPrinting
  7815. InitToolBox
  7816. InitUBusyCursor
  7817. InitUDebug
  7818. InitUDebugAfterIApplication
  7819. InitUDialog
  7820. InitUGridView
  7821. InitUInspector
  7822. InitUMacApp
  7823. InitUMemory
  7824. InitUMenuSetup
  7825. InitUObject
  7826. InitUPatch
  7827. InitUPrinting
  7828. InitUTEView
  7829. InsetVRect
  7830. InspectField
  7831. InspectObject
  7832. InstallAnNMRequest
  7833. InstallDispatcher
  7834. InstallGrowZoneProc
  7835. InstallIfPrintHandler
  7836. InstallInterceptors
  7837. InstallWriteLnHook
  7838. IntMultiply
  7839. InvalidateMenuBar
  7840. InvalidateMenus
  7841. IsClassIDMemberClass
  7842. IsFreeHandle
  7843. IsHandle
  7844. IsHandleLocked
  7845. IsHandlePurged
  7846. IsMemberClassID
  7847. IsObject
  7848. IsUserBreak
  7849. JTOffProc
  7850. LengthRect
  7851. LengthVRect
  7852. LIntToHex
  7853. LoadMacAppSegment
  7854. LoadResidentSegments
  7855. LockHandleHigh
  7856. LongerSide
  7857. LookupErrString
  7858. LookupSymbol
  7859. LowerChar
  7860. LowerStr255
  7861. MacAppAlert
  7862. MacAppAlertFilter
  7863. MACount1Resources
  7864. MACountResources
  7865. MADebuggerMainEntry
  7866. MADrawString
  7867. MAGet1IndResource
  7868. MAGet1NamedResource
  7869. MAGet1Resource
  7870. MAGetIndResource
  7871. MAGetMenu
  7872. MAGetNamedResource
  7873. MAGetNewMBar
  7874. MAGetResource
  7875. MainHelpProc
  7876. MAInsertMenu
  7877. MAInvalMenuBar
  7878. MakeInspector
  7879. MakeInspectorWindow
  7880. MakeNewInstance
  7881. MakeNewRgn
  7882. MAOpenFile
  7883. MATextBox
  7884. MAUseResFile
  7885. Max
  7886. MemSpaceIsLow
  7887. MenuBarHasPendingUpdate
  7888. MenusHavePendingUpdate
  7889. Min
  7890. MinMax
  7891. NeedCalcMenuSize
  7892. NewAllocatedList
  7893. NewList
  7894. NewObjectByClassId
  7895. NewObjectByClassName
  7896. NewPaletteWindow
  7897. NewPermHandle
  7898. NewPermPtr
  7899. NewSimpleWindow
  7900. NewSortedList
  7901. NewStdObject
  7902. NewTemplateWindow
  7903. NewTWindow
  7904. NewViewRsrc
  7905. NotYetImplemented
  7906. NullMenuProc
  7907. NumberToHex
  7908. NumBlocks
  7909. NumToolboxTraps
  7910. OBJFail
  7911. OffsetPtr
  7912. OffsetPtrWStr
  7913. OffsetVRect
  7914. OptionKeyIsDown
  7915. OrderClassIdsByName
  7916. ParseTitleTemplate
  7917. PatchTrap
  7918. PerfCmd
  7919. PerformMenuSetup
  7920. PermAllocation
  7921. PinOnRect
  7922. PinVRect
  7923. PointerToHex
  7924. PositionDebugWindow
  7925. PostLoadMacAppSegment
  7926. PreloadSegment
  7927. PreloadSegmentResource
  7928. ProgramBreak
  7929. ProgramReport
  7930. PRStr
  7931. Pt2VRect
  7932. PtInVRect
  7933. PtIsVisible
  7934. PtToVPt
  7935. PullApplicationToFront
  7936. PushLong
  7937. PutDeskScrapData
  7938. ReadInteger
  7939. ReadYesNo
  7940. RectIsVisible
  7941. RectsNest
  7942. RectToVRect
  7943. RegisterStdType
  7944. RemHandle
  7945. RemoveAnyNMRequests
  7946. RemoveObjectFromInspector
  7947. ResetBusyCursor
  7948. RoundUp
  7949. SaveEventQueue
  7950. ScanHandles
  7951. ScrapStuffFields
  7952. SectVRect
  7953. SetBreakCmd
  7954. SetCallBack
  7955. SetCMacAppCursor
  7956. SetCmdIcon
  7957. SetCmdName
  7958. SetFocus
  7959. SetGetProc
  7960. SetHandleBits
  7961. SetHLPenState
  7962. SetIfBkColor
  7963. SetIfColor
  7964. SetIndCmdName
  7965. SetKeyScript
  7966. SetMacAppCursor
  7967. SetMenuState
  7968. SetPermHandleSize
  7969. SetPermPtrSize
  7970. SetPortTextStyle
  7971. SetPutProc
  7972. SetReserveSize
  7973. SetResidentSegment
  7974. SetRGBColor
  7975. SetSelect
  7976. SetStackSpace
  7977. SetStyle
  7978. SetTextStyle
  7979. SetVPt
  7980. SetVRect
  7981. ShowDisasmMemory
  7982. ShowFields
  7983. ShowHeapInfo
  7984. ShowHierarchy
  7985. ShowLocals
  7986. ShowMemory
  7987. ShowNames
  7988. ShowParameters
  7989. ShowRecent
  7990. ShowStack
  7991. ShowStatus
  7992. ShowSymbolWhich
  7993. ShowTempSpace
  7994. ShowWhere
  7995. ShowWhich
  7996. StdAlert
  7997. StdFieldToString
  7998. StdHelpProc
  7999. StdNoRect
  8000. StripLong
  8001. SubstituteInTitle
  8002. SubVPt
  8003. Success
  8004. TestRecoverHandle
  8005. TextStyleFields
  8006. ToggleCmd
  8007. TotalTempSize
  8008. TraceMenuName
  8009. TrapExists
  8010. TrcEnable
  8011. UnionVRect
  8012. UnloadAllSegments
  8013. UnpatchAll
  8014. UnpatchTrap
  8015. UprChar
  8016. UprMAName
  8017. UprStr255
  8018. UseROMMap
  8019. UseSelectionColor
  8020. UseTempRgn
  8021. ValidateConfiguration
  8022. ValidateMenuBar
  8023. ValidateMenus
  8024. VBLInstall
  8025. VBLRemove
  8026. VerboseIsHandle
  8027. VerboseIsObject
  8028. VisibleRect
  8029. VPtToPt
  8030. VRectsNest
  8031. VRectToRect
  8032. WindCmd
  8033. WithApplicationResFileDo
  8034. WithCodeResFileDo
  8035. WithHideFromMacAppDo
  8036. WriteBoolean
  8037. WriteChar
  8038. WriteFocus
  8039. WriteHandleContents
  8040. WriteHexInt
  8041. WriteHexLongint
  8042. WritePt
  8043. WritePtr
  8044. WriteRect
  8045. WriteReserves
  8046. WriteSig
  8047. WriteVPt
  8048. WriteVRect
  8049. WrLblBoolean
  8050. WrLblField
  8051. WrLblHandleContents
  8052. WrLblHexInt
  8053. WrLblHexLongint
  8054. WrLblPt
  8055. WrLblPtr
  8056. WrLblRect
  8057. WrLblSig
  8058. WrLblVPt
  8059. WrLblVRect
  8060. XDebugAddrError
  8061. XDebugBusError
  8062. XDebugCheck
  8063. XDebugIllInst
  8064. XDebugLineF
  8065. XDebugOverflow
  8066. XDebugSysError
  8067. XDebugZeroDiv
  8068. YouAreWarned
  8069.  
  8070. æKY %_BP
  8071. æD PROCEDURE %_BP;
  8072. æFi UDebug 
  8073. æT PROCEDURE 
  8074. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8075. need to call it yourself.
  8076.  
  8077.  
  8078. æKY %_CLASSINFO
  8079. æD PROCEDURE %_CLASSINFO; EXTERNAL;
  8080. æFi UObject.Globals 
  8081. æT PROCEDURE 
  8082. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8083. need to call it yourself. 
  8084.  
  8085.  
  8086. æKY %_DISCIPLINEDISPATCH
  8087. æD PROCEDURE %_DISCIPLINEDISPATCH; EXTERNAL;
  8088. æFi UObject.Globals 
  8089. æT PROCEDURE 
  8090. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8091. need to call it yourself. 
  8092.  
  8093.  
  8094. æKY %_DISCIPLINEDISPATCH_PATCHPOINT
  8095. æD PROCEDURE %_BP;
  8096. æFi UObject.Globals 
  8097. æT PROCEDURE 
  8098. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8099. need to call it yourself.
  8100.  
  8101.  
  8102. æKY %_EP
  8103. æD PROCEDURE %_EP;
  8104. æFi UDebug 
  8105. æT PROCEDURE 
  8106. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8107. need to call it yourself. 
  8108.  
  8109.  
  8110. æKY %_EX
  8111. æD PROCEDURE %_EX;
  8112. æFi UDebug 
  8113. æT PROCEDURE 
  8114. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8115. need to call it yourself. 
  8116.  
  8117.  
  8118. æKY %_INITOBJ
  8119. æD PROCEDURE %_INITOBJ;
  8120. æFi UObject.Globals 
  8121. æT PROCEDURE 
  8122. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8123. need to call it yourself. 
  8124.  
  8125.  
  8126. æKY %_INOBJ
  8127. æD PROCEDURE %_INOBJ;
  8128. æFi UObject.Globals 
  8129. æT PROCEDURE 
  8130. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8131. need to call it yourself. 
  8132.  
  8133.  
  8134. æKY %_JMPTOTRAP
  8135. æD PROCEDURE %_JMPTOTRAP;
  8136. æFi UObject.Globals 
  8137. æT PROCEDURE 
  8138. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8139. need to call it yourself. 
  8140.  
  8141.  
  8142. æKY %_METHOD
  8143. æD PROCEDURE %_METHOD;
  8144. æFi UObject.Globals 
  8145. æT PROCEDURE 
  8146. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8147. need to call it yourself. 
  8148.  
  8149.  
  8150. æKY %_NewMethod
  8151. æD PROCEDURE %_NewMethod;
  8152. æFi UObject.Globals 
  8153. æT PROCEDURE 
  8154. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8155. need to call it yourself. 
  8156.  
  8157.  
  8158. æKY %_OBCHK
  8159. æD FUNCTION %_OBCHK(obj: TObject; jumpTablePtr: Ptr): TObject;
  8160. æFi UObject.Globals 
  8161. æT PROCEDURE 
  8162. æC The %_OBCHK routine verifies object coercions (that is, the type casting of the 
  8163. object) at run time. It returns its obj parameter if the parameter is NIL or passes 
  8164. the membership test; otherwise, it calls the global routine ObjFail.
  8165. The obj parameter specifies the data to be verified as a valid object. The 
  8166. jumpTablePtr parameter is a pointer to the jump table.
  8167. MacApp calls this low level routine at run time to verify object coercions. Do not 
  8168. call this routine yourself. 
  8169.  
  8170.  
  8171. æKY %_OBDISP
  8172. æD PROCEDURE %_OBDISP(obj: TObject);
  8173. æFi UObject.Globals 
  8174. æT PROCEDURE 
  8175. æC This low-level routine frees a non-NIL object. 
  8176. The obj parameter is the object to be freed.
  8177. This routine is used internally by MacApp. You never need to call it yourself.
  8178.  
  8179.  
  8180. æKY %_ObjError
  8181. æD PROCEDURE %_ObjError;
  8182. æFi UObject.Globals 
  8183. æT PROCEDURE 
  8184. æC The %_ObjError routine is a low level error routine that the method-dispatch 
  8185. routine in ROM calls if a method is not found. The address of %_ObjError is stored 
  8186. at the low-memory location MAErrProc. 
  8187. MacApp itself does not call this routine; it is called by the ROM-based method 
  8188. dispatcher. Do not call this routine yourself.
  8189.  
  8190.  
  8191. æKY %_OBNEW
  8192. æD PROCEDURE %_OBNEW(VAR obj: TObject; jumpTablePtr: Ptr; itsSize: INTEGER);
  8193. æFi UObject.Globals 
  8194. æT PROCEDURE 
  8195. æC This low level routine is not yet documented; it is used internally by MacApp. You 
  8196. never need to call it yourself.
  8197.  
  8198.  
  8199. æKY %_OptInitObj
  8200. æD PROCEDURE %_OptInitObj;
  8201. æFi UObject.Globals 
  8202. æT PROCEDURE 
  8203. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8204. need to call it yourself.
  8205.  
  8206.  
  8207. æKY %_OPTINOBJ
  8208. æD FUNCTION %_OPTINOBJ(obj: TObject; jumpTablePtr: Ptr): BOOLEAN;
  8209. æFi UObject.Globals 
  8210. æT PROCEDURE 
  8211. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8212. need to call it yourself. 
  8213.  
  8214.  
  8215. æKY %_OptSetCI
  8216. æD PROCEDURE %_BP;
  8217. æFi UObject.Globals 
  8218. æT PROCEDURE 
  8219. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8220. need to call it yourself.
  8221.  
  8222.  
  8223. æKY %_PGM1
  8224. æD PROCEDURE %_PGM1;
  8225. æFi UObject.Globals 
  8226. æT PROCEDURE 
  8227. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8228. need to call it yourself.
  8229.  
  8230.  
  8231. æKY _addDevHandler
  8232. æD FUNCTION _addDevHandler(slot, dvName, dvFAccess, dvClose, dvRead, dvWrite, 
  8233.   dvIoctl: Longint): Longint;C; EXTERNAL;
  8234. æFi UDebug 
  8235. æT PROCEDURE 
  8236. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8237. need to call it yourself.
  8238.  
  8239.  
  8240. æKY _DataInit
  8241. æD PROCEDURE _DataInit;
  8242. æFi UMacAppUtilities 
  8243. æT PROCEDURE 
  8244. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8245. need to call it yourself.
  8246.  
  8247.  
  8248. æKY ActionProcForTScrollBar
  8249. æD PROCEDURE ActionProcForTScrollBar(aCMgrControl: ControlHandle;
  8250. partCode: INTEGER);
  8251. æFi UMacApp 
  8252. æT PROCEDURE 
  8253. æC ActionProcForTScrollBar performs the normal actions associated with a scroll 
  8254. bar’s screen image while the user is operating the scroll bar.
  8255. The aCMgrControl parameter is a handle to the Control Manager scroll bar that is 
  8256. being operated. The partCode parameter is the part code that corresponds to the 
  8257. part of the scroll bar in which the user clicked.
  8258. MacApp uses ActionProcForTScrollBar to implement its scroll bars. You usually do 
  8259. not need to call this routine yourself.
  8260.  
  8261.  
  8262. æKY AddAllRsrc
  8263. æD PROCEDURE AddAllRsrc(rType: ResType; toList: HHandleList);
  8264. æFi UMemory 
  8265. æT PROCEDURE 
  8266. æC AddAllRsrc searches all open resource files for resources of the specified type 
  8267. and adds handles to them to a list (it does not add the resources already present 
  8268. in ROM).
  8269. This routine then places a handle to the list at the beginning of the list. The rType 
  8270. parameter specifies the resource type of the resources to be added to the list. The 
  8271. toList parameter specifies the list to which this routine adds handles. 
  8272. MacApp calls AddAllRsrc to create or add to a list of resources of a specified type.
  8273. You can use this routine in a similar fashion. 
  8274.  
  8275.  
  8276. æKY AddHandle
  8277. æD PROCEDURE AddHandle(h: Handle; toList: HHandleList);
  8278. æFi UMemory 
  8279. æT PROCEDURE 
  8280. æC AddHandle adds a handle to the front of the specified list of handles; it does 
  8281. not determine if the handle already exists in the list. 
  8282. The h parameter is the handle to be added to the list. The toList parameter specifies 
  8283. the list to which the handle is to be added. 
  8284. MacApp calls AddHandle from the global routine AddAllRsrc to add a handle to the list 
  8285. that contains handles to resources. You can use AddHandle in a similar fashion. 
  8286.  
  8287.  
  8288. æKY AddNewObjectsToInspector
  8289. æD FUNCTION AddNewObjectsToInspector(add: BOOLEAN): BOOLEAN;
  8290. æFi UObject 
  8291. æT PROCEDURE 
  8292. æC AddNewObjectsToInspector sets the global variable pAddNewObjectsToInspector to 
  8293. the specified value; it also returns the value of the old setting. The default 
  8294. setting is TRUE. 
  8295. If you set the value of the add parameter to TRUE, MacApp automatically adds all 
  8296. newly created objects to the the Inspector's list of existing objects. 
  8297. MacApp calls AddNewObjectsToInspector from several methods involved in the the 
  8298. setup and operation of the Inspector. You usually do not need to call this routine 
  8299. yourself. 
  8300.  
  8301.  
  8302. æKY AddObjectToInspector
  8303. æD PROCEDURE AddObjectToInspector(theObject: TObject);
  8304. æFi UInspector 
  8305. æT PROCEDURE 
  8306. æC AddObjectToInspector adds an object to the Inspector's list of existing objects.
  8307. The parameter theObject is the object to be added to the list.  
  8308. MacApp calls AddObjectToInspector when an object is created or cloned. You usually 
  8309. do not need to call this routine yourself. 
  8310.  
  8311.  
  8312. æKY AddSegSizes
  8313. æD FUNCTION AddSegSizes(segRsrc: Handle): LONGINT;
  8314. æFi UMemory 
  8315. æT PROCEDURE 
  8316. æC AddSegSizes returns the total size, in bytes, of the code segments whose names 
  8317. are in the specified string list; these are the currently loaded segments. 
  8318. The segRsrc parameter is a handle to the segment map, which is a string list 
  8319. containing the names of the segments whose sizes are to be summed. 
  8320. MacApp calls AddSegSizes from the global routine DoInitUMemory when computing 
  8321. memory requirements necessary for running the application. You usually do not need 
  8322. to call this routine yourself. 
  8323.  
  8324.  
  8325. æKY AddVPt
  8326. æD PROCEDURE AddVPt(srcVPt: VPoint; VAR dstVPt: VPoint);
  8327. æFi UViewCoords 
  8328. æT PROCEDURE 
  8329. æC AddVPt adds two MacApp view points, producing a new view point whose x and y 
  8330. coordinates are the sums of the x and y coordinates of the two original points. 
  8331. The srcVPt parameter is the first of the two view points to be added. When the 
  8332. routine is called, the dstVPt parameter is the second of the two view points to be 
  8333. added; when the routine returns, the dstVPt parameter is the view point that results 
  8334. from adding the two specified points. 
  8335. AddVPt is called by methods of TApplication, TScroller, and TView when a view is 
  8336. being scrolled. You can use AddVPt to add two view coordinates and express the 
  8337. result as a new view coordinate. 
  8338.  
  8339.  
  8340. æKY AllocateObjectsFromPerm
  8341. æD FUNCTION AllocateObjectsFromPerm(allocateFromPerm: BOOLEAN): BOOLEAN;
  8342. æFi UObject 
  8343. æT PROCEDURE 
  8344. æC AllocateObjectsFromPerm determines whether object allocation calls make requests 
  8345. for permanent or temporary memory. This routine returns the previous state as its 
  8346. result.
  8347. Set the allocateFromPerm parameter to TRUE if you want object allocation calls to use 
  8348. permanent memory; set it to FALSE if you want object allocation calls to use 
  8349. temporary memory—that is, if they are not allowed to fail. The default value of 
  8350. allocateFromPerm is TRUE. This routine returns the previous state of the 
  8351. allocateFromPerm parameter.
  8352. MacApp calls AllocateObjectsFromPerm when creating command objects to execute menu 
  8353. commands. You can use this routine to condition requests for memory when creating 
  8354. objects.
  8355.  
  8356.  
  8357. æKY AllocBlock
  8358. æD FUNCTION AllocBlock(blockSize: INTEGER; trapNum: INTEGER; 
  8359.   VAR thePatch: TrapPatch): Ptr;
  8360. æFi UPatch 
  8361. æT PROCEDURE 
  8362. æC AllocBlock allocates a nonrelocatable block of the specified size in the system 
  8363. heap and returns a pointer to the newly allocated block. If necessary, AllocBlock 
  8364. patches the 68xxx exception vector (“trap”) specified. 
  8365. The blockSize parameter specifies the size, in bytes, of the block to be allocated. 
  8366. The trapNum parameter specifies the trap to be patched (if applicable). You can use 
  8367. the parameter thePatch to pass the code to be installed in place of the specified trap. 
  8368. If the value of blockSize is 0, then no block is allocated and AllocBlock simply fills 
  8369. in the fields of thePatch. 
  8370. MacApp calls AllocBlock to patch traps at startup time. You usually do not need 
  8371. to call this routine yourself. 
  8372.  
  8373.  
  8374. æKY ALoadMacAppSeg
  8375. æD PROCEDURE ALoadMacAppSeg;
  8376. æFi UMemory 
  8377. æT PROCEDURE 
  8378. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8379. need to call it yourself.
  8380.  
  8381.  
  8382. æKY APostLoadMacAppSeg
  8383. æD PROCEDURE APostLoadMacAppSeg;
  8384. æFi UMemory 
  8385. æT PROCEDURE 
  8386. æC This routine is not yet documented; it is used internally by MacApp. You never 
  8387. need to call it yourself.
  8388.  
  8389.  
  8390. æKY ApplicationBeep
  8391. æD PROCEDURE ApplicationBeep;
  8392. æFi UMacApp.Globals 
  8393. æT PROCEDURE 
  8394. æC ApplicationBeep calls gApplication.Beep with a duration of 2 ticks. If 
  8395. gApplication is NIL, then this routine calls the Toolbox routine SysBeep with the 
  8396. same duration value.
  8397. MacApp calls ApplicationBeep from the global routine ProgramReport to alert the 
  8398. programmer that an error has occurred. You can use ApplicationBeep in a similar 
  8399. fashion.
  8400.  
  8401.  
  8402. æKY Assertion
  8403. æD PROCEDURE Assertion(condition: Boolean; description: StringPtr);
  8404. æFi UFailure 
  8405. æT PROCEDURE 
  8406. æC Assertion writes an error message when the specified condition is not met. If the 
  8407. application has been compiled with debugging code included, Assertion enters 
  8408. the MacApp debugger and writes an error message to the Debug Transcript, giving the 
  8409. user the option to signal Failure. If the application has been compiled with 
  8410. debugging code included and writing to the Debug Transcript is disabled, the 
  8411. error message is written to the currently installed debugger, the debugger is 
  8412. invoked, and the routine signals Failure. Otherwise, the routine signals Failure. 
  8413. The condition parameter specifies a Boolean value that satisfies the assertion. 
  8414. The description parameter is a string describing the assertion that was not 
  8415. satisfied. Note: Pascal users can call the inline function AtStr to set the value of 
  8416. the description parameter. AtStr returns a pointer to a specified string.
  8417. If the application is compiled with debugging code included, MacApp calls Assertion 
  8418. from TApplication.Idle to test the validity of gTarget. You can use Assertion in 
  8419. a similar fashion. 
  8420.  
  8421.  
  8422. æKY AtMAName
  8423. æD FUNCTION AtMAName(astr: MAName): PMAName;
  8424. æFi UMacAppUtilities 
  8425. æT PROCEDURE 
  8426. æC AtMAName returns the address of the specified string or string constant so that 
  8427. you can pass pointers with no stack copy.  
  8428. The astr parameter is the string constant whose address is to be returned by 
  8429. this routine. 
  8430. You can call AtMAName to obtain a pointer to a specified MAName string. The syntax of 
  8431. a call to AtMAName is AtMAName('Foo'); 
  8432.  
  8433.  
  8434. æKY AtStr
  8435. æD FUNCTION AtStr(astr: Str255): StringPtr;
  8436. æFi UMacAppUtilities 
  8437. æT PROCEDURE 
  8438. æC AtStr returns the address of the specified string or string constant so that you 
  8439. can pass pointers with no stack copy.  
  8440. The astr parameter is the string constant whose address is to be returned by 
  8441. this routine. 
  8442. You can call AtStr to obtain a pointer to a specified string. The syntax of a 
  8443. call to AtStr is AtStr('Foo'); 
  8444.  
  8445.  
  8446. æKY aVBLTask
  8447. æD PROCEDURE aVBLTask;
  8448. æFi UDebug 
  8449. æT PROCEDURE 
  8450. æC This routine is executed periodically by the Vertical Retrace Interrupt mechanism. 
  8451. If the Command-Option-Shift-Control keys are held down, the MacApp debugger is 
  8452. entered.
  8453. You never call this routine yourself. 
  8454.  
  8455.  
  8456. æKY AWatchTask
  8457. æD PROCEDURE AWatchTask;
  8458. æFi UBusyCursor 
  8459. æT PROCEDURE 
  8460. æC AWatchTask changes the mouse pointer to the busy cursor (usually the watch 
  8461. cursor). 
  8462. MacApp calls this routine from the global routine BusyInstall. You usually do not 
  8463. need to call this routine yourself. 
  8464.  
  8465.  
  8466. æKY BlockSet
  8467. æD PROCEDURE BlockSet(destPtr: Ptr; byteCount: longint; setVal: UNIV SignedByte);
  8468. æFi UMacAppUtilities 
  8469. æT PROCEDURE 
  8470. æC BlockSet sets a block of memory to the specified value. The destPtr parameter 
  8471. is the pointer to the block whose value is to be set. The byteCount parameter is 
  8472. the size of the block to be set. The setVal parameter is the value to be stored 
  8473. at each byte in the block of memory beginning with the destination address. 
  8474. MacApp calls BlockSet from a variety of methods that manage memory. BlockSet is 
  8475. provided for your convenience; you can use it to set a block of memory to a 
  8476. specified value.
  8477.  
  8478. æKY BuildAllReserves
  8479. æD PROCEDURE BuildAllReserves;
  8480. æFi UMemory 
  8481. æT PROCEDURE 
  8482. æC BuildAllReserves creates the code reserve and low-space reserve. MacApp calls 
  8483. BuildAllReserves when launching an application, when memory space is low, and 
  8484. when checking the reserve space in memory. You never need to call this routine 
  8485. yourself.
  8486.  
  8487. æKY BuildCodeReserve
  8488. æD PROCEDURE BuildCodeReserve(allocLim: LONGINT; fromGZ: BOOLEAN);
  8489. æFi UMemory 
  8490. æT PROCEDURE 
  8491. æC BuildCodeReserve frees the current code reserve, computes the amount of memory 
  8492. actually needed, and then attempts to allocate the specified amount of code reserve 
  8493. space, purging memory if necessary. If this routine cannot allocate as much 
  8494. memory as is needed, it allocates as much as it can get. 
  8495. The allocLim parameter specifies the largest amount of memory this call attempts 
  8496. to allocate, regardless of the application's needs at the time. Set the fromGZ 
  8497. parameter to TRUE if you want to steal memory from the grow zone; the value of fromGZ
  8498. is normally FALSE, since you must never purge or compact the grow zone. 
  8499. MacApp calls BuildCodeReserve from several routines that allocate memory when an 
  8500. application is launched. You never need to call this routine yourself.
  8501.  
  8502.  
  8503. æKY BuildMessage
  8504. æD FUNCTION BuildMessage(lowWord, highWord: INTEGER): LONGINT;
  8505. æFi UFailure 
  8506. æT PROCEDURE 
  8507. æC BuildMessage takes two integers and combines them into a single value of type 
  8508. LongInt.
  8509. The lowWord parameter is the integer to be represented in the low-order word of 
  8510. the new LongInt value; the highWord parameter is the integer to be represented 
  8511. in the high-order word. Note that the low-order word is the first parameter. 
  8512. MacApp never calls this routine; it is provided for your convenience. You can 
  8513. use it in your failure-handling sequence when you want to replace the message
  8514.  parameter used when signalling failure with a more appropriate message of your 
  8515. own.
  8516.  
  8517.  
  8518. æKY BusyActivate
  8519. æD PROCEDURE BusyActivate(entering: BOOLEAN);
  8520. æFi UBusyCursor 
  8521. æT PROCEDURE 
  8522. æC BusyActivate activates or deactivates the busy-cursor mechanism. Set the 
  8523. entering parameter to TRUE when you want to activate the busy-cursor mechanism; 
  8524. set it to FALSE to deactivate the mechanism. MacApp calls BusyActivate when 
  8525. passing control to a desk accessory or another process in the MultiFinder® environment.
  8526. You can call this routine when you want activate the busy cursor; for example, you 
  8527. can do so to inform the user that the application is temporarily unable to respond 
  8528. to user input.  
  8529.  
  8530. æKY BusyDelay
  8531. æD PROCEDURE BusyDelay(newDelay: INTEGER);
  8532. æFi UBusyCursor 
  8533. æT PROCEDURE 
  8534. æC BusyDelay changes the amount of time that must elapse between accessing user 
  8535. events before MacApp displays the busy cursor. BusyDelay calls BusyReset to examine 
  8536. the state flags changeToWatch and inControl in the cursor information record. 
  8537. The newDelay parameter is the new value of the delay time in ticks; a value less 
  8538. than or equal to 0 does not change the delay time.  
  8539. BusyDelay is called by the global routine BusyInstall when it installs the busy-cursor
  8540. mechanism. You can call BusyDelay when you want to change the delay time that 
  8541. elapses before the watch cursor is displayed. 
  8542.  
  8543.  
  8544. æKY BusyInstall
  8545. æD PROCEDURE BusyInstall;
  8546. æFi UBusyCursor 
  8547. æT PROCEDURE 
  8548. æC BusyInstall installs the busy-cursor mechanism; this routine installs the VBL 
  8549. (vertical blanking) task AWatchTask and patches the traps GetNextEvent, EventAvail,
  8550. InitCursor, SetCursor, and SetCCursor (under A/UX, this routine also patches 
  8551. StillDown and WaitMouseUp). 
  8552. MacApp calls BusyInstall once during program initialization. You never need to 
  8553. call this routine yourself.
  8554.  
  8555.  
  8556. æKY BusyRemove
  8557. æD PROCEDURE BusyRemove;
  8558. æFi UBusyCursor 
  8559. æT PROCEDURE 
  8560. æC BusyRemove removes the busy-cursor mechanism. It removes the VBL task and 
  8561. removes patches from the traps GetNextEvent, EventAvail, InitCursor, SetCursor, 
  8562. SetCCursor, and the A/UX traps.
  8563. MacApp calls BusyRemove once when terminating an application. You usually do not 
  8564. need to call this routine yourself. 
  8565.  
  8566.  
  8567. æKY BusyReset
  8568. æD PROCEDURE BusyReset(delayTicks: INTEGER);
  8569. æFi UBusyCursor 
  8570. æT PROCEDURE 
  8571. æC BusyReset resets the counter that specifies how much time has elapsed between 
  8572. accesses to the user's input events. If the busy cursor is currently being displayed, 
  8573. this routine restores the original cursor. 
  8574. The delayTicks parameter is the new value of the busy-cursor delay, expressed in ticks.
  8575. MacApp calls BusyReset from several global routines that implement the busy-cursor 
  8576. mechanism. You can call this routine when you wish to restore the cursor information 
  8577. record to a known state. 
  8578.  
  8579.  
  8580. æKY BusyTurnOff
  8581. æD PROCEDURE BusyTurnOff;
  8582. æFi UBusyCursor 
  8583. æT PROCEDURE 
  8584. æC BusyTurnOff sets the cursor information record (pCursorInfo) fields to indicate 
  8585. that the cursor is not the busy cursor (the watch cursor).
  8586. MacApp calls BusyTurnOff from InitMacAppCursor, SetMacAppCursor and SetCMacAppCursor. 
  8587. You can call this routine when you wish to display the standard cursor indicated 
  8588. by the cursor information record; typically, this is the arrow cursor. 
  8589.  
  8590.  
  8591. æKY CallAlertFilter
  8592. æD FUNCTION CallAlertFilter(theDialog: DialogPtr; VAR theEvent: EventRecord; 
  8593.   VAR itemHit: INTEGER; theAlertFilter: ProcPtr): BOOLEAN;
  8594. æFi UMacApp 
  8595. æT PROCEDURE 
  8596. æC CallAlertFilter allows you to call your own alert filter procedure and pass 
  8597. its result to the global routine MacAppAlertFilter.
  8598. The parameter theDialog is a pointer to the specified dialog's item list. The parameter
  8599. theEvent is the Toolbox event record that caused this routine to be called. The itemHit
  8600. parameter specifies the control that was selected in the dialog box; in the case of an 
  8601. alert dialog box, the OK button that dismisses the alert dialog box is usually the 
  8602. control that was selected. The parameter theAlertFilter is a pointer to your own alert 
  8603. filter procedure. 
  8604. MacApp calls this routine from the global routine DoShowAboutAppFilter. 
  8605. You can use this routine to provide your own alert filter behavior and pass it 
  8606. on to the global routine MacAppAlertFilter.
  8607.  
  8608. æKY CallCapture
  8609. æD PROCEDURE CallCapture(textBuf: Ptr; byteCount: INTEGER; captureProc: ProcPtr);
  8610. æFi UDebug 
  8611. æT PROCEDURE 
  8612. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8613. to call it yourself.
  8614.  
  8615.  
  8616. æKY CallEnter
  8617. æD PROCEDURE CallEnter(entering: BOOLEAN; proc: Ptr);
  8618. æFi UDebug 
  8619. æT PROCEDURE 
  8620. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8621. to call it yourself.
  8622.  
  8623.  
  8624. æKY CallFileFilter
  8625. æD FUNCTION CallFileFilter(paramBlock: HParmBlkPtr; routine: ProcPtr): BOOLEAN;
  8626. æFi UMacApp.TApplication 
  8627. æT PROCEDURE 
  8628. æC This routine allows you to pass control to your own file filter procedure, 
  8629. returning TRUE if that filter routine completes its task successfully.
  8630. The paramBlock parameter is a pointer to the file filter’s parameter block. The 
  8631. routine parameter is a pointer to your file filter routine of the form: 
  8632. FUNCTION MyFileFilter (paramBlock : HParmBlkPtr): BOOLEAN;.
  8633. MacApp calls CallFileFilter if your application class overrides TApplication.SFGetParms 
  8634. to return the address of your file filter routine in the fileFilter parameter of 
  8635. SFGetParms. 
  8636.  
  8637.  
  8638. æKY CallFlagActionProc
  8639. æD FUNCTION CallFlagActionProc(OnOrOff: BOOLEAN; actionProc: ProcPtr): BOOLEAN;
  8640. æFi UDebug 
  8641. æT PROCEDURE 
  8642. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8643. to call it yourself.
  8644.  
  8645.  
  8646. æKY CallHelpProc
  8647. æD PROCEDURE CallHelpProc(actionProc: ProcPtr);
  8648. æFi UTranscriptView 
  8649. æT PROCEDURE 
  8650. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8651. to call it yourself.
  8652.  
  8653.  
  8654. æKY CallInspector
  8655. æD PROCEDURE CallInspector(obj: TObject; inspector: Ptr);
  8656. æFi UDebug 
  8657. æT PROCEDURE 
  8658. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8659. to call it yourself.
  8660.  
  8661.  
  8662. æKY CallNotify
  8663. æD PROCEDURE CallNotify(h: Handle; routine: ProcPtr);
  8664. æFi UMemory 
  8665. æT PROCEDURE 
  8666. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8667. to call it yourself.
  8668.  
  8669.  
  8670. æKY CallSymActionProc
  8671. æD FUNCTION CallSymActionProc(actionProc: ProcPtr): Handle;
  8672. æFi UDebug 
  8673. æT PROCEDURE 
  8674. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8675. to call it yourself. 
  8676.  
  8677.  
  8678. æKY CallSymbolLookup
  8679. æD FUNCTION CallSymbolLookup(VAR sym: Str255; lookerUpper: Ptr): Longint;
  8680. æFi UDebug 
  8681. æT PROCEDURE 
  8682. æC This routine is not yet documented; it is used internally by MacApp. You never need 
  8683. to call it yourself.
  8684.  
  8685.  
  8686. æKY CallWDefProc
  8687. æD FUNCTION CallWDefProc(varCode: INTEGER; theWindow: WindowPtr;
  8688. message: INTEGER; param: LONGINT; wDefProc: UNIV Handle): LONGINT;
  8689. æFi UMacApp 
  8690. æT PROCEDURE 
  8691. æC CallWDefProc calls the specified window definition procedure with a variant code 
  8692. and message, and returns the window definition procedure’s actual address.
  8693. The varCode parameter specifies the window definition procedure’s variation code if 
  8694. there is one. The parameter theWindow specifies the Window Manager window whose 
  8695. window definition procedure is to be accessed. The message parameter specifies 
  8696. the operation that the window definition procedure is to perform. The wDefProc 
  8697. parameter is a universal handle to the specified window definition procedure. 
  8698. MacApp uses this routine to call the window definition procedure for a specified 
  8699. Window Manager window associated with a TWindow object. You can use this routine 
  8700. in a similar fashion. For more information about window definition procedures, 
  8701. variation codes, and messages, see the Window Manager chapter of Inside Macintosh, 
  8702. Volume I.
  8703.  
  8704.  
  8705. æKY CanPaste
  8706. æD PROCEDURE CanPaste(aClipType: ResType);
  8707. æFi UMacApp 
  8708. æT PROCEDURE 
  8709. æC CanPaste allows you to register the ability to paste the specified type of data.
  8710. The aClipType parameter indicates the resource type of the data your application 
  8711. has the ability to paste. CanPaste stores data type you specify in the global 
  8712. variable gPrefClipType.
  8713. MacApp calls this routine from TTEView.DoSetUpMenus to indicate the ability to paste 
  8714. 'TEXT' data using the Clipboard. You can call this routine to register with MacApp the 
  8715. ability to paste any type of data your code can handle. 
  8716.  
  8717.  
  8718. æKY CanReadLn
  8719. æD FUNCTION CanReadLn: Boolean;
  8720. æFi UMacAppUtilities 
  8721. æT PROCEDURE 
  8722. æC CanReadLn returns TRUE if DebugCanReadLn returns TRUE and the qDebug compile 
  8723. switch is set to TRUE. That is, DebugCanReadLn checks the setup of the debugger, 
  8724. and CanReadLn verifies that debugging code has been included. If the qDebug 
  8725. switch is not set to TRUE, CanReadLn returns FALSE.CanReadLn is called by routines 
  8726. that return information to the Debug Transcript. You usually do not need to call 
  8727. this routine yourself. 
  8728.  
  8729. æKY CanWriteLn
  8730. æD FUNCTION CanWriteLn: Boolean;
  8731. æFi UMacAppUtilities 
  8732. æT PROCEDURE 
  8733. æC CanWriteLn returns TRUE if DebugCanWriteLn returns TRUE and the qDebug compile 
  8734. switch is set to TRUE. Thus, DebugCanWriteLn checks the setup of the debugger, 
  8735. and CanWriteLn verifies that debugging code has been included. If the qDebug 
  8736. switch is not set to TRUE, CanWriteLn does nothing. CanWriteLn is called by the 
  8737. global routines Assertion and Failure. You usually do not need to call this 
  8738. routine yourself. 
  8739.  
  8740.  
  8741. æKY CatchFailures
  8742. æD PROCEDURE CatchFailures(VAR fi: FailInfo; PROCEDURE Handler(e:INTEGER;
  8743.   m: LONGINT));EXTERNAL;
  8744. æFi UFailure 
  8745. æT PROCEDURE 
  8746. æC CatchFailures pushes the specified failure-handling routine onto the global 
  8747. stack of such routines in MacApp.
  8748. The fi parameter is a failure information record that MacApp uses to return data in 
  8749. case of a failure. The handler parameter is the procedure that is to be executed upon 
  8750. the next failure. 
  8751. MacApp uses CatchFailures in numerous places to post the handler routine for 
  8752. each method that provides a failure handler. You can call this routine with an 
  8753. appropriate handler routine when you create or initialize objects, execute commands, 
  8754. modify views, or manipulate memory—in short, almost anytime you need to gracefully 
  8755. exit a failed routine. 
  8756.  
  8757.  
  8758. æKY CenterRectOnScreen
  8759. æD PROCEDURE CenterRectOnScreen(VAR aRect: Rect; horizontally, vertically,
  8760.   forDialog: Boolean);
  8761. æFi UMacAppUtilities 
  8762. æT PROCEDURE 
  8763. æC CenterRectOnScreen centers the given rectangle on the main screen as specified. 
  8764. The aRect parameter specifies the rectangle that is to be centered on the 
  8765. screen in global coordinates; when this routine returns, the aRect parameter 
  8766. contains the coordinates of the newly centered rectangle. Setting the horizontally 
  8767. and vertically parameters to TRUE causes the specified rectangle to be centered 
  8768. horizontally or vertically on the screen, respectively. If the value of the 
  8769. forDialog parameter is TRUE, then the rectangle is placed closer to the top of 
  8770. the screen, as a modal dialog box would be. 
  8771. CenterRectOnScreen is called by several MacApp methods that display alert boxes and 
  8772. dialog boxes that must be centered on the screen. You can use this routine to ensure 
  8773. that your dialog boxes are centered regardless of screen size. 
  8774.  
  8775. æKY CheckFreeMasters
  8776. æD PROCEDURE CheckFreeMasters;
  8777. æFi UDebug 
  8778. æT PROCEDURE 
  8779. æC CheckFreeMasters compares the number of master pointers allocated at startup 
  8780. with the number of currently available master pointers; if the numbers differ, 
  8781. this routine writes both values to the debug transcript. 
  8782. MacApp calls this routine from the global routine MADebuggerMainEntry when you request 
  8783. a report of the master pointer usage from the MacApp debugger. You can use this routine
  8784. when you want to check the number of free master pointers.
  8785.  
  8786. æKY CheckReserve
  8787. æD FUNCTION CheckReserve: BOOLEAN;
  8788. æFi UMemory 
  8789. æT PROCEDURE 
  8790. æC CheckReserve determines whether there is sufficient memory available for your 
  8791. application's low-memory and code-segment reserves. If the reserves are adequate, 
  8792. then this routine returns TRUE. If CheckReserve returns FALSE, your application 
  8793. may fail due to lack of memory necessary to load a segment or system resource. 
  8794. MacApp calls CheckReserve to test the adequacy of the low-memory and segment 
  8795. reserves; reasons for this include verifying the success of a routine that creates 
  8796. such a reserve and verifying failure as a means of gracefully exiting such a 
  8797. call. You can use CheckReserve in a similar fashion. 
  8798.  
  8799. æKY CheckRsrcUsage
  8800. æD PROCEDURE CheckRsrcUsage;
  8801. æFi UMemory 
  8802. æT PROCEDURE 
  8803. æC CheckRsrcUsage determines whether the total size of the set of currently 
  8804. loaded resources exceeds the maximum value specified by gMaxLockedRsrc. If so, 
  8805. the value of gMaxLockedRsrc is set to the new maximum value. If gRsrcReport is 
  8806. TRUE, then the new maximum is reported in the Debug Transcript. If gMemMgtBreak 
  8807. is set to TRUE, this routine halts program execution. 
  8808. CheckRsrcUsage is used for debugging purposes only; MacApp calls it from the debugger 
  8809. in response to your Show Heap Information command. CheckRsrcUsage is also called from 
  8810. several other methods if the application is compiled with debugging code included. 
  8811.  
  8812. æKY CleanupMacApp
  8813. æD PROCEDURE CleanupMacApp;
  8814. æFi UMacApp.Globals 
  8815. æT PROCEDURE 
  8816. æC CleanupMacApp unpatches all traps patched by MacApp, terminates the application, 
  8817. removes the MacApp busy-cursor mechanism, and shuts down the debugger if that 
  8818. code is present. 
  8819. MacApp patches the toolbox trap ExitToShell to call CleanupMacApp when terminating an 
  8820. application. You never call this routine yourself. 
  8821.  
  8822. æKY ClearTheFPU
  8823. æD PROCEDURE ClearTheFPU;
  8824. æFi UMacApp.Globals 
  8825. æT PROCEDURE 
  8826. æC This routine is not yet documented; it is used internally by MacApp. You 
  8827. never need to call it yourself.
  8828.  
  8829. æKY ClickLoopForTTEView
  8830. æD FUNCTION ClickLoopForTTEView: BOOLEAN;
  8831. æFi UTEView 
  8832. æT PROCEDURE 
  8833. æC ClickLoopForTTEView forwards mouse-down events to the current TTEView object’s 
  8834. ClikLoop method. ClickLoopForTTEView always returns TRUE; if the events are 
  8835. processed by TTEView.ClikLoop, that method returns TRUE if the mouse button is 
  8836. still pressed when ClikLoop finishes executing. 
  8837. You usually do not need to call this routine yourself. 
  8838.  
  8839. æKY CloseFile
  8840. æD FUNCTION CloseFile(dataRefnum, rsrcRefnum: INTEGER): OSErr;
  8841. æFi UMacAppUtilities 
  8842. æT PROCEDURE 
  8843. æC CloseFile closes a file's data and resource forks. If it is successful, this 
  8844. routine returns noErr; otherwise it returns an error from the file system or the 
  8845. Resource Manager. 
  8846. The dataRefNum parameter is the reference number of the data fork to be closed. 
  8847. If the value of dataRefnum is kNoFileRefnum, the data fork is not closed.  Similarly, 
  8848. the rsrcRefnum parameter is the reference number of the resource fork to be closed; if 
  8849. the value of rsrcRefNum is kNoFileRefnum, the resource fork is not closed. 
  8850. MacApp calls CloseFile from several TDocument methods that manipulate files. You can 
  8851. use this routine to close either fork of an open file. Note that it is preferable to 
  8852. use the TDocument.Close method to close user documents, because it provides error 
  8853. checking and user alert messages that this routine does not provide. 
  8854.  
  8855. æKY ClrBreakCmd
  8856. æD PROCEDURE ClrBreakCmd;
  8857. æFi UDebug 
  8858. æT PROCEDURE 
  8859. æC ClrBreakCmd displays prompts in the MacApp debugger and clears the breakpoints 
  8860. specified by responses to the prompts. MacApp calls this routine in response to 
  8861. a Clear Breakpoints command entered in the MacApp debugger. 
  8862. This routine is used internally by MacApp; you never need to call it yourself. 
  8863.  
  8864. æKY CmdEnabled
  8865. æD FUNCTION CmdEnabled(cmd: CmdNumber): BOOLEAN;
  8866. æFi UMenuSetup 
  8867. æT PROCEDURE 
  8868. æC CmdEnabled returns TRUE if the specified command is enabled.  
  8869. The cmd parameter is the command number of the command being tested. 
  8870. MacApp calls CmdEnabled from TApplication.DoKeyCommand to filter out keyboard 
  8871. commands that are equivalent to disabled menu items. You can use this routine to 
  8872. determine whether a menu command is enabled. 
  8873.  
  8874.  
  8875. æKY CmdFromMenuItem
  8876. æD FUNCTION CmdFromMenuItem(menu, item: INTEGER): CmdNumber;
  8877. æFi UMenuSetup 
  8878. æT PROCEDURE 
  8879. æC CmdFromMenuItem returns the command number for the specified menu ID and item 
  8880. number. 
  8881. The menu parameter is the ID of the menu containing the specified command. 
  8882. The item parameter is the command's menu item number. If the item number is 
  8883. positive, CmdFromMenuItem searches the command table for the specified menu and 
  8884. item pair. If the pair is found, the corresponding command number in the table 
  8885. is returned. If the pair is not found, CmdFromMenuItem returns a number equal to 
  8886. -(256 * menu + item). If the item number is negative, this routine returns the 
  8887. negative value of the item. 
  8888. MacApp calls CmdFromMenuItem to obtain a command number that it passes to 
  8889. TApplication.DoMenuCommand when the user selects a menu item. DoMenuCommand then 
  8890. executes the command selected by the user. You usually do not need to call this routine 
  8891. yourself. 
  8892.  
  8893.  
  8894. æKY CmdToComponents
  8895. æD FUNCTION CmdToComponents(cmd: CmdNumber; VAR menuNo, itemNo: integer): MenuHandle;
  8896. æFi UMenuSetup 
  8897. æT PROCEDURE 
  8898. æC CmdToComponents calls CmdToMenuItem to get the menu ID and item number of the 
  8899. specified command, and returns the handle to the menu in which the command resides. 
  8900. If the specified command does not exist, this routine returns NIL. 
  8901. The cmd parameter is the command number of the command. The menuNo parameter 
  8902. contains the command’s menu ID when this routine returns. The itemNo parameter 
  8903. contains the command’s menu item number when this routine returns. If the command 
  8904. cannot be found, this routine sets the menuNo and itemNo parameters to zero when 
  8905. it returns.
  8906. MacApp calls CmdToComponents from methods that set up menus and enable or disable 
  8907. menu commands. You can use this routine to obtain a command’s menu number and 
  8908. item number.
  8909.  
  8910.  
  8911. æKY CmdToMenuItem
  8912. æD PROCEDURE CmdToMenuItem(aCmd: CmdNumber; VAR menu, item: INTEGER);
  8913. æFi UMenuSetup 
  8914. æT PROCEDURE 
  8915. æC CmdToMenuItem returns the menu ID and item number of the specified command. 
  8916. The aCmd parameter is the command number of the command whose menu ID and item 
  8917. number are to be returned. The menu parameter is the command's menu ID and the 
  8918. item parameter is the command's item number in the menu. If the value of aCmd is 
  8919. positive, CmdToMenuItem searches the command table and returns the menu ID and 
  8920. item number corresponding to aCmd. If the value of aCmd is not found, the menu 
  8921. and item parameters are both set to 0. If the value of aCmd is negative, the 
  8922. menu number is the upper 8 bits, and the item number the lower 8 bits, of the 
  8923. absolute value of aCmd. (Therefore, menu IDs must be less than or equal to 127 
  8924. and item numbers must be less than or equal to 255.) 
  8925. MacApp calls CmdToMenuItem from several global routines that implement command 
  8926. handling. You can call this routine when you need to obtain the nenu ID and item 
  8927. number for a specified command number. 
  8928.  
  8929. æKY CmdToName
  8930. æD PROCEDURE CmdToName(aCmd: CmdNumber; VAR menuText: Str255);
  8931. æFi UMenuSetup 
  8932. æT PROCEDURE 
  8933. æC CmdToName returns the specified command's menu item text. 
  8934. The aCmd parameter is the command number of the specified command. The menuText 
  8935. parameter contains the command's menu item text when the routine returns. 
  8936. MacApp calls CmdToName when creating the About menu item in the Apple menu if 
  8937. your application's About menu contains ^0' or when it customizes menu items such 
  8938. as Undo with the name of the command to be undone. This routine is also used by 
  8939. the MacApp debugger to report command names. You can use CmdToName in a similar 
  8940. fashion. 
  8941.  
  8942.  
  8943. æKY CompareStrings
  8944. æD FUNCTION CompareStrings(first, second: Str255): INTEGER;
  8945. æFi UMacAppUtilities 
  8946. æT PROCEDURE 
  8947. æC The CompareStrings routine ranks two strings based on which one comes first 
  8948. in an alphabetic list based on the ordering of the ASCII character set. 
  8949. The parameters first and second are the first and second strings to be compared, 
  8950. respectively. This routine returns -1 if the first string is ranked before the 
  8951. second string, zero if the two strings are identical, and 1 if the second string 
  8952. is ranked before the first string. 
  8953. MacApp calls CompareStrings from the global routine GetClassIDFromName; it compares 
  8954. the specified string to each item in a list of class names and returns the class 
  8955. ID of the string that matches the one specified. You can use this routine to 
  8956. sort two strings alphabetically or find a match for a specified string.
  8957.  
  8958.  
  8959. æKY ConcatNumber
  8960. æD FUNCTION ConcatNumber(aString: Str255; aNumber: LONGINT): Str255;
  8961. æFi UMacAppUtilities 
  8962. æT PROCEDURE 
  8963. æC ConcatNumber returns a string that is the concatenation of the specified 
  8964. string with a string value representing the specified number. 
  8965. The aString parameter is the string that is to be concatenated with the number. 
  8966. The aNumber parameter is a number that is to be appended to the string aString. 
  8967. MacApp most often calls ConcatNumber as a means of converting numeric values for 
  8968. display in the MacApp debugger. You can call this routine to convert numeric 
  8969. values to text strings. 
  8970.  
  8971.  
  8972. æKY ConfigRecFields
  8973. æD PROCEDURE ConfigRecFields(aTitle: Str255; VAR aConfigRec: ConfigRecord; 
  8974.   PROCEDURE DoToField(fieldName: Str255; fieldAddr:Ptr;
  8975.  fieldType: INTEGER));
  8976. æFi UMacAppUtilities 
  8977. æT PROCEDURE 
  8978. æC ConfigRecFields reports the contents of the configuration record's fields to 
  8979. the MacApp Inspector.
  8980. The aTitle parameter specifies the name of the configuration record to be shown 
  8981. in the Inspector and MacApp debugger. The aConfigRec parameter specifies the 
  8982. configuration record whose fields to be listed. DoToField is a procedure that 
  8983. MacApp passes to ConfigRecFields to report the contents of each field. ConfigRecFields 
  8984. iterates over all the configuration record's fields, performing DoToField on 
  8985. each one. In this way ConfigRecFields reports the contents of each field to the 
  8986. Inspector.
  8987. MacApp calls ConfigRecFields from the MacApp Inspector. You usually do not call 
  8988. this routine.
  8989.  
  8990.  
  8991. æKY CopyStr255
  8992. æD PROCEDURE CopyStr255(VAR fmStr: Str255; toAddr: UNIV Ptr);
  8993. æFi UMacAppUtilities 
  8994. æT PROCEDURE 
  8995. æC CopyStr255 copies a string to a specified address. The routine is more efficient 
  8996. than a direct assignment (myString := aString) because only the required bytes 
  8997. are copied rather than the whole array. 
  8998. The fmStr parameter is the string to be copied. The toAddr parameter is the 
  8999. address to which the string is copied. 
  9000. MacApp calls CopyStr255 when retrieving the contents of a static text field or a 
  9001. button. You can use CopyStr255 to copy string data to a specified destination 
  9002. address. 
  9003.  
  9004. æKY CurrentCursor
  9005. æD PROCEDURE CurrentCursor(VAR C: Cursor);
  9006. æFi UDebug 
  9007. æT PROCEDURE 
  9008. æC CurrentCursor returns a copy of the current cursor record.
  9009. The C parameter contains a copy of the current cursor record when this routine returns. 
  9010. MacApp never calls CurrentCursor; it is provided for your convenience. You can use it 
  9011. to obtain a copy of the current cursor record.
  9012.  
  9013. æKY DebugCanReadLn
  9014. æD FUNCTION DebugCanReadLn: BOOLEAN;
  9015. æFi UDebug 
  9016. æT PROCEDURE 
  9017. æC DebugCanReadLn returns TRUE if you can retrieve information with a ReadLn 
  9018. statement, usually from the Debug Transcript window. 
  9019. MacApp calls DebugCanReadLn from the global routine CanReadLn to see if debugging 
  9020. code has been configured in a way that allows the debugger to retrieve information 
  9021. from the transcript window. You usually do not need to call this routine yourself. 
  9022.  
  9023.  
  9024. æKY DebugCanWriteLn
  9025. æD FUNCTION DebugCanWriteLn: BOOLEAN;
  9026. æFi UDebug 
  9027. æT PROCEDURE 
  9028. æC DebugCanWriteLn returns TRUE if you can redirect the writeln statements to a 
  9029. window, usually the Debug Transcript window. 
  9030. MacApp calls this routine from the global routine CanWriteLn to see if debugging 
  9031. code has been configured in a way that allows the debugger to write to a window. 
  9032. You usually do not need to call this routine yourself. 
  9033.  
  9034. æKY DebugCapture
  9035. æD FUNCTION DebugCapture(captureProc: ProcPtr): ProcPtr;
  9036. æFi UDebug 
  9037. æT PROCEDURE 
  9038. æC DebugCapture installs an alternative capture procedure that is called for 
  9039. every call to the standard Pascal procedure WriteLn. The new capture procedure 
  9040. should have the same interface as TTranscriptView.AddText. You can set the value 
  9041. of gWrToWindow to FALSE if you want to inhibit output to the window. 
  9042. The captureProc parameter is a pointer to your alternate capture procedure. To 
  9043. remove the capture procedure, set the value of this parameter to NIL. 
  9044. MacApp calls this routine from the debugger. You can use it to install an alternative 
  9045. capture procedure for calls to the global routine DebugWriteLn.
  9046.  
  9047. æKY DebugEndForce
  9048. æD PROCEDURE DebugEndForce;
  9049. æFi UDebug 
  9050. æT PROCEDURE 
  9051. æC DebugEndForce stops debugging output from being forced to the Debug Transcript 
  9052. and log files. 
  9053. DebugEndForce is called by several global routines that interact with the MacApp 
  9054. debugger. You usually do not need to call this routine yourself. 
  9055.  
  9056.  
  9057. æKY DebugException
  9058. æD PROCEDURE DebugException(errorCode: INTEGER);
  9059. æFi UDebug 
  9060. æT PROCEDURE 
  9061. æC DebugException, if you compile with the debugging code installed, writes 
  9062. messages to the Debug Transcript for 68000 exceptions (code 901–910) and SysError 
  9063. calls. 
  9064. The errorCode parameter is the 68000 exception or SysError call that caused 
  9065. DebugException to be called.
  9066. This routine is called only by the Macintosh® system. You never need to call it 
  9067. yourself.
  9068.  
  9069.  
  9070. æKY DebugFlag
  9071. æD PROCEDURE DebugFlag(flagAddr: PBOOLEAN; flagChar: CHAR; theActionProc: ProcPtr; 
  9072.   flagDesc: StringPtr); 
  9073. æFi UDebug 
  9074. æT PROCEDURE 
  9075. æC DebugFlag registers a Boolean flag for a specified external debugger command. 
  9076. The flagAddr parameter is the address of the flag. The flagChar parameter is the 
  9077. character you use in the debugger to switch the flag on or off. DebugFlag does 
  9078. not check for duplicate flag characters. The parameter theActionProc is a pointer 
  9079. to a procedure that changes the flag. This pointer can be set to NIL if no such 
  9080. procedure is necessary. The flagDesc parameter is a pointer to a string describing 
  9081. the flag. 
  9082. DebugFlag is called several times from the global routine InitUDebug to set up 
  9083. the standard set of commands for the MacApp debugger. You never call this routine 
  9084. yourself. 
  9085.  
  9086. æKY DebugForceOutput
  9087. æD PROCEDURE DebugForceOutput(DebugToWindow, DebugToFile: DebugForceOptions);
  9088. æFi UDebug 
  9089. æT PROCEDURE 
  9090. æC DebugForceOutput forces MacApp to write out diagnostic information to the 
  9091. Debug Transcript or to a log file. 
  9092. The DebugToWindow and DebugToFile parameters are options that allow you to use 
  9093. the Pascal WriteLn procedure for a window or a document, respectively. Valid 
  9094. values are forceOn, forceOff, and forceUnchanged. If the value of DebugToWindow 
  9095. is not forceUnchanged, MacApp sets the value of the field fWrToWindow to the 
  9096. Boolean value of the expressionDebugToWindow = WrForceOnThe DebugToFile parameter 
  9097. sets the value of fWrToFile similarly; if the value of DebugToFile is not 
  9098. forceUnchanged, MacApp sets the value of the field fWrToFile to the Boolean value 
  9099. of the expression DebugToFile = WrForceOn.
  9100. DebugForceOutput is called by several methods that interact with the MacApp 
  9101. debugger. You usually do not need to call this routine yourself. 
  9102.  
  9103. æKY DebugGetActiveDocument
  9104. æD FUNCTION DebugGetActiveDocument: TDocument;
  9105. æFi UDebug 
  9106. æT PROCEDURE 
  9107. æC DebugGetActiveDocument returns the document object associated with the application's 
  9108. active window, ignoring the Debug Transcript window even if it happens to  be 
  9109. active. 
  9110. DebugGetActiveDocument is called by the global routine InitUDebug when initializing 
  9111. the MacApp debugger. 
  9112.  
  9113.  
  9114. æKY DebugGetActiveWindow
  9115. æD FUNCTION DebugGetActiveWindow: TWindow;
  9116. æFi UDebug 
  9117. æT PROCEDURE 
  9118. æC DebugGetActiveWindow returns the TWindow object that is the application's 
  9119. active window, ignoring the Debug Transcript window even if it happens to be 
  9120. active. 
  9121. DebugGetActiveWindow is called by some of the MacApp global debugging 
  9122. routines. You usually do not need to call this routine yourself. 
  9123.  
  9124. æKY DebugGetLastCommand
  9125. æD FUNCTION DebugGetLastCommand: TCommand;
  9126. æFi UDebug 
  9127. æT PROCEDURE 
  9128. æC DebugGetLastCommand returns the TCommand object created to execute the most 
  9129. recent complex command if the application state has been saved in pSavedState; 
  9130. otherwise, this routine returns NIL. 
  9131. MacApp calls DebugGetLastCommand when initializing the MacApp debugger. This 
  9132. routine is intended for MacApp’s internal use; you never need to call it yourself.
  9133.  
  9134. æKY DebugGlobalHandle
  9135. æD PROCEDURE DebugGlobalHandle(globAddr: Ptr; theActionProc: ProcPtr; 
  9136.   globSym: PMAName);
  9137. æFi UDebug 
  9138. æT PROCEDURE 
  9139. æC DebugGlobalHandle registers the symbol name of a global variable that contains 
  9140. a handle. The letters in the name can be uppercase or lowercase. The value the 
  9141. global variable contains must be of type Handle. 
  9142. The globAddr parameter is the address of the variable to be registered. The 
  9143. parameter theActionProc is a pointer to a routine that can be called to derive 
  9144. the handle. The globSym parameter is a string that contains the name of the 
  9145. variable. 
  9146. MacApp calls DebugGlobalHandle from the global routine InitUDebug when initializing 
  9147. the MacApp debugger. You usually do not need to call this routine yourself. 
  9148.  
  9149.  
  9150. æKY DebugPerfMonitor
  9151. æD FUNCTION DebugPerfMonitor(turnOn: BOOLEAN): BOOLEAN;
  9152. æFi UDebug 
  9153. æT PROCEDURE 
  9154. æC DebugPerfMonitor turns MacApp’s performance-monitoring features on and off if 
  9155. they are installed. 
  9156. Set the turnOn parameter to TRUE if performance monitoring is to be enabled, and 
  9157. to FALSE if it is to be disabled. 
  9158. DebugPerfMonitor is called only in certain cases when the qDebug or qPerform 
  9159. compile switch is set to TRUE. You usually do not need to call this routine 
  9160. yourself. 
  9161.  
  9162. æKY DebugReadCh
  9163. æD FUNCTION DebugReadCh: CHAR;
  9164. æFi UDebug 
  9165. æT PROCEDURE 
  9166. æC DebugReadCh reads the command line input from the Debug Transript and returns 
  9167. it to the debugger. 
  9168. DebugReadCh is called by several global routines used to implement the MacApp 
  9169. debugger. You usually do not need to call this routine yourself. 
  9170.  
  9171. æKY DebugReadLn
  9172. æD FUNCTION DebugReadLn(buffer: Ptr; byteCount: INTEGER): Longint;
  9173. æFi UDebug 
  9174. æT PROCEDURE 
  9175. æC DebugReadLn reads characters from the Debug Transcript into a text buffer 
  9176. until it encounters a return or reads the number of bytes specified to the length 
  9177. of a single line. 
  9178. The buffer parameter is a pointer to the text buffer into which this routine 
  9179. stores characters. The byteCount parameter specifies the number of bytes in a 
  9180. single line of text. 
  9181. DebugReadLn is called once by the global routine InstallWriteLnHook when MacApp 
  9182. is setting up the debugger. You usually do not need to call this routine yourself. 
  9183.  
  9184.  
  9185. æKY DebugRedirect
  9186. æD FUNCTION DebugRedirect(vRefnum: INTEGER; fileName: StringPtr): OSErr;
  9187. æFi UDebug 
  9188. æT PROCEDURE 
  9189. æC DebugRedirect redirects the MacApp debugger’s diagnostic output to a specified 
  9190. file, returning an operating-system error to indicate success or failure. 
  9191. The vRefnum parameter is the volume reference number of the disk that contains 
  9192. the output file. The fileName parameter is a string that contains the pathname 
  9193. of the output file. 
  9194. MacApp calls this from TTranscriptView.Redirect when the user enables or terminates 
  9195. redirection of debug output. You usually do not need to call this routine yourself. 
  9196.  
  9197.  
  9198. æKY DebugShowTranscriptWindow
  9199. æD PROCEDURE DebugShowTranscriptWindow;
  9200. æFi UDebug 
  9201. æT PROCEDURE 
  9202. æC DebugShowTranscriptWindow opens the Debug Transcript window. 
  9203. MacApp calls DebugShowTranscriptWindow when the user enters the MacApp debugger 
  9204. while the Debug Transcript window is closed or chooses the Show Debug Window 
  9205. menu item. You usually do not need to call this routine yourself. 
  9206.  
  9207. æKY DebugTerminate
  9208. æD PROCEDURE DebugTerminate;
  9209. æFi UDebug 
  9210. æT PROCEDURE 
  9211. æC DebugTerminate shuts down and disables the MacApp Debugger. Once DebugTerminate 
  9212. is called the application can no longer open the Debug Transcript window or 
  9213. execute commands from the Debug menu. 
  9214. MacApp calls DebugTerminate from the global routine CleanupMacApp when it terminates 
  9215. an application that was compiled with debugging code included. You usually do 
  9216. not need to call this routine yourself. 
  9217.  
  9218.  
  9219. æKY DebugTranscriptWidth
  9220. æD FUNCTION DebugTranscriptWidth: INTEGER;
  9221. æFi UDebug 
  9222. æT PROCEDURE 
  9223. æC DebugTranscriptWidth returns the number of characters per line in the current 
  9224. transcript window. 
  9225. The MacApp debugger calls DebugTranscriptWidth from the global routine InspectField. 
  9226. You usually do not need to call this routine yourself. 
  9227.  
  9228. æKY DebugWriteLn
  9229. æD PROCEDURE DebugWriteLn(textBuf: Ptr; byteCount: INTEGER);
  9230. æFi UDebug 
  9231. æT PROCEDURE 
  9232. æC DebugWriteLn adds text to the debug view. 
  9233. The textBuf parameter is a pointer to the text to be added to the transcript 
  9234. view. The byteCount parameter is the number of bytes to be written from the text 
  9235. buffer. 
  9236. MacApp installs DebugWriteLn as the console device writeLn procedure from the 
  9237. global routine InstallWriteLnHook when opening an application compiled with 
  9238. debugging code included. You usually do not need to call this routine yourself. 
  9239.  
  9240.  
  9241. æKY DefaultSize
  9242. æD PROCEDURE DefaultSize(VAR theSize: INTEGER);
  9243. æFi UMacAppUtilities 
  9244. æT PROCEDURE 
  9245. æC The purpose of this routine is to convert a font size to portable form. The 
  9246. DefaultSize routine considers a font size of zero to be the portable equivalent 
  9247. to the system font size. 
  9248. The parameter theSize is the application's default font size. If theSize is 
  9249. equal to the system font size then this routine sets the parameter theSize to 0. 
  9250. Otherwise it is left unchanged. 
  9251. MacApp calls DefaultSize to accomplish part of the task of the global routine 
  9252. GetPortFontInfo. You can use this routine to compare your default font size with 
  9253. that of the system running the application. 
  9254.  
  9255.  
  9256. æKY DefineConfiguration
  9257. æD PROCEDURE DefineConfiguration(VAR configuration: ConfigRecord);
  9258. æFi UMacAppUtilities 
  9259. æT PROCEDURE 
  9260. æC DefineConfiguration gets information about the host machine's configuration 
  9261. and stores it in the configuration record. 
  9262. The configuration parameter is the configuration record. 
  9263. MacApp calls DefineConfiguration from the global routine DoRealInitToolBox when 
  9264. opening an application. You can access the current configuration in the global 
  9265. variable gConfiguration. 
  9266.  
  9267. æKY DeleteFile
  9268. æD FUNCTION DeleteFile(namePtr: StringPtr; volRefnum: INTEGER): OSErr;
  9269. æFi UMacAppUtilities 
  9270. æT PROCEDURE 
  9271. æC DeleteFile deletes the specified file and returns an operating system error 
  9272. indicating success or failure.
  9273. The namePtr parameter is a string pointer to the file's pathname. The volRefnum 
  9274. parameter is the volume reference number, which indicates the volume on which 
  9275. the file to be deleted resides. 
  9276. MacApp calls DeleteFile from several TDocument methods that manipulate files. 
  9277. You can call this routine to delete a specific file. 
  9278.  
  9279. æKY DevClose
  9280. æD FUNCTION DevClose(fdesc: IEFRefNum): Longint; C; EXTERNAL;
  9281. æFi UDebug 
  9282. æT PROCEDURE 
  9283. æC This routine is not yet documented; it is used internally by MacApp. You 
  9284. never need to call it yourself. 
  9285.  
  9286. æKY DevFAccess
  9287. æD FUNCTION DevFAccess(fName: UNIV IEFilePathPtr; opCode: Longint;
  9288. arg: UNIV Longint): Longint; C; EXTERNAL;
  9289. æFi UDebug 
  9290. æT PROCEDURE 
  9291. æC This routine is not yet documented; it is used internally by MacApp. You 
  9292. never need to call it yourself.
  9293.  
  9294. æKY DevIoctl
  9295. æD FUNCTION DevIoctl(fdesc: IEFRefNum; request: Longint; 
  9296.   arg: UNIV Longint): Longint; C; EXTERNAL;
  9297. æFi UDebug 
  9298. æT PROCEDURE 
  9299. æC This routine is not yet documented; it is used internally by MacApp. You 
  9300. never need to call it yourself.
  9301.  
  9302. æKY DevRead
  9303. æD FUNCTION DevRead(fdesc: IEFRefNum; bufp: UNIV Longint; 
  9304.   count: Longint): Longint; C; EXTERNAL;
  9305. æFi UDebug 
  9306. æT PROCEDURE 
  9307. æC This routine is not yet documented; it is used internally by MacApp. You 
  9308. never need to call it yourself. 
  9309.  
  9310. æKY DevWrite
  9311. æD FUNCTION DevWrite(fdesc: IEFRefNum; bufp: UNIV Longint; 
  9312.   count: Longint): Longint; C; EXTERNAL;
  9313. æFi UDebug 
  9314. æT PROCEDURE 
  9315. æC This routine is not yet documented; it is used internally by MacApp. You 
  9316. never need to call it yourself. 
  9317.  
  9318. æKY DisciplineMethodCalls
  9319. æD FUNCTION DisciplineMethodCalls(discipline: BOOLEAN): BOOLEAN;
  9320. æFi UObject 
  9321. æT PROCEDURE 
  9322. æC DisciplineMethodCalls turns method discipline on and off. Method discipline 
  9323. is a MacApp feature that verifies that the object being dispatched against is 
  9324. actually an object. 
  9325. Set the discipline parameter to TRUE if method discipline is to be turned on; 
  9326. set it to FALSE if method discipline is to be turned off. 
  9327. MacApp calls DisciplineMethodCalls from the global routine InitUDebug when setting 
  9328. up the MacApp debugger and from the global routine WithHideFromMacAppDo when 
  9329. method discipline is enabled. You usually do not need to call this routine yourself. 
  9330.  
  9331.  
  9332. æKY DisposeIfHandle
  9333. æD FUNCTION DisposeIfHandle(aHandle: UNIV Handle): Handle;
  9334. æFi UMacAppUtilities 
  9335. æT PROCEDURE 
  9336. æC DisposeIfHandle disposes of the specified handle only if it is not NIL or not 
  9337. a resource handle; this routine is identical to the global routine DisposIfHandle 
  9338. except that this routine also returns a NIL handle for the convenience of the 
  9339. caller. 
  9340. The aHandle parameter is the handle to be freed. 
  9341. MacApp calls this routine whenever a handle is to be freed. You can use this 
  9342. routine to dispose of a handle. 
  9343.  
  9344. æKY DisposeIfPtr
  9345. æD FUNCTION DisposeIfPtr(aPtr: UNIV Ptr): Ptr;
  9346.  
  9347. æFi UMacAppUtilities 
  9348. æT PROCEDURE 
  9349. æC DisposeIfPtr disposes of the specified pointer only if it is not NIL; this 
  9350. routine is identical to the global routine DisposIfPtr except that this routine 
  9351. returns a NIL pointer for the convenience of the caller. 
  9352. The aPtr parameter is the pointer to be freed. 
  9353. You can use this routine to dispose of a pointer. 
  9354.  
  9355. æKY DisposIfHandle
  9356. æD PROCEDURE DisposIfHandle(aHandle: UNIV Handle);
  9357. æFi UMacAppUtilities 
  9358. æT PROCEDURE 
  9359. æC DisposIfHandle disposes of the specified handle only if it is not NIL. 
  9360. The aHandle parameter is the handle to be freed. 
  9361. MacApp calls this routine from several methods that free memory. You can use 
  9362. this routine to dispose of a handle.
  9363.  
  9364. æKY DisposIfPtr
  9365. æD PROCEDURE DisposIfPtr(aPtr: UNIV Ptr);
  9366. æFi UMacAppUtilities 
  9367. æT PROCEDURE 
  9368. æC DisposIfPtr calls DisposeIfPtr to dispose of the specified pointer only if it 
  9369. is not NIL. 
  9370. The aPtr parameter is the pointer to be freed. 
  9371. You can use this routine to dispose of a pointer. 
  9372.  
  9373. æKY DoChangeReserve
  9374. æD PROCEDURE DoChangeReserve(alter: BOOLEAN; VAR codeReserve, codeShort, 
  9375.   lowSpaceReserve: LONGINT; VAR gotCode, gotLowSpace: BOOLEAN); 
  9376. æFi UMemory 
  9377. æT PROCEDURE 
  9378. æC DoChangeReserve changes the size and possibly the location of the MacApp 
  9379. code-segment reserve in memory. 
  9380. The value of the alter parameter is TRUE if the code reserve is to be changed. 
  9381. The codeReserve parameter contains the old address of the reserve when the routine 
  9382. is called, and contains the address of the new reserve when it returns. The 
  9383. codeShort parameter specifies the amount of RAM by which the reserve fell short 
  9384. if the full amount requested could not be allocated. The lowSpaceReserve parameter 
  9385. contains the old address of the low-space reserve when the routine is called, 
  9386. and contains the address of the new reserve when it returns. The routine returns 
  9387. TRUE for the parameters gotCode and gotLowSpace if the routine was able to allocate 
  9388. new reserves. 
  9389. DoChangeReserve is called by the MacApp debugger. You usually do not need to 
  9390. call this routine yourself. 
  9391.  
  9392.  
  9393. æKY DoFailure
  9394. æD PROCEDURE DoFailure(pf: FailInfoPtr); EXTERNAL;
  9395. æFi UFailure 
  9396. æT PROCEDURE 
  9397. æC This routine is not yet documented; it is used internally by MacApp. You 
  9398. never need to call it yourself. 
  9399.  
  9400. æKY DoInitUMacApp
  9401. æD PROCEDURE DoInitUMacApp;
  9402. æFi UMacApp 
  9403. æT PROCEDURE 
  9404. æC DoInitUMacApp initializes MacApp, sets the values of several MacApp global 
  9405. variables, and calls a few low-level routines when the application starts up.
  9406. MacApp calls DoInitUMacApp when your application calls InitUMacApp. You never 
  9407. need to call DoInitUMacApp yourself.
  9408.  
  9409. æKY DoInitUMemory
  9410. æD PROCEDURE DoInitUMemory(VAR sizeTempReserve, sizeLowSpaceReserve: Size);
  9411. æFi UMemory 
  9412. æT PROCEDURE 
  9413. æC DoInitUMemory does most of the actual work of initializing MacApp memory 
  9414. management. It sets memory management globals, computes the sizes of the grow 
  9415. zone and the code reserve, creates a list of code segment handles, and sets the 
  9416. size of the stack.  
  9417. The sizeTempReserve parameter contains the size of the code reserve when this 
  9418. routine returns. The sizeLowSpaceReserve parameter contains the size of the 
  9419. low-space reserve when this routine returns. 
  9420. MacApp calls DoInitUMemory from the global routine InitUMemory so that InitUMemory 
  9421. can be in the main segment and this code can be in another segment. You usually 
  9422. do not need to call this routine yourself. 
  9423.  
  9424. æKY DoneViewRsrc
  9425. æD PROCEDURE DoneViewRsrc(viewRsrc: UNIV Handle; lastPtr: UNIV LONGINT);
  9426. æFi UMacApp 
  9427. æT PROCEDURE 
  9428. æC DoneViewRsrc reduces the size of the specified handle to the proper length, 
  9429. according to the value of the lastPtr parameter. 
  9430. The viewRsrc parameter is a handle to a 'view' resource that is being created 
  9431. from a template; it is the handle to be resized. The lastPtr parameter is the 
  9432. address of the next template entry. 
  9433. MacApp does not call this routine; it is provided for your convenience. 
  9434. You can call it to optimize the size of 'view' resources.
  9435.  
  9436. æKY DoneWithTempRgn
  9437. æD PROCEDURE DoneWithTempRgn;
  9438. æFi UMacApp 
  9439. æT PROCEDURE 
  9440. æC DoneWithTempRgn indicates that the variable gTempRgn is no longer in use. Use 
  9441. of this routine and its counterpart, the global routine UseTempRgn, ensures that 
  9442. two routines do not try to use gTempRgn at the same time. 
  9443. MacApp calls DoneWithTempRgn after it finishes using gTempRgn. You can use this 
  9444. routine in a similar fashion. Since this routine calls the global routine ProgramBreak, 
  9445. you can call this only if the value of the qDebug flag is TRUE. 
  9446.  
  9447. æKY DoRealInitToolBox
  9448. æD PROCEDURE DoRealInitToolBox;
  9449. æFi UMacAppUtilities 
  9450. æT PROCEDURE 
  9451. æC DoRealInitToolBox does the actual work of initializing the Toolbox after the 
  9452. global routine InitToolBox ensures that there is enough memory to do so.
  9453. MacApp calls DoRealInitToolBox from the global routine InitToolBox so that InitToolBox 
  9454. can be in the main segment and this code can be in another segment. You never 
  9455. call this routine yourself. 
  9456.  
  9457. æKY DoShowAboutAppFilter
  9458. æD FUNCTION DoShowAboutAppFilter(theDialog: DialogPtr; VAR theEvent: EventRecord; 
  9459.   VAR itemHit: INTEGER): BOOLEAN; 
  9460. æFi UMacApp 
  9461. æT PROCEDURE 
  9462. æC DoShowAboutAppFilter filters out all events except those caused by the Return 
  9463. or Enter keystrokes that cause the About box to be dismissed. 
  9464. The parameter theDialog is a pointer to the specified dialog box's item list. 
  9465. The parameter theEvent is the event in the Toolbox event record that caused this 
  9466. routine to be called. The itemHit parameter specifies the control that was selected 
  9467. in the dialog box; in the About box, it is is usually a click on the OK button 
  9468. that dismisses the About box. 
  9469. The Dialog Manager calls DoShowAboutAppFilter when displaying the application's 
  9470. About box in TApplication.DoShowAboutApp. You never call this routine yourself. 
  9471.  
  9472. æKY DoToSubView
  9473. æD PROCEDURE DoToSubView(view: TView);
  9474. æFi UDebug 
  9475. æT PROCEDURE 
  9476. æC DoToSubView adds a view and its subviews to the Inspector's list of active 
  9477. objects. 
  9478. The view parameter is the view to be added to the Inspector list. 
  9479. MacApp calls DoToSubView to add the Debug Transcript to the Inspector only when 
  9480. the qDebugTheDebugger flag is set to TRUE. You usually do not need to call this 
  9481. routine yourself. 
  9482.  
  9483. æKY DoWaiting
  9484. æD PROCEDURE DoWaiting;
  9485. æFi UDebug 
  9486. æT PROCEDURE 
  9487. æC DoWaiting handles key-down events from the MacApp debugger's command line, 
  9488. executing the proper code in response to debugger commands. 
  9489. DoWaiting is called from the global routine MADebuggerMainEntry when the debugger 
  9490. is activated. You usually do not need to call this routine yourself. 
  9491.  
  9492.  
  9493. æKY DumpTERecord
  9494. æD PROCEDURE DumpTERecord(aTEH: TEHandle);
  9495. æFi UTEView 
  9496. æT PROCEDURE 
  9497. æC DumpTERecord displays salient information about the TERecord in the Debug 
  9498. Transcript. 
  9499. The aTEH parameter is a handle to the TERecord object.
  9500. MacApp calls this routine from TTECutCopyCommand.DoIt if the values of qDebugging 
  9501. and pTEIntenseDebugging are both TRUE. You can use this routine to debug routines 
  9502. that use the TERecord. 
  9503.  
  9504.  
  9505. æKY DumpTTECommand
  9506. æD PROCEDURE DumpTTECommand(theTTECommand: TTECommand);
  9507. æFi UTEView 
  9508. æT PROCEDURE 
  9509. æC DumpTTECommand displays information about a specified TTECommand object in 
  9510. the Debug Transcript. 
  9511. The parameter theTTECommand is the command object that the information pertains to. 
  9512. DumpTTECommand is called by a variety of methods in classes TTETypingCommand, 
  9513. TTECommand, TTEStyleCommand, and TTECutCopyCommand when the qDebug flag is set 
  9514. to TRUE. You can call this routine to debug text-editing commands. 
  9515.  
  9516.  
  9517. æKY EachClassDo
  9518. æD PROCEDURE EachClassDo(PROCEDURE DoToClass(theClass: ObjClassId));
  9519. æFi UObject 
  9520. æT PROCEDURE 
  9521. æC EachClassDo performs the procedure DoToClass once for each class defined in 
  9522. the  application. 
  9523. DoToClass is a procedure that is defined separately. It can have any name, but 
  9524. must accept the argument specified in the interface to EachClassDo. The parameter 
  9525. theClass is bound to each class on which the procedure passed in DoToClass is to 
  9526. operate. 
  9527. EachClassDo is called by MacApp when it needs to perform an action on all of an 
  9528. application's classes. You can use this routine in a similar fashion. 
  9529.  
  9530.  
  9531. æKY EachFailureHandlerDo
  9532. æD PROCEDURE EachFailureHandlerDo(PROCEDURE DoToHandler(fiPtr: FailInfoPtr));
  9533. æFi UFailure 
  9534. æT PROCEDURE 
  9535. æC EachFailureHandlerDo calls DoToHandler for each failure handler in the linked 
  9536. list of failure handlers from gTopHandler to the outermost handler. 
  9537. The DoToHandler procedure is a procedure you define that takes a single parameter 
  9538. of type FailInfoPtr as its argument. It can have any name, but must accept the 
  9539. argument specified in the interface to EachFailureHandlerDo. The fiPtr parameter 
  9540. is a pointer to a record of type FailInfoPtr that contains information used by 
  9541. the exception-handling mechanism. The fiPtr parameter is bound to each handler 
  9542. on which the procedure passed in DoToHandler is to operate. The FailInfoPtr 
  9543. record type is defined in the unit UFailure.p. 
  9544. EachFailureHandlerDo is called by the global routine HandlerExists when testing 
  9545. the validity of failure handlers. You usually do not need to call this routine 
  9546. yourself. 
  9547.  
  9548.  
  9549. æKY EachFrameDo
  9550. æD PROCEDURE EachFrameDo(calleeFrame, ppc: Longint; 
  9551.   PROCEDURE DoToFrame(calleeFrame: Longint; ppc: Longint; callerFrame: Longint;  
  9552.     itsFrame: Longint)); 
  9553. æFi UDebug 
  9554. æT PROCEDURE 
  9555. æC EachFrameDo calls the procedure DoToFrame once for each frame on the stack. 
  9556. DoToFrame is a procedure that you define separately. It can have any name, but 
  9557. must accept the argument specified in the interface to EachFrameDo. The calleeFrame 
  9558. parameter is the frame on which DoToFrame operates. This parameter is bound to 
  9559. each frame on which the procedure passed in DoToFrame is to operate. The ppc 
  9560. parameter is the current address in the program counter register. The callerFrame 
  9561. parameter is the stack frame from which this routine was called. The itsFrame 
  9562. parameter is a counter that this routine uses to determine when it has iterated 
  9563. over all of the frames in the stack. 
  9564. EachFrameDo is called by the global routine UnloadAllSegments only when the 
  9565. qDebug flag is set to TRUE. You can use it to perform an operation on every 
  9566. frame in the stack.
  9567.  
  9568. æKY EachMenuDo
  9569. æD PROCEDURE EachMenuDo(PROCEDURE DoToMenu(aMenuHandle: MenuHandle; 
  9570.   isHierarchical: Boolean); includeHierarchical: Boolean);
  9571. æFi UMenuSteup 
  9572. æT PROCEDURE 
  9573. æC EachMenuDo calls DoToMenu for each menu that has an ID in the range 0 to 
  9574. mLastMenu (in MacApp 2.0, mLastMenu is equal to 63), including hierarchical and 
  9575. pop-up menus if specified. This routine handles the Debug menu as a special 
  9576. case. 
  9577. DoToMenu is a procedure that you define separately. It can have any name, but 
  9578. must accept the argument specified in the interface to EachMenuDo. The aMenuHandle 
  9579. parameter is bound to each menu handle on which the procedure passed in DoToMenu 
  9580. is to operate. The isHierarchical parameter is used to indicate to your DoToMenu 
  9581. routine that the menu is a hierarchical or pop-up menu. If the value of the 
  9582. includeHierarchical parameter is to TRUE, EachMenuDo includes hierarchical and 
  9583. pop-up menus in its iteration over all menu handles. 
  9584. EachMenuDo is called by the global routine PerformMenuSetup when the state of 
  9585. the menus changes. You usually do not need to call this routine yourself.  
  9586.  
  9587. æKY EachPatchDo
  9588. æD PROCEDURE EachPatchDo (FUNCTION DoToPatch(thePatchPtr: TrapPatchPtr): BOOLEAN);
  9589. æFi UPatch 
  9590. æT PROCEDURE 
  9591. æC EachPatchDo performs the DoToPatch function on each patch in the trap patch 
  9592. list. 
  9593. The DoToPatch function is a function you define that can have any name, but 
  9594. must take a single parameter of type TrapPatchPtr as its argument. The DoToPatch 
  9595. function should return TRUE when EachPatchDo should exit. The parameter thePatchPtr 
  9596. is a pointer to the trap patch list. 
  9597. You never need to call this routine yourself.
  9598.  
  9599. æKY EachSubClassDo
  9600. æD PROCEDURE EachSubClassDo(testClass: ObjClassId; 
  9601.   PROCEDURE DoToClass(theClass: ObjClassId));
  9602. æFi UObject 
  9603. æT PROCEDURE 
  9604. æC EachSubClassDo calls the procedure DoToClass once for each subclass of the 
  9605. specified class. 
  9606. The testClass parameter is the class whose subclasses are to be processed. DoToClass 
  9607. is a procedure that you define separately. It can have any name, but must accept 
  9608. the argument specified in the interface to this routine. The parameter theClass 
  9609. is bound to each class on which the procedure passed in DoToClass is to operate. 
  9610. EachSubClassDo is called by TObject.ForAllSubClassesDo when MacApp needs to 
  9611. perform an operation on all classes defined in an application. (Remember, all 
  9612. classes are descended from TObject.) You can use this routine in similar fashion. 
  9613.  
  9614. æKY EachSuperClassDo
  9615. æD PROCEDURE EachSuperClassDo(testClass: ObjClassId; 
  9616.   PROCEDURE DoToClass(theClass: ObjClassId));
  9617. æFi UObject 
  9618. æT PROCEDURE 
  9619. æC EachSuperClassDo calls the procedure DoToClass once for each superclass of 
  9620. the specified class. 
  9621. The testClass parameter specifies the class whose superclasses are to be processed. 
  9622. DoToClass is a procedure that is defined separately. It can have any name, but 
  9623. must accept the argument specified in the interface to this routine. The parameter 
  9624. theClass is bound to each class on which the procedure passed in DoToClass is to 
  9625. operate. 
  9626. EachSuperClassDo is called by TObject.ForAllSuperClassesDo when MacApp needs to 
  9627. perform an operation on all of a class's superclasses. You can use this routine 
  9628. in a similar fashion. 
  9629.  
  9630.  
  9631. æKY EachWMgrWindowDo
  9632. æD PROCEDURE EachWMgrWindowDo(PROCEDURE DoToWMgrWindow(theWMgrWindow: WindowPtr));
  9633. æFi UMacAppUtilities 
  9634. æT PROCEDURE 
  9635. æC EachWMgrWindowDo performs the DoToWMgrWindow procedure on each Window Manager 
  9636. window in the window list, starting at the frontmost window. 
  9637. The parameter theWMgrWindow is typically a pointer to the Window Manager window 
  9638. associated with a TWindow object, but the windows in the window list do not have 
  9639. to be MacApp windows. DoToWMgrWindow is a procedure that you define separately. 
  9640. It can have any name, but must accept the argument specified in the interface to 
  9641. EachWMgrWindowDo. The parameter theWMgrWindow is bound to each window pointer on 
  9642. which the procedure passed in DoToWMgrWindow is to operate. 
  9643. EachWMgrWindowDo is called by several methods that manage windows. You can call 
  9644. this routine when you wish to perform some operation on all of the windows in 
  9645. the window list. 
  9646.  
  9647.  
  9648. æKY EmptyVRect
  9649. æD FUNCTION EmptyVRect(r: VRect): BOOLEAN;
  9650. æFi UViewCoords 
  9651. æT PROCEDURE 
  9652. æC EmptyVRect returns TRUE if the specified view rectangle is empty. 
  9653. The r parameter is the view rectangle to be tested. 
  9654. MacApp does not call this utility routine; it is provided for your convenience. 
  9655. You can call it to determine if a specified view rectangle is empty.The r parameter 
  9656. is the view rectangle to be tested. 
  9657.  
  9658.  
  9659. æKY Enable
  9660. æD PROCEDURE Enable(aCmd: CmdNumber; canDo: BOOLEAN);
  9661. æFi UMenuSetup 
  9662. æT PROCEDURE 
  9663. æC The Enable routine enables menu items for commands that can be executed at 
  9664. the time the routine is called; it disables them if the command cannot be executed. 
  9665. The aCmd parameter is the command number whose menu item is to be enabled or 
  9666. disabled. The value of the canDo parameter is TRUE if the command can be executed 
  9667. when Enable is called, or FALSE if not. 
  9668. Enable is called from several command-handling and menu-setup routine. You usually 
  9669. call this routine in your overrides of DoSetupMenus to enable menu items that 
  9670. can be executed. 
  9671.  
  9672. æKY EnableCheck
  9673. æD PROCEDURE EnableCheck(aCmd: CmdNumber; canDo, checkIt: BOOLEAN);
  9674. æFi UMenuSetup 
  9675. æT PROCEDURE 
  9676. æC EnableCheck enables menu items for commands that can be executed at the time 
  9677. the routine is called; it disables them if the command cannot be executed. This 
  9678. routine places a check mark to the left of enabled items if the checkIt parameter 
  9679. is TRUE. 
  9680. The aCmd parameter is the command number whose menu item is to be enabled or 
  9681. disabled. The value of the canDo parameter is TRUE if the command can be executed 
  9682. when EnableCheck is called. The checkIt parameter is TRUE if the command is to 
  9683. be marked with a check. 
  9684. EnableCheck is called from TApplication.SetupTheMenus when the qDebug flag is 
  9685. TRUE; it places a check mark next to currently enabled features in the Debug 
  9686. menu. This routine is also used to place a check mark next to the Show Breaks 
  9687. item in the Print menu when appropriate. You usually call this routine in your 
  9688. overrides of DoSetupMenus to enable and place a check mark by menu items that 
  9689. can be executed. 
  9690.  
  9691. æKY EntDebugger
  9692. æD PROCEDURE EntDebugger(entering: BOOLEAN)
  9693. æFi UMacApp 
  9694. æT PROCEDURE 
  9695. æC EntDebugger is used internally by the MacApp debugger when entering or exiting 
  9696. a routine. 
  9697. The entering parameter has a value of TRUE when the debugger is entering a routine; 
  9698. it is FALSE when the debugger is exiting a routine. 
  9699. EntDebugger is called from the global routine DoInitUMacApp as part of the 
  9700. initialization of the UDebug unit. You usually do not need to call this routine 
  9701. yourself. 
  9702.  
  9703.  
  9704. æKY EnterMacAppDebugger
  9705. æD PROCEDURE EnterMacAppDebugger;
  9706. æFi UDebug 
  9707. æT PROCEDURE 
  9708. æC EnterMacAppDebugger halts execution of the application and passes control to 
  9709. the MacApp debugger. 
  9710. EnterMacAppDebugger is called by several MacApp methods that work with the debugger, 
  9711. such as the global routine ProgramBreak and Assertion. You can use this routine 
  9712. in a similar fashion, but it is generally better to use ProgramBreak instead.
  9713.  
  9714.  
  9715. æKY EqualBlocks
  9716. æD FUNCTION EqualBlocks(first, second: UNIV Ptr; theSize: INTEGER): Boolean;
  9717. æFi UMacAppUtilities 
  9718. æT PROCEDURE 
  9719. æC EqualBlocks returns TRUE if the two blocks specified are equal over the specified 
  9720. byte range. 
  9721. The parameters first and second are pointers to the first and second blocks to 
  9722. be compared, respectively. The parameter theSize specifies a byte range over 
  9723. which the two blocks are to be compared. 
  9724. MacApp calls EqualBlocks to compare a text style to that already present in a 
  9725. text style record. You can call this routine to compare two blocks over a specified 
  9726. range. 
  9727.  
  9728. æKY EqualVPt
  9729. æD FUNCTION EqualVPt(pt1, pt2: VPoint): BOOLEAN;
  9730. æFi UViewCoords 
  9731. æT PROCEDURE 
  9732. æC EqualVPt returns TRUE if the two specified view points are the same point. 
  9733. The pt1 and pt2 parameters specify the view points to be compared. 
  9734. MacApp calls EqualVPoint for mouse-tracking and printing purposes. You can call 
  9735. it whenever you want to compare two points specified in view coordinates. 
  9736.  
  9737. æKY EqualVRect
  9738. æD FUNCTION EqualVRect(rectA, rectB: VRect): BOOLEAN;
  9739. æFi UViewCoords 
  9740. æT PROCEDURE 
  9741. æC EqualVRect performs a function similar to the Toolbox call EqualRect, except 
  9742. it operates on rectangles specified in view coordinates: It returns TRUE if the 
  9743. two specified view rectangles have identical boundary coordinates. 
  9744. The parameters rectA and rectB specify the rectangles to be compared.
  9745. You can call this routine to compare two view rectangles. 
  9746.  
  9747. æKY ErrorAlert
  9748. æD PROCEDURE ErrorAlert(err: OSErr; message: LongInt);
  9749. æFi UMacApp 
  9750. æT PROCEDURE 
  9751. æC ErrorAlert displays a standard alert box with your parameterized text; it 
  9752. displays a generic alert box with a numeric error code if there is no parameter 
  9753. text available. The message displayed in the alert box is based upon the err and 
  9754. message parameters, as described in the section on Error and failure handling in 
  9755. the MacApp 2.0 Cookbook. 
  9756. The err parameter is the operating-system error code that caused the alert box 
  9757. to be displayed. The message parameter specifies one of several MacApp constants 
  9758. that are returned in several common error situations. 
  9759. ErrorAlert is called by several MacApp error-handling methods. You can call it 
  9760. when you wish to display an alert box with an error message. 
  9761.  
  9762. æKY ExchangeHandles
  9763. æD PROCEDURE ExchangeHandles(VAR handle1, handle2: UNIV Handle);
  9764. æFi UDebug 
  9765. æT PROCEDURE 
  9766. æC ExchangeHandles exchanges the values of two handles; that is, when this routine 
  9767. returns, handle1 is equal to the value of handle2 and handle2 is equal to the 
  9768. original value of handle1. 
  9769. The handle1 parameter is the first handle to be exchanged. The handle2 parameter is 
  9770. the second handle to be exchanged.
  9771. ExchangeHandles is called by the global routine WithHideFromMacAppDo to exchange 
  9772. data in saved globals with data in gTempRgn. This routine is for internal use by 
  9773. MacApp; do not call it.
  9774.  
  9775. æKY ExitMacApp
  9776. æD PROCEDURE ExitMacApp;
  9777. æFi UMacApp 
  9778. æT PROCEDURE 
  9779. æC ExitMacApp terminates the application, removes MacApp trap patches, and then 
  9780. calls the Toolbox routine ExitToShell. 
  9781. MacApp does not call this routine. You usually do not need to call it yourself, 
  9782. because MacApp terminates the application when the user selects the Quit command. 
  9783. However, if for some reason you immediately want to dismiss the application, you 
  9784. can call this routine.
  9785.  
  9786. æKY ExpandPtr
  9787. æD FUNCTION ExpandPtr(viewRsrc: UNIV Handle; VAR p: UNIV LONGINT; 
  9788.   offset: LONGINT): Ptr;
  9789. æFi UMacApp 
  9790. æT PROCEDURE 
  9791. æC ExpandPtr increases the size of the specified 'view' resource if an increase 
  9792. is necessary for adding a new template. The view resource is increased by at 
  9793. least the value of kViewRsrcExpandAmt. 
  9794. The viewRsrc parameter specifies the resource whose size is to be increased. The 
  9795. p parameter is offset to point to the next available position for a new template; 
  9796. however, when the routine returns, p contains the value it had before it was 
  9797. updated. The offset parameter is the amount by which p is offset to arrive at 
  9798. its new value.  
  9799. ExpandPtr is called by several WRes methods as well as the global routine ExpandPtrWStr. 
  9800. You usually do not need to call this routine yourself.  
  9801.  
  9802.  
  9803. æKY ExpandPtrWStr
  9804. æD FUNCTION ExpandPtrWStr(viewRsrc: UNIV Handle; VAR p: UNIV LONGINT; 
  9805.   offset, len: LONGINT): Ptr;
  9806. æFi UMacApp 
  9807. æT PROCEDURE 
  9808. æC ExpandPtrWStr increases the size of the specified 'view' resource if if an 
  9809. increase is necessary for adding a new template that ends with a variable-length 
  9810. string. 
  9811. The view resource is increased by at least the value of kViewRsrcExpandAmt.The 
  9812. viewRsrc parameter specifies the resource whose size is to be increased. The p 
  9813. parameter is offset to point to the next available position for a new template; 
  9814. however, when the routine returns, p contains the value it had before it was 
  9815. updated. The offset parameter is the amount by which p is offset to arrive at 
  9816. its new value. The len parameter indicates the length of the variable-length 
  9817. string. 
  9818. ExpandPtr is called by several WRes methods. You usually do not need to call 
  9819. this routine yourself unless you are creating custom view templates. 
  9820.  
  9821.  
  9822. æKY FailMemError
  9823. æD PROCEDURE FailMemError;
  9824. æFi UFailure 
  9825. æT PROCEDURE 
  9826. æC FailMemErr calls the global routine Failure if the Toolbox routine MemError 
  9827. returns an error code other than noErr. 
  9828. FailMemErr is called by a variety of methods that directly affect memory. You 
  9829. can call this routine from your code to invoke the failure mechanism should your 
  9830. request for memory fail. 
  9831.  
  9832. æKY FailNewMessage
  9833. æD PROCEDURE FailNewMessage(error: INTEGER; oldMessage, newMessage: LONGINT);
  9834. æFi UFailure 
  9835. æT PROCEDURE 
  9836. æC FailNewMessage calls the global routine Failure with a new message instead of 
  9837. the previous message (or default message if there was no previous message.)  
  9838. The error parameter is the error code that corresponds to the failure conditions. 
  9839. The high word of the oldMessage parameter is a value that maps to a failure 
  9840. message in the standard list of operation strings (msgStrList) used by MacApp; 
  9841. if the value of oldMessage is 0, then the new message is used instead. Similarly, 
  9842. the high word of the newMessage parameter a value that maps to a failure message 
  9843. in msgStrList that is to be used as the new failure message. 
  9844. FailNewMessage is called from a variety of MacApp methods. You can call this 
  9845. routine to propagate the failure call in your failure handler with a new message. 
  9846.  
  9847.  
  9848. æKY FailNIL
  9849. æD PROCEDURE FailNIL(p: UNIV Ptr);
  9850. æFi UFailure 
  9851. æT PROCEDURE 
  9852. æC FailNIL calls the global routine Failure if the pointer passed to it has the 
  9853. value NIL. 
  9854. The p parameter is the pointer to be tested. 
  9855. MacApp calls FailNIL in a variety of memory-management situations, normally 
  9856. after allocating memory to ensure that the memory allocation was successful. You 
  9857. can call FailNIL from your code to test the validity of newly created pointers. 
  9858.  
  9859.  
  9860. æKY FailNILResource
  9861. æD PROCEDURE FailNILResource(r: UNIV Handle);
  9862. æFi UFailure 
  9863. æT PROCEDURE 
  9864. æC FailNILResource calls the global routine Failure if the specified resource 
  9865. handle has the value NIL. This routine calls Failure with either the error code 
  9866. returned by the Toolbox function ResError or the error code resNotFound if ResError 
  9867. is noErr.  
  9868. The r parameter is the resource handle to be tested. 
  9869. MacApp calls FailNILResource from methods that create views, obtain windows that 
  9870. are resources, initialize pop-up menus, and display print dialog boxes. You can 
  9871. call FailNILResource from your code to test the validity of newly created resource 
  9872. pointers. 
  9873.  
  9874.  
  9875. æKY FailNonObject
  9876. æD PROCEDURE FailNonObject(obj: UNIV TObject);
  9877. æFi UObject 
  9878. æT PROCEDURE 
  9879. æC FailNonObject calls the global routine Failure when the specified object is 
  9880. not a valid object. 
  9881. The obj parameter specifies the object to be tested. 
  9882. MacApp calls this routine from the object discipline dispatch mechanism, as well 
  9883. as from methods that manipulate objects directly and therefore require that 
  9884. those objects be valid. You can call this routine from your code when you need 
  9885. to test an object's validity. 
  9886.  
  9887.  
  9888. æKY FailNoReserve
  9889. æD PROCEDURE FailNoReserve;
  9890. æFi UMemory 
  9891. æT PROCEDURE 
  9892. æC FailNoReserve calls the global routine Failure when MacApp is unable to reserve 
  9893. memory for its low-memory and code-segment reserves. 
  9894. MacApp calls FailNoReserve from TTEView.MakeTERecord to ensure the availability 
  9895. of reserve space when MakeTERecord is creating a new text record. You can call 
  9896. this routine just after making significant memory allocations to ensure that 
  9897. there is sufficient memory to continue. 
  9898.  
  9899.  
  9900. æKY FailOSErr
  9901. æD PROCEDURE FailOSErr(error: INTEGER);
  9902. æFi UFailure 
  9903. æT PROCEDURE 
  9904. æC FailOSErr calls the global routine Failure if the specified error condition 
  9905. does not have the value noErr. 
  9906. MacApp calls FailOSError from numerous methods that make system calls that return 
  9907. an OSErr requiring failure handling. You can call this routine from your code 
  9908. when you wish to ensure graceful recovery from an operating-system error, while 
  9909. disregarding the noErr error code. 
  9910.  
  9911.  
  9912. æKY FailResError
  9913. æD PROCEDURE FailResError;
  9914. æFi UFailure 
  9915. æT PROCEDURE 
  9916. æC FailResError calls the global routine Failure if the ResError function does 
  9917. not return the value noErr. 
  9918. MacApp calls FailResError mostly from methods that access resources. You can 
  9919. call this routine from your code when you wish to ensure graceful recovery from 
  9920. a resource error, while disregarding the noErr error code. 
  9921.  
  9922.  
  9923. æKY FailSpaceIsLow
  9924. æD PROCEDURE FailSpaceIsLow;
  9925. æFi UMemory 
  9926. æT PROCEDURE 
  9927. æC FailSpaceIsLow calls the global routine Failure when MacApp is close to running 
  9928. out of memory as indicated by the global routine MemSpaceIsLow. 
  9929. MacApp calls FailSpaceIsLow in a variety of situations that change the application's 
  9930. memory requirements, such as when documents or desk accessories are being opened 
  9931. and when data is being cut or pasted. You can call this routine as a safeguard 
  9932. against operations whose memory requirements may exceed the amount of RAM available. 
  9933.  
  9934.  
  9935.  
  9936. æKY Failure
  9937. æD PROCEDURE Failure(error: INTEGER; message: LONGINT);
  9938. æFi UFailure 
  9939. æT PROCEDURE 
  9940. æC The Failure routine calls the topmost failure handler. 
  9941. The error parameter indicates the error condition that caused Failure to be 
  9942. called. The message parameter indicates the message that is to be displayed. 
  9943. MacApp calls Failure from numerous methods as a means of gracefully recovering 
  9944. from error conditions. You can use this routine in a similar fashion.
  9945.  
  9946.  
  9947. æKY FieldToString
  9948. æD PROCEDURE FieldToString(theData: Ptr; fieldType: INTEGER; 
  9949.   VAR theString: Str255); EXTERNAL; 
  9950. æFi UMacAppUtilities 
  9951. æT PROCEDURE 
  9952. æC FieldToString converts the specified data into a string representation. 
  9953. The parameter theData is a pointer to the data to be represented as a string. 
  9954. The fieldType parameter indicates the data's type. The parameter theString contains 
  9955. the string representation of the data when the routine returns. 
  9956. FieldToString is called by Inspector methods that represent objects as text 
  9957. strings in an Inspector window. You usually do not need to call this routine 
  9958. yourself.
  9959.  
  9960.  
  9961. æKY FileModDate
  9962. æD FUNCTION FileModDate(name: Str255; volRefnum: INTEGER): LONGINT;
  9963. æFi UMacAppUtilities 
  9964. æT PROCEDURE 
  9965. æC FileModDate returns the date the specified file was last modified; if an I/O 
  9966. error occurs, the routine returns 0. 
  9967. The name parameter is the pathname of the file whose modification date is to be 
  9968. returned. The volRefnum parameter is the reference number of the volume that 
  9969. contains the file. 
  9970. FileModDate is called by TDocument methods that set a document’s fModDate field. 
  9971. You can call this routine to obtain the date a file was last modified. 
  9972.  
  9973.  
  9974. æKY FillInDirID
  9975. æD FUNCTION FillInDirID(pb: HParmBlkPtr): OSErr;
  9976. æFi UMacAppUtilities 
  9977. æT PROCEDURE 
  9978. æC FillInDirID stores the directory ID of the working directory into the ioDirID 
  9979. field of the specified HFS parameter block. If HFS is not installed, FillInDirID 
  9980. sets the ioDirID field to 0.
  9981. The pb parameter is a pointer to the parameter block whose ioDirID field is to 
  9982. be modified. 
  9983. FillInDirID is called by several methods that directly manipulate files. You can 
  9984. use this routine in a similar fashion. After setting up your HParamBLockRec 
  9985. record, call FillInDirID to fill in the directory ID and then make the “H” form 
  9986. of the call (for example, PBHGetFInfo rather than PBGetFInfo). 
  9987.  
  9988. æKY FinderSegProc
  9989. æD PROCEDURE FinderSegProc;
  9990. æFi UMacApp.Globals 
  9991. æT PROCEDURE 
  9992. æC FinderSegProc is a null routine used to make the Finder™ segment resident 
  9993. when the user is printing or opening documents from the Finder. 
  9994. MacApp calls this routine from TApplication.Run when the user prints from the 
  9995. Finder. You usually do not need to call this routine yourself.
  9996.  
  9997. æKY FindWindowBefore
  9998. æD FUNCTION FindWindowBefore(theWindow: WindowPtr): WindowPtr;
  9999. æFi UMacAppUtilities 
  10000. æT PROCEDURE 
  10001. æC FindWindowBefore returns the window that precedes the specified window in the 
  10002. window list. This routine returns NIL if the specified window is frontmost or 
  10003. not found. 
  10004. The parameter theWindow is a pointer to the window that follows the window you 
  10005. want to find. 
  10006. FindWindowBefore is used by the MacApp debugger to find the application's frontmost 
  10007. window when the Debug Transcript window is frontmost on the screen. You can use 
  10008. this routine in a similar fashion. 
  10009.  
  10010.  
  10011. æKY ForceBusy
  10012. æD PROCEDURE ForceBusy;
  10013. æFi UBusyCursor 
  10014. æT PROCEDURE 
  10015. æC ForceBusy calls the global routine BusyReset with a value of 1 to display the 
  10016. watch cursor immediately and reset the value of the busy-cursor delay. 
  10017. MacApp uses ForceBusy when it initializes globals as an application is opened. 
  10018. You can call this routine whenever you need to display the watch cursor immediately. 
  10019.  
  10020.  
  10021.  
  10022. æKY FreeIfObject
  10023. æD PROCEDURE FreeIfObject(obj: TObject);
  10024. æFi UObject 
  10025. æT PROCEDURE 
  10026. æC FreeIfObject determines whether the specified value is a non-NIL object and, 
  10027. if so, calls the object’s Free method. 
  10028. The obj parameter is the object to be freed. 
  10029. MacApp calls this routine from a variety of methods that free active objects. 
  10030. You can use this routine in a similar fashion.
  10031.  
  10032.  
  10033. æKY FreeIfWMgrWindow
  10034. æD FUNCTION FreeIfWMgrWindow(w: WindowPtr; dispose: BOOLEAN): WindowPtr;
  10035. æFi UMacApp 
  10036. æT PROCEDURE 
  10037. æC FreeIfWMgrWindow can dispose of the specified window pointer or simply close 
  10038. the specified Window Manager window. As a convenience to the caller, this routine 
  10039. always returns a NIL window pointer. 
  10040. The w parameter is the pointer to the Window Manager window that is to be disposed 
  10041. of. Set the value of the dispose parameter to TRUE to free the specified Window 
  10042. Manager window; if you set the value of the dispose parameter to FALSE, this 
  10043. routine simply closes the Window Manager window. 
  10044. MacApp uses this routine to dispose of Window Manager windows for which no TWindow 
  10045. object has been created. You can use this routine in a similar fashion.
  10046.  
  10047.  
  10048. æKY FreeListIfObject
  10049. æD FUNCTION FreeListIfObject(list: TList): TList;
  10050. æFi UList 
  10051. æT PROCEDURE 
  10052. æC FreeListIfObject frees the specified TList object if it is not NIL; if the 
  10053. object is NIL, this routine does nothing. As a convenience to the caller, this 
  10054. routine always returns NIL.The list parameter specifies the TList object that is 
  10055. to be freed.
  10056. MacApp calls this routine from the Free methods of classes TAssociation, 
  10057. TDocument, and TInspector. You can use this routine to free TList objects.
  10058.  
  10059.  
  10060. æKY FreeObject
  10061. æD PROCEDURE FreeObject(obj: TObject);
  10062. æFi UObject 
  10063. æT PROCEDURE 
  10064. æC FreeObject determines whether the specified value is a non-NIL object and, if 
  10065. so, calls its Free method. This routine accomplishes exactly the same task as 
  10066. FreeIfObject; it has been included to allow backward compatibility with previous 
  10067. versions of MacApp. 
  10068. The obj parameter is the object to be freed. 
  10069. MacApp calls this routine from a variety of methods that free active objects. 
  10070. You can use this routine in a similar fashion.
  10071.  
  10072.  
  10073. æKY FreeWMgrWindow
  10074. æD PROCEDURE FreeWMgrWindow(w: WindowPtr; dispose: BOOLEAN);
  10075. æFi UMacApp 
  10076. æT PROCEDURE 
  10077. æC FreeWMgrWindow closes a Window Manager window. This routine also frees memory 
  10078. used by the window if instructed to do so. 
  10079. The w parameter is a pointer to the Window Manager window to be closed. If you 
  10080. set the value of the dispose parameter to TRUE, this routine frees the memory 
  10081. used by the window. 
  10082. FreeWMgrWindow is called by several methods that manipulate window objects. You 
  10083. can call this routine to dispose of a Window Manager window. 
  10084.  
  10085.  
  10086. æKY GetA5
  10087. æD FUNCTION GetA5: LONGINT; 
  10088. æFi UMacAppUtilities 
  10089. æT PROCEDURE 
  10090. æC Formerly named %_GetA5, the GetA5 routine returns the value of register A5. 
  10091. The address stored in register A5 is generally a pointer to the program's global 
  10092. area. 
  10093. MacApp calls GetA5 to obtain the immediate value of register A5, which is 
  10094. not always the same value as that returned by the GetCurrentA5 routine. 
  10095.  
  10096.  
  10097. æKY GetActualJustification
  10098. æD FUNCTION GetActualJustification(justification: INTEGER): INTEGER;
  10099. æFi UMacAppUtilities 
  10100. æT PROCEDURE 
  10101. æC GetActualJustification interprets the teJustSystem constant and returns a 
  10102. value of teJustLeft or teJustRight. 
  10103. The justification parameter has no meaning to this routine unless its value is 
  10104. teJustSystem; other values of justification are simply passed through this routine 
  10105. unaltered. 
  10106. MacApp calls this routine from methods that draw text, select text, or set text 
  10107. justification. You can use this routine to convert a teJustSystem constant to a 
  10108. value of teJustLeft or teJustRight.
  10109.  
  10110.  
  10111. æKY GetAndLoadWDefProc
  10112. æD FUNCTION GetAndLoadWDefProc(windowDefProc: Handle): Handle;
  10113. æFi UMacApp.TWindow 
  10114. æT PROCEDURE 
  10115. æC GetAndLoadWDefProc returns the actual address of the specified window definition 
  10116. procedure and loads the resource containing the procedure if it has been purged. 
  10117. The windowDefProc parameter is the handle to the specified window definition procedure. 
  10118. MacApp uses this routine to obtain the window definition procedure for the Window 
  10119. Manager window associated with a TWindow object. You can use this routine in a 
  10120. similar fashion. 
  10121.  
  10122.  
  10123. æKY GetCallersMethodName
  10124. æD PROCEDURE GetCallersMethodName(VAR s: MAName);
  10125. æFi UDebug 
  10126. æT PROCEDURE 
  10127. æC GetCallersMethodName retrieves the name of the last method called and stores 
  10128. it in the s parameter. 
  10129. The s parameter contains the retrieved method name when the routine returns. 
  10130. MacApp uses this routine when it needs to refer to the calling method—for instance, 
  10131. when indicating the last method called before the failure mechanism was invoked. 
  10132. You can use this routine in a similar fashion.
  10133.  
  10134. æKY GetClassID
  10135. æD FUNCTION GetClassID(obj: TObject): ObjClassId;
  10136. æFi UObject 
  10137. æT PROCEDURE 
  10138. æC GetClassID returns the identifier that corresponds to the specified object’s 
  10139. class. 
  10140. The obj parameter is the object whose class identifier is to be determined. 
  10141. MacApp calls GetClassID from a variety of methods that need to refer to objects 
  10142. by class identifier. You can use this routine in a similar fashion. 
  10143.  
  10144. æKY GetClassIDFromName
  10145. æD FUNCTION GetClassIDFromName(clName: MAName): ObjClassId;
  10146. æFi UObject 
  10147. æT PROCEDURE 
  10148. æC GetClassIDFromName returns the identifier that corresponds to the specified 
  10149. class name. 
  10150. The clName parameter is the name of the class whose identifier is to be determined. 
  10151. MacApp uses GetClassIDFromName in several methods that create and manipulate 
  10152. objects by name, such as TEvtHandler.CreateAView and the global routines 
  10153. NewObjectByClassName and RegisterStdType. You can call GetClassIDFromName when you
  10154. need the class identifier of an object for which you have a class name. 
  10155.  
  10156.  
  10157. æKY GetClassNameFromID
  10158. æD PROCEDURE GetClassNameFromID(classID: ObjClassId; VAR clName: MAName);
  10159. æFi UObject 
  10160. æT PROCEDURE 
  10161. æC GetClassNameFromID returns the class name that corresponds to the specified 
  10162. class identifier. 
  10163. The classID parameter is the identifier of the class whose name is to be found. 
  10164. When the routine returns, the clName parameter contains the class name corresponding 
  10165. to the specified class identifier. 
  10166. MacApp uses GetClassNameFromID in several methods that create and manipulate 
  10167. objects directly, such as the global routines NewObjectByClassId and OrderClassIdsByName. 
  10168. You can call GetClassNameFromID when you need the corresponding class name for a 
  10169. specified class identifier. 
  10170.  
  10171.  
  10172. æKY GetClassSizeFromId
  10173. æD FUNCTION GetClassSizeFromId(classID: ObjClassId): INTEGER;
  10174. æFi UObject 
  10175. æT PROCEDURE 
  10176. æC GetClassSizeFromId returns the size, in bytes, of an instance of the specified 
  10177. class. 
  10178. The classID parameter is the class identifier of the class whose instance size is 
  10179. to be determined. 
  10180. MacApp uses GetClassSizeFromId in several methods that return information about 
  10181. an object, such as TObject.GetClassSize and the global debugging routine 
  10182. VerboseIsObject. You can use this routine in a similar fashion. 
  10183.  
  10184.  
  10185. æKY GetCrsrBusy
  10186. æD FUNCTION GetCrsrBusy: SignedByte;
  10187.  
  10188. æFi ULoMem 
  10189. æT PROCEDURE 
  10190. æC GetCrsrBusy returns the state of the low memory CrsrBusy flag, a signed byte 
  10191. that indicates whether the cursor should be changed to a busy cursor. 
  10192. GetCrsrBusy is used by methods in the UBusyCursor unit to determine if the cursor 
  10193. is actively being moved by the user; if the cursor is moving, these methods do 
  10194. not alter it. You can call this routine to determine an opportune time to display 
  10195. the busy cursor. 
  10196.  
  10197.  
  10198. æKY GetCurJTOffset
  10199. æD FUNCTION GetCurJTOffset: INTEGER;
  10200. æFi ULoMem 
  10201. æT PROCEDURE 
  10202. æC GetCurJTOffset returns the offset from the A5 register to the beginning of 
  10203. the jump table. 
  10204. MacApp calls this routine from the global routine UnloadAllSegments. You can 
  10205. call this routine to get the size of the offset between A5 and the beginning of 
  10206. the jump table. 
  10207.  
  10208.  
  10209. æKY GetCurStackBase
  10210. æD FUNCTION GetCurStackBase: Ptr;
  10211. æFi ULoMem 
  10212. æT PROCEDURE 
  10213. æC GetCurStackBase returns a pointer to the current stack base. 
  10214. GetCurStackBase is called by MacApp debugger methods that display stack information 
  10215. and by the global routine SetStackSpace, which MacApp calls when opening an 
  10216. application. 
  10217. You can call this routine to obtain a pointer to the current stack base. 
  10218.  
  10219.  
  10220. æKY GetCurStackFramePtr
  10221. æD FUNCTION GetCurStackFramePtr: Ptr; 
  10222. æFi UMacAppUtilities 
  10223. æT PROCEDURE 
  10224. æC Formerly named %_GetA6, GetCurStackFramePtr returns the value of register A6, 
  10225. which is usually a pointer to the local stack frame. 
  10226. MacApp uses GetCurStackFramePtr to determine the caller's name when invoking a 
  10227. debugging routine. You can use this routine in a similar fashion.
  10228.  
  10229.  
  10230. æKY GetCurStackTop
  10231. æD FUNCTION GetCurStackTop: Ptr; 
  10232. æFi UMacAppUtilities 
  10233. æT PROCEDURE 
  10234. æC Formerly named %_GetA7, GetCurStackTop returns the value of register A7, 
  10235. which is usually a pointer to the top of the stack. 
  10236. The MacApp debugger uses GetCurStackTop when analyzing the stack. You can use 
  10237. this routine in a similar fashion.
  10238.  
  10239.  
  10240. æKY GetDirID
  10241. æD FUNCTION GetDirID(VAR vRefnum: INTEGER; VAR dirID: LONGINT): OSErr;
  10242. æFi UMacAppUtilities 
  10243. æT PROCEDURE 
  10244. æC GetDirID returns the directory ID of the working directory. If HFS is not 
  10245. installed, GetDirID returns a value of 0.
  10246. When the routine returns, the vRefnum parameter is the volume reference number 
  10247. of the volume that contains the working directory, and the dirID parameter is 
  10248. the directory ID of the working directory. 
  10249. GetDirID is called by TApplication.AlreadyOpen and the global routine FillInDirID. 
  10250. TApplication.AlreadyOpen uses the information GetDirID returns to provide an 
  10251. error code. FillInDirID uses the information GetDirID returns to fill in the 
  10252. ioDirID field of a specified HFS parameter block. You can call GetDirID to obtain 
  10253. the directory ID of the working directory. 
  10254.  
  10255.  
  10256. æKY GetErrTxt
  10257. æD FUNCTION GetErrTxt(errorCode: INTEGER): Str255;
  10258. æFi UDebug 
  10259. æT PROCEDURE 
  10260. æC GetErrTxt returns a string associated with the specified error code.
  10261. The errorCode parameter specifies the error code for which this routine returns a 
  10262. string.
  10263. GetErrTxt is called by the global routine DebugException. You usually do not 
  10264. need to call this routine yourself. 
  10265.  
  10266.  
  10267. æKY GetFileInfo
  10268. æD FUNCTION GetFileInfo(name: Str255; volRefnum: INTEGER; 
  10269.   VAR info: HParamBlockRec): OSErr;
  10270. æFi UMacAppUtilities 
  10271. æT PROCEDURE 
  10272. æC GetFileInfo returns the specified file's HFS parameter block record. This 
  10273. method also returns one of the following error codes:  
  10274. bdNamErr  Bad file name  
  10275. dirNFErr  Directory not found or incomplete pathname 
  10276. extFSErr  External file system 
  10277. fnfErr   File not found 
  10278. ioErr    I/O error 
  10279. nsvErr   No such volume 
  10280. paramErr  No default volume
  10281. The name parameter is a string specifying the file's name. The 
  10282. volRefnum parameter is the reference number of the volume that contains the 
  10283. file.  
  10284. GetFileInfo is called by several methods that manipulate documents, such 
  10285. as TDocument.Save, TDocument.DiskFileChanged, and the global routine FileModDate. 
  10286.  
  10287.  
  10288. æKY GetFocus
  10289. æD PROCEDURE GetFocus(VAR theFocusRec: FocusRec);
  10290. æFi UMacApp 
  10291. æT PROCEDURE 
  10292. æC GetFocus stores the current focus in a focus record. The focus record's clip 
  10293. region must be a valid region. 
  10294. The parameter theFocusRec contains the saved focus record when the routine returns. 
  10295. GetFocus is called by a variety of methods that save the current focus, perform 
  10296. an operation with a different focus, and then restore the saved focus. You can 
  10297. use it in a similar fashion. 
  10298.  
  10299.  
  10300. æKY GetFontNum
  10301. æD FUNCTION GetFontNum(fontName: Str255): INTEGER;
  10302. æFi UMacAppUtilities 
  10303. æT PROCEDURE 
  10304. æC GetFontNum returns the font number corresponding to the specified font name.  
  10305. The fontName parameter is a string specifying the name of the font whose font 
  10306. number is to be returned. If fontName has the value kSysFontName, this routine 
  10307. returns a result of 0. If fontName has the value kApplFontName, this routine 
  10308. returns a result of 1.  
  10309. MacApp calls GetFontNum when setting the font for certain views and controls. 
  10310. You can use this routine to obtain the font number of a font that has been specified 
  10311. by name. 
  10312.  
  10313.  
  10314. æKY GetFrameInfo
  10315. æD PROCEDURE GetFrameInfo(calleeFrame: Longint; ppc: Longint; 
  10316.   VAR callerFrame: Longint; VAR itsFrame: Longint; VAR itsReceiver: TObject; 
  10317.     VAR className: MAName; VAR procName: MAName; VAR rcvrHandle: HexAddress; 
  10318.       VAR rcvrClass: MAName; VAR theSegNum: INTEGER);
  10319. æFi UDebug 
  10320. æT PROCEDURE 
  10321. æC This routine is not yet documented; it is used internally by MacApp. You 
  10322. never need to call it yourself.
  10323.  
  10324.  
  10325. æKY GetFreeMastersCount
  10326. æD FUNCTION GetFreeMastersCount: Longint;
  10327. æFi UDebug 
  10328. æT PROCEDURE 
  10329. æC GetFreeMastersCount returns the number of free master pointers in the application 
  10330. heap zone. 
  10331. GetFreeMastersCount is called by methods of the MacApp debugger when you request 
  10332. a report of the master pointer usage. You can use this routine in a similar 
  10333. fashion. 
  10334.  
  10335.  
  10336. æKY GetFSFCBLen
  10337. æD FUNCTION GetFSFCBLen: INTEGER ; 
  10338. æFi ULoMem 
  10339. æT PROCEDURE 
  10340. æC This routine is not yet documented; it is used internally by MacApp. You 
  10341. never need to call it yourself.
  10342.  
  10343.  
  10344. æKY GetGZMoveHnd
  10345. æD FUNCTION GetGZMoveHnd: Handle; 
  10346. æFi ULoMem 
  10347. æT PROCEDURE 
  10348. æC GetGZMoveHnd returns a handle that may be moved by the global routine GrowZoneProc. 
  10349. GetGZMoveHnd is called by the global routine HandleIsEligible when HandleIsEligible 
  10350. is testing a handle’s eligibility for purging. You usually don’t call this routine, 
  10351. although you can call it to obtain a handle that can be moved by the GrowZoneProc 
  10352. routine. 
  10353.  
  10354.  
  10355. æKY GetGZRootHnd
  10356. æD FUNCTION GetGZRootHnd: Handle; 
  10357. æFi ULoMem 
  10358. æT PROCEDURE 
  10359. æC GetGZRootHnd returns a handle to the block that must not be moved by the 
  10360. global routine GrowZoneProc. GetGZRootHnd is called by the global routine HandleIsEligible 
  10361. when HandleIsEligible is testing a handle’s eligibility for purging. You usually 
  10362. don’t call this routine, although you can call it to obtain a handle that must 
  10363. not be moved by the GrowZoneProc routine. 
  10364.  
  10365.  
  10366. æKY GetHandleBits
  10367. æD FUNCTION GetHandleBits(h: Handle): SignedByte;
  10368. æFi UMacAppUtilities 
  10369. æT PROCEDURE 
  10370. æC GetHandleBits returns the flags of the master pointer for the specified handle; 
  10371. it is used in conjunction with the global routine SetHandleBits to save and 
  10372. restore the state of the flags. 
  10373. The h parameter is the handle whose master pointer information is returned by this 
  10374. routine. 
  10375. MacApp calls this routine to get the flag information for a specified handle's 
  10376. master pointer. You can save the flags, change the state of any of the flags, 
  10377. and then restore the flags by passing them back to the global routine SetHandleBits. 
  10378.  
  10379.  
  10380. æKY GetHwCfgFlags
  10381. æD FUNCTION GetHwCfgFlags: INTEGER; 
  10382. æFi ULoMem 
  10383. æT PROCEDURE 
  10384. æC GetHwCfgFlags returns information about the hardware configuration on which 
  10385. the application is to run.  
  10386. This routine is called by the global routine DefineConfiguration when an application 
  10387. is opened. You usually don’t need to call this routine yourself.
  10388.  
  10389.  
  10390. æKY GetIfBkColor
  10391. æD PROCEDURE GetIfBkColor(VAR aColor: RGBColor);
  10392. æFi UMacAppUtilities 
  10393. æT PROCEDURE 
  10394. æC GetIfBkColor returns the current background color. This routine works with 
  10395. both QuickDraw and Color QuickDraw. 
  10396. The aColor parameter contains the value of the current background color when this 
  10397. routine returns. 
  10398. GetIfBkColor is called by methods of the class TPopup to redraw the background 
  10399. correctly after displaying a pop-up menu. You can use this routine in a similar 
  10400. fashion. 
  10401.  
  10402.  
  10403. æKY GetIfColor
  10404. æD PROCEDURE GetIfColor(VAR aColor: RGBColor);
  10405. æFi UMacAppUtilities 
  10406. æT PROCEDURE 
  10407. æC GetIfColor returns the current foreground color. This routine works with both 
  10408. QuickDraw and Color QuickDraw. 
  10409. The aColor parameter contains the value of the current foreground color when this 
  10410. routine returns. 
  10411. GetIfColor is called by methods of the classes TPopup, TCluster, and TStaticText 
  10412. to get the color used for drawing on the screen. You can use this routine in a 
  10413. similar fashion. 
  10414.  
  10415.  
  10416. æKY GetLevel
  10417. æD PROCEDURE GetLevel(level: INTEGER; topFrame: Longint; VAR calleeFrame, 
  10418.   itsFrame: Longint);
  10419. æFi UDebug 
  10420. æT PROCEDURE 
  10421. æC This routine is not yet documented; it is used internally by MacApp. You 
  10422. never need to call it yourself. 
  10423.  
  10424.  
  10425. æKY GetLMMBarHeight
  10426. æD FUNCTION GetLMMBarHeight: INTEGER; 
  10427. æFi ULoMem 
  10428. æT PROCEDURE 
  10429. æC GetLMMBarHeight returns the menu bar height on hardware configurations that 
  10430. have 128 KB ROMs or better and are running system 4.1 or better.
  10431. MacApp calls this routine from the global routine DoRealInitToolBox. You can 
  10432. call this routine to get the proper height of the menu bars, expressed in pixels. 
  10433. If the system has the Script Manager, call the Script Manager routine GetMBarHeight 
  10434. instead of using this routine. 
  10435.  
  10436. æKY GetMenuColors
  10437. æD PROCEDURE GetMenuColors(popupRect: Rect; menuID, itemNum: INTEGER; 
  10438.   VAR fColor, bColor: RGBColor);
  10439. æFi UDialog 
  10440. æT PROCEDURE 
  10441. æC GetMenuColors gets the colors in which to draw a specified pop-up menu. 
  10442. The popupRect parameter is the rectangle that defines the dimensions of the menu 
  10443. to be drawn. The menuID parameter identifies the menu to be drawn. The itemNum 
  10444. parameter identifies the item selected, if there is one. When the routine returns, 
  10445. the fColor parameter identifies the foreground color and the bColor identifies 
  10446. the  background color. 
  10447. GetMenuColors is called by methods of the TPopup class when they are drawing a 
  10448. pop-up menu. You can use this routine in a similar fashion. 
  10449.  
  10450. æKY GetMenuList
  10451. æD FUNCTION GetMenuList: Handle; 
  10452. æFi ULoMem 
  10453. æT PROCEDURE 
  10454. æC GetMenuList returns a handle to the current menu handle list. 
  10455. GetMenuList is called by the global routine EachMenuDo when it is iterating over 
  10456. all the menus. You can use this routine to obtain a handle to the current menu 
  10457. list data structure. 
  10458.  
  10459.  
  10460. æKY GetMethodName
  10461. æD PROCEDURE GetMethodName(ppc: Longint; VAR s: MAName);
  10462. æFi UDebug 
  10463. æT PROCEDURE 
  10464. æC GetMethodName returns the name of the method that contains the code at the 
  10465. specified address. If the code in question does not belong to a method, this 
  10466. routine returns the null string. 
  10467. The ppc parameter is the address of the code to be named. The s parameter contains 
  10468. the method name when this routine returns. 
  10469. MacApp calls GetMethodName when the method name of a particular piece of code is 
  10470. required—for example, when cloning objects, when invoking failure handlers, and 
  10471. when reporting information to the MacApp debugger. You can use this routine to 
  10472. get a method name for a particular piece of code. 
  10473.  
  10474.  
  10475. æKY GetNewCenteredDialog
  10476. æD FUNCTION GetNewCenteredDialog(dialogID: INTEGER; dStorage: Ptr; 
  10477.   behind: WindowPtr): DialogPtr;
  10478. æFi UMacApp 
  10479. æT PROCEDURE 
  10480. æC GetNewCenteredDialog sets the cursor to an arrow and creates a dialog box 
  10481. that is centered on the screen. 
  10482. The dialogID parameter is the resource ID of a dialog template that supplies 
  10483. parameters used to create the new dialog box. The dStorage parameter is a pointer 
  10484. to the storage to use for the dialog record. If you set dStorage to NIL, the 
  10485. dialog record will be allocated on the heap, which may cause the heap to become 
  10486. fragmented when you are using this routine to create modeless dialogs. The behind 
  10487. parameter specifies the window behind which the dialog box is to be placed. To 
  10488. display the dialog box in front of all other windows, set the value of the behind 
  10489. parameter to POINTER(-1). 
  10490. MacApp does not call this routine, although the samples do. It is provided for 
  10491. your convenience. You can use it to create dialog boxes that are centered on the 
  10492. screen. 
  10493.  
  10494.  
  10495. æKY GetParmBlockPtr
  10496. æD FUNCTION GetParmBlockPtr: LONGINT; 
  10497. æFi UMacAppUtilities 
  10498. æT PROCEDURE 
  10499. æC Formerly named %_GetA0, GetParmBlockPtr returns the value of register A0. 
  10500. MacApp uses GetParmBlockPtr to obtain the pointer to the parameter block from a 
  10501. VBL task or a completion routine. You can use this routine in a similar fashion.
  10502.  
  10503.  
  10504. æKY GetPortFontInfo
  10505. æD PROCEDURE GetPortFontInfo(fontNum: INTEGER; VAR fontName: Str255; 
  10506.   VAR fontSize: INTEGER);
  10507. æFi UMacAppUtilities 
  10508. æT PROCEDURE 
  10509. æC GetPortFontInfo returns the font name and size corresponding to a given font 
  10510. number, in portable format.
  10511. The fontNum parameter is the number of the font whose name and size is to be 
  10512. returned. If the value of fontNum corresponds to the system font, then this 
  10513. routine returns the value of the constant kSysFontName in the fontName parameter; 
  10514. similarly, if the value of fontNum corresponds to the application font, then 
  10515. this routine returns the value of the constant kApplFontName.  Otherwise, this 
  10516. routine returns the font name provided the Toolbox routine GetFontName. The 
  10517. fontSize parameter is the size of the font, in points. If the value of fontNum 
  10518. corresponds to the system or application font, this routine returns 0 if the 
  10519. font is the default size. 
  10520. MacApp calls this routine from the WRes methods of classes TControl and TTextGridView. 
  10521. You can use this routine when you need information about a font for which you 
  10522. have a font number. 
  10523.  
  10524.  
  10525. æKY GetPortTextStyle
  10526. æD PROCEDURE GetPortTextStyle(theTextStyle: TextStyle);
  10527. æFi UMacAppUtilities 
  10528. æT PROCEDURE 
  10529. æC GetPortTextStyle gets the current port's text style and stores it in the 
  10530. TextStyle record. 
  10531. The parameter theTextStyle is the text style record that is set up when you call 
  10532. this routine. 
  10533. WARNING: This parameter should be a VAR parameter so that the text 
  10534. styles can be returned. In MacApp 2.0, this routine does not work. 
  10535. You can use this routine to get the values of the tsFont, tsFace, tsSize, 
  10536. and tsColor fields from the current port. For information about TextStyle records, 
  10537. see the TextEdit chapter of Inside Macintosh, Volume V.
  10538.  
  10539. æKY GetProcName
  10540. æD PROCEDURE GetProcName(ppc: LONGINT; VAR className, procName: MAName);
  10541. æFi UDebug 
  10542. æT PROCEDURE 
  10543. æC GetProcName returns the name of the routine or method that contains the code 
  10544. at the specified address. 
  10545. The ppc parameter is the address of the code to be identified. The className and 
  10546. procName parameters contain the method's class name and method name, respectively, 
  10547. when GetProcName returns. 
  10548. GetProcName is called by the MacApp debugger when it needs to display a routine 
  10549. or method name associated with a particular piece of code. You can use this 
  10550. routine in a similar fashion. 
  10551.  
  10552.  
  10553. æKY GetPromptedChar
  10554. æD FUNCTION GetPromptedChar(prompt: StringPtr; validChars: StringPtr; 
  10555.   PROCEDURE helpProc): CHAR;
  10556. æFi UDebug 
  10557. æT PROCEDURE 
  10558. æC GetPromptedChar displays a prompt in the Debug Transcript asking the user for 
  10559. a single-character response, reads the user response from the command line, 
  10560. writes it to the screen, and, if appropriate, calls a help procedure. 
  10561. The prompt parameter is a pointer to the string that is displayed to prompt the 
  10562. user. The validChars parameter is a pointer to the string of characters considered 
  10563. to be valid responses. The helpProc parameter is a procedure you define; this 
  10564. routine calls the helpProc procedure in response to a help request from the 
  10565. user. 
  10566. GetPromptedChar is used internally by the MacApp debugger. You never need to 
  10567. call it yourself. 
  10568.  
  10569.  
  10570. æKY GetPromptedNames
  10571. æD FUNCTION GetPromptedNames(prompt: StringPtr; 
  10572.   VAR className, procName: MAName): BOOLEAN;
  10573. æFi UDebug 
  10574. æT PROCEDURE 
  10575. æC GetPromptedNames displays a prompt in the Debug Transcript asking the user 
  10576. for the name of a method or routine, reads the user response from the command 
  10577. line, writes it to the screen, and calls the appropriate help procedure. This 
  10578. routine returns TRUE when it receives a user response consisting of characters 
  10579. in the accepted character set. It does not check the validity of the method or 
  10580. routine name that the user enters. 
  10581. The prompt parameter is a pointer to the string that is displayed as a prompt. 
  10582. The className parameter is the class name of the method that the user enters in 
  10583. response to the prompt. The procName parameter is the method name—without a 
  10584. class name—that the user enters in response to the prompt.
  10585. GetPromptedNames is used internally by the MacApp debugger. You never need to 
  10586. call it yourself. 
  10587.  
  10588.  
  10589. æKY GetPromptedNumber
  10590. æD FUNCTION GetPromptedNumber(prompt: StringPtr; 
  10591.   VAR asDecimal, asHex: Longint): BOOLEAN; 
  10592. æFi UDebug 
  10593. æT PROCEDURE 
  10594. æC GetPromptedNumber returns TRUE when the user enters a valid number. If it 
  10595. returns FALSE, but the values of the asDecimal and asHex parameters are 0, then 
  10596. the user pressed only the Return key.  
  10597. The prompt parameter is a pointer to the string that is displayed to prompt the 
  10598. user. If the value of the asDecimal parameter is -1, then this routine accepts 
  10599. decimal input and uses the local symbol table. If the value of asHex is -1, then 
  10600. this routine accepts hexadecimal input. 
  10601. GetPromptedNumber is used internally by the MacApp debugger. You never need to 
  10602. call it yourself. 
  10603.  
  10604.  
  10605. æKY GetPromptedNumberWithDefault
  10606. æD FUNCTION GetPromptedNumberWithDefault(prompt: StringPtr; 
  10607.   default: integer): integer;
  10608. æFi UDebug 
  10609. æT PROCEDURE 
  10610. æC GetPromptedNumberWithDefault returns the number that the user typed in response 
  10611. to the specified prompt. If the user presses the Return key in response to the 
  10612. prompt, this routine returns a specified default value. 
  10613. The prompt parameter is a pointer to the string that is displayed as a prompt. 
  10614. The default parameter is the value this routine returns if the user presses the 
  10615. Return key in response to the prompt. 
  10616. GetPromptedNumberWithDefault is used internally by the MacApp debugger. You 
  10617. never need to call it yourself. 
  10618.  
  10619.  
  10620. æKY GetPromptedString
  10621. æD FUNCTION GetPromptedString(prompt: StringPtr; PROCEDURE helpProc): Str255;
  10622. æFi UDebug 
  10623. æT PROCEDURE 
  10624. æC GetPromptedString returns the string that the user types in response to the 
  10625. specified prompt. 
  10626. The prompt parameter is a pointer to the string that is displayed as a prompt. 
  10627. The helpProc parameter is a procedure you define: it is called by this routine 
  10628. in response to a help request from the user. 
  10629. GetPromptedString is used internally by the MacApp debugger. You never need to 
  10630. call it yourself. 
  10631.  
  10632.  
  10633. æKY GetPromptedStringWithDefault
  10634. æD FUNCTION GetPromptedStringWithDefault(prompt: StringPtr; default: StringPtr; 
  10635.   PROCEDURE helpProc): Str255;
  10636. æFi UDebug 
  10637. æT PROCEDURE 
  10638. æC GetPromptedStringWithDefault returns the string that the user typed in response 
  10639. to the specified prompt. If the user presses the Return key in response to the 
  10640. prompt, this routine returns a specified default value. 
  10641. The prompt parameter is a pointer to the string that is displayed as a prompt. 
  10642. The default parameter is a pointer to the string that this routine returns if 
  10643. the user presses the Return key in response to the prompt. 
  10644. GetPromptedStringWithDefault is used internally by the MacApp debugger. You 
  10645. never need to call it yourself. 
  10646.  
  10647.  
  10648. æKY GetPromptedValue
  10649. æD FUNCTION GetPromptedValue(prompt: StringPtr; VAR asDecimal, asHex: Longint; 
  10650.   symbolOK: BOOLEAN; VAR gotSymbol: BOOLEAN): BOOLEAN;
  10651. æFi UDebug 
  10652. æT PROCEDURE 
  10653. æC GetPromptedValue returns TRUE when the user enters a valid number. If it 
  10654. returns FALSE, but the values of all its parameters are 0, then the user pressed 
  10655. the Return key.
  10656. The prompt parameter is a pointer to the string that is displayed as a prompt. 
  10657. If the value of the asDecimal parameter is -1, then this routine accepts decimal 
  10658. input and uses the local symbol table. If the value of asHex is -1, then this 
  10659. routine accepts hexadecimal input. If the value of the symbolOK parameter is 
  10660. TRUE, then this routine accepts non-alphanumeric characters as input. The value 
  10661. of the gotSymbol parameter is TRUE when the user enters a valid symbol in response 
  10662. to the prompt. 
  10663. GetPromptedValue is used internally by the MacApp debugger. You never need to 
  10664. call it yourself.
  10665.  
  10666.  
  10667. æKY GetRcvrAtLevel
  10668. æD FUNCTION GetRcvrAtLevel(level: INTEGER; topFrame: Longint): TObject;
  10669. æFi UDebug 
  10670. æT PROCEDURE 
  10671. æC GetRcvrAtLevel retrieves the value of SELF at a specified level of the internal 
  10672. stack in MacApp. This routine is used internally by MacApp; you never need to 
  10673. call it yourself. 
  10674.  
  10675. æKY GetReserveSize
  10676. æD PROCEDURE GetReserveSize(VAR szCodeReserve, szMemReserve: Size);
  10677. æFi UMemory 
  10678. æT PROCEDURE 
  10679. æC GetReserveSize retrieves the sizes of the MacApp low-memory and code-segment 
  10680. reserves and stores them in the specified variables.  
  10681. The szCodeReserve parameter is the variable in which the size of the code reserve 
  10682. is to be stored. The szMemReserve parameter is the variable in which the size of 
  10683. the low-memory reserve is to be stored. 
  10684. GetReserveSize is called by TApplication.OpenOld, which adjusts the size of the 
  10685. low-memory reserve to ensure that the application is able to open existing documents. 
  10686. You can call GetReserveSize to check the sizes of the code and low memory reserves. 
  10687. Note: The result returned by this routine is not a true indication of whether 
  10688. the specified amount of memory has in fact been reserved. You can call CheckReserve 
  10689. to find out if the code reserve can be allocated; you can call MemSpaceIsLow to 
  10690. find out if the low-memory reserve was allocated. 
  10691.  
  10692.  
  10693. æKY GetResLoad
  10694. æD FUNCTION GetResLoad: BOOLEAN; 
  10695. æFi UMacAppUtilities 
  10696. æT PROCEDURE 
  10697. æC GetResLoad returns TRUE if resources are to be loaded when the Toolbox function 
  10698. GetResource is called. 
  10699. GetResLoad is called by several memory-management methods that need to control 
  10700. whether or not a resource is read into memory when the Resource Manager gets a 
  10701. resource. For example, the global routine GetSegSize determines the size of all 
  10702. the resources in a segment without actually loading the segment. You can use 
  10703. GetResLoad to read the state of the ResLoad flag. 
  10704.  
  10705.  
  10706. æKY GetResMenu
  10707. æD FUNCTION GetResMenu(menuResID: INTEGER): MenuHandle;
  10708. æFi UMenuSetup 
  10709. æT PROCEDURE 
  10710. æC GetResMenu returns a menu handle for the menu that has the specified resource 
  10711. ID, whether or not that menu is currently in the menu bar. This routine also 
  10712. reads the resource data into memory if it is not already in memory; however it 
  10713. does not do so if you call the Toolbox function SetResLoad with an argument of 
  10714. FALSE.  
  10715. The menuResID parameter is the ID of the 'MENU' resource whose handle is returned 
  10716. by this routine. 
  10717. MacApp calls GetResMenu from methods that set up menus and enable commands. You 
  10718. can use this routine to obtain a handle to a specified menu regardless of whether 
  10719. it is currently in memory.
  10720.  
  10721.  
  10722. æKY GetROMMapInsert
  10723. æD FUNCTION GetROMMapInsert: Ptr ; 
  10724. æFi ULoMem 
  10725. æT PROCEDURE 
  10726. æC This routine is not yet documented; it is used internally by MacApp. You 
  10727. never need to call it yourself. 
  10728.  
  10729.  
  10730. æKY GetSaveVisRgnPtr
  10731. æD FUNCTION GetSaveVisRgnPtr: RgnHandlePtr; 
  10732. æFi ULoMem 
  10733. æT PROCEDURE 
  10734. æC GetSaveVisRgnPtr returns a pointer to a visible region that was temporarily 
  10735. saved during an update cycle. GetSaveVisRgnPtr is called by the MacApp debugger. 
  10736. You usually do not need to call this routine yourself. 
  10737.  
  10738.  
  10739. æKY GetSegFromPC
  10740. æD FUNCTION GetSegFromPC(ppc: Longint): INTEGER;
  10741. æFi UMemory 
  10742. æT PROCEDURE 
  10743. æC GetSegFromPC returns the code segment number for the program counter's current 
  10744. location. This routine returns a value of 0 if the segment is not in memory or 
  10745. cannot be found. 
  10746. The ppc parameter is the program counter's current value. 
  10747. GetSegFromPC is called by the MacApp debugger. You can use this routine to get 
  10748. the segment number containing the program counter's current value. 
  10749.  
  10750.  
  10751. æKY GetSegNumber
  10752. æD FUNCTION GetSegNumber(aProc: ProcPtr): INTEGER;
  10753. æFi UMemory 
  10754. æT PROCEDURE 
  10755. æC GetSegNumber returns the number of the segment that contains the specified 
  10756. procedure. If the routine that computed the address of the procedure was in the 
  10757. same segment as the procedure, this routine returns a value of 0. 
  10758. The aProc parameter is a pointer to the procedure whose segment number is to be 
  10759. returned by this routine. 
  10760. GetSegNumber is called by MacApp initialization routines and by TApplication.Run. 
  10761. You can use this routine to find the number of the segment that contains a specified 
  10762. procedure. 
  10763.  
  10764.  
  10765. æKY GetSegResource
  10766. æD FUNCTION GetSegResource(segNum: INTEGER): Handle;
  10767. æFi UMemory 
  10768. æT PROCEDURE 
  10769. æC GetSegResource returns a handle to the specified application's 'CODE' resource; 
  10770. it returns NIL if the resource cannot be found. 
  10771. The segNum parameter specifies which 'CODE' resource to retrieve. 
  10772. GetSegResource is called from the global routine DoInitUMemory to load the application's 
  10773. main code segments at startup. You never need to call it yourself.
  10774.  
  10775.  
  10776. æKY GetSegSize
  10777. æD FUNCTION GetSegSize(segNum: INTEGER): Size;
  10778. æFi UMemory 
  10779. æT PROCEDURE 
  10780. æC GetSegSize returns the size, in bytes, of the specified code segment. 
  10781. The segnum parameter is the segment number of the segment whose size is to be 
  10782. determined. 
  10783. You can call this routine to determine the size of a specified segment. 
  10784.  
  10785.  
  10786. æKY GetSuperClassID
  10787. æD FUNCTION GetSuperClassID(objID: ObjClassId): ObjClassId;
  10788. æFi UObject 
  10789. æT PROCEDURE 
  10790. æC GetSuperClassID returns the class identifier of the superclass of the specified 
  10791. class. This routine returns the value kNilClass for the superclass of the TObject 
  10792. class. 
  10793. The objID parameter is the class identifier of the class whose superclass is to be 
  10794. identified. 
  10795. MacApp calls GetSuperClassID when it needs a reference to the superclass of a 
  10796. specified class. You can use this routine in a similar fashion. 
  10797.  
  10798.  
  10799. æKY GetSuperClassTableHandle
  10800. æD FUNCTION GetSuperClassTableHandle: Handle;
  10801. æFi UObject.Globals 
  10802. æT PROCEDURE 
  10803. æC GetSuperClassTableHandle returns a handle to the superclass table. 
  10804. MacApp calls this routine once when setting up the dispatcher. You can call this 
  10805. routine when you want to obtain a handle to the superclass table. 
  10806.  
  10807.  
  10808. æKY GetTextStyleFontInfo
  10809. æD PROCEDURE GetTextStyleFontInfo(theTextStyle: TextStyle; VAR theFontInfo: Fontinfo);
  10810. æFi UMacApp 
  10811. æT PROCEDURE 
  10812. æC GetTextStyleFontInfo returns the FontInfo record for the specified font, 
  10813. face, and size. 
  10814. The parameter theTextStyle is a record of type TextStyle that specifies the font 
  10815. number (or font family number, if appropriate), the character style (the face— 
  10816. bold, italic, and so forth), the text size in points, and the text’s RGB color. 
  10817. The parameter theFontInfo stores the FontInfo record when this routine returns. 
  10818. MacApp calls GetTextStyleFontInfo from methods that set text styles for pop-up 
  10819. menus, dialog boxes and TTEView views. You can use this routine in a similar 
  10820. fashion. For further discussion of TextStyle records, see the TextEdit chapter 
  10821. of Inside Macintosh, Volume V. For information about the FontInfo data type, see 
  10822. the QuickDraw chapter of Inside Macintosh, Volume I.
  10823.  
  10824.  
  10825. æKY GetTheCrsr
  10826. æD FUNCTION GetTheCrsr: CursPtr; 
  10827. æFi ULoMem 
  10828. æT PROCEDURE 
  10829. æC GetTheCrsr returns a pointer to the current cursor record.
  10830. GetTheCrsr is used internally by the global routine CurrentCursor. You never need 
  10831. to call it yourself.
  10832.  
  10833.  
  10834. æKY GetTrapType
  10835. æD FUNCTION GetTrapType(theTrap: INTEGER): TrapType;
  10836. æFi UMacAppUtilities 
  10837. æT PROCEDURE 
  10838. æC GetTrapType returns the trap's type—an operating-system trap (OSTrap) or a 
  10839. Toolbox trap (ToolTrap). 
  10840. The parameter theTrap is the trap whose type this routine returns. (The Integer 
  10841. values are mapped to trap types through the system trap table.) 
  10842. MacApp calls GetTrapType when patching and unpatching traps. You can call this 
  10843. routine to determine whether a trap is an operating-system trap or a Toolbox 
  10844. trap.
  10845.  
  10846.  
  10847. æKY GetUnitNtryCnt
  10848. æD FUNCTION GetUnitNtryCnt: INTEGER; 
  10849. æFi ULoMem 
  10850. æT PROCEDURE 
  10851. æC GetUnitNtryCnt returns the number of entries in the unit table. 
  10852. MacApp calls GetUnitNtryCnt from TApplication.OpenDeskAccessory to determine 
  10853. whether a desk accessory is already open when the user attempts to open it. This 
  10854. routine is intended for internal use by MacApp; you never need to call it yourself.
  10855.  
  10856.  
  10857. æKY GetUTableBase
  10858. æD FUNCTION GetUTableBase: UnitTablePtr; 
  10859. æFi ULoMem 
  10860. æT PROCEDURE 
  10861. æC GetUTableBase returns a pointer to the beginning of the unit table. 
  10862. MacApp calls GetUTableBase from TApplication.OpenDeskAccessory to determine 
  10863. whether a desk accessory is already open when the user attempts to open it. This 
  10864. routine is intended for internal use by MacApp; you never need to call it yourself.
  10865.  
  10866.  
  10867. æKY GetWindowList
  10868. æD FUNCTION GetWindowList: WindowPtr; 
  10869. æFi ULoMem 
  10870. æT PROCEDURE 
  10871. æC GetWindowList returns a pointer to a Z-ordered linked list of Window Manager 
  10872. windows. 
  10873. GetWindowList is called by the global routine EachWMgrWindowDo. You can 
  10874. call this routine to obtain a pointer to the list of Window Manager windows. 
  10875.  
  10876.  
  10877. æKY GetWindowVariant
  10878. æD FUNCTION GetWindowVariant(theWindow: WindowPtr): INTEGER;
  10879. æFi UMacApp.TWindow 
  10880. æT PROCEDURE 
  10881. æC GetWindowVariant returns the specified window pointer’s variation code. 
  10882. The parameter theWindow is the pointer to the specified Window Manager window. 
  10883. MacApp uses this routine to obtain the variant code for the Window Manager window 
  10884. associated with a TWindow object. For more information about variants, see the 
  10885. Window Manager chapter in Inside Macintosh, Volume I.
  10886.  
  10887.  
  10888. æKY GrowZoneProc
  10889. æD FUNCTION GrowZoneProc(needed: Size): LONGINT;
  10890. æFi UMemory 
  10891. æT PROCEDURE 
  10892. æC GrowZoneProc attempts to increase the size of the application heap by a specified 
  10893. amount, returning a value equal to the amount of space by which the heap size 
  10894. actually was increased. If no space can be allocated, this routine returns a 
  10895. value of zero. 
  10896. The needed parameter specifies the amount of additional heap space this routine 
  10897. should attempt to create. 
  10898. GrowZoneProc is installed as the grow zone routine in the global routine InitUMemory. 
  10899. You never need to call this routine yourself. 
  10900.  
  10901.  
  10902. æKY HandleIsEligible
  10903. æD FUNCTION HandleIsEligible(h: Handle): BOOLEAN;
  10904. æFi UMemory 
  10905. æT PROCEDURE 
  10906. æC HandleIsEligible returns TRUE if the specified handle is in memory and is not 
  10907. the same handle specified by the global routines GetGZMoveHnd or GetGZRootHnd. 
  10908. The h parameter is the handle to be tested. 
  10909. HandleIsEligible is called by several memory-management routines that allocate 
  10910. heap space. You usually do not need to call this routine yourself. 
  10911.  
  10912.  
  10913. æKY HandlerExists
  10914. æD FUNCTION HandlerExists(testFailInfoPtr: FailInfoPtr): Boolean;
  10915. æFi UFailure 
  10916. æT PROCEDURE 
  10917. æC HandlerExists returns TRUE if the specified failure handler exists in the 
  10918. linked list of failure handlers from gTopHandler to the outermost handler. 
  10919. The testFailInfoPtr parameter is the pointer to the FailInfo record whose failure 
  10920. handler you are checking. 
  10921. MacApp calls HandlerExists from the global routine Success when removing the top 
  10922. failure handler from the global failure handler stack. You can use this routine 
  10923. to test the linked list of failure handlers for the existence of a specified 
  10924. failure handler.
  10925.  
  10926. æKY HdlInitFailed
  10927. æD PROCEDURE HdlInitFailed(error: OSErr; message: LongInt);
  10928.  
  10929. æFi UMacApp.Globals 
  10930. æT PROCEDURE 
  10931. æC HdlInitFailed is the outermost failure handler. In the event that this failure 
  10932. handler gets executed, it displays an informative error message and then quits 
  10933. the application. 
  10934. The error parameter is the operating-system error code that corresponds to the 
  10935. conditions that signalled failure. The message parameter corresponds to the 
  10936. informative error message displayed to the user when the failure occurs. This 
  10937. failure handler is installed in InitUMacApp and never removed. 
  10938. You never call this routine. 
  10939.  
  10940. æKY Head1Patch
  10941. æD FUNCTION Head1Patch (VAR thePatch: TrapPatch; theTrapNum: INTEGER; 
  10942.   theRoutine: Ptr): OSErr;
  10943. æFi UPatch 
  10944. æT PROCEDURE 
  10945. æC Head1Patch patches a system trap so that it calls the specified routine first, 
  10946. then executes the old trap routine. Head1Patch returns noErr unless an error 
  10947. occurs in allocating memory for the patch (memory for the patch is needed only 
  10948. for 64K ROMs), in which case it returns a Memory Manager error code. 
  10949. The parameter thePatch is the TrapPatch record that corresponds to the patch. 
  10950. TrapPatch records are defined in the file UPatch.p. The parameter theTrapNum is 
  10951. the number of the System trap that is to be patched. The parameter theRoutine 
  10952. must refer to a rouine with one Longword argument. 
  10953. MacApp uses Head1Patch to patch certain system traps when the application starts 
  10954. up. You usually do not need to call this routine yourself. You can install your 
  10955. own patches using Head1Patch, but such patches are extremely dangerous unless 
  10956. you understand trap handling very well. Please read Macintosh® Technical Note 
  10957. #25, “Don’t Depend on Register A5 Within Trap Patches,” before using Head1Patch.
  10958.  
  10959.  
  10960. æKY HeadPatch
  10961. æD FUNCTION HeadPatch (VAR thePatch: TrapPatch; theTrapNum: INTEGER; 
  10962.   theRoutine: Ptr): OSErr;
  10963. æFi UPatch 
  10964. æT PROCEDURE 
  10965. æC HeadPatch patches a system trap so that it calls the specified routine first, 
  10966. then executes the old trap routine. HeadPatch returns noErr unless an error 
  10967. occurs in allocating memory for the patch (memory for the patch is needed only 
  10968. for 64K ROMs), in which case it returns a Memory Manager error code.The parameter 
  10969. thePatch is the TrapPatch record that corresponds to the patch. TrapPatch records 
  10970. are defined in the file UPatch.p. 
  10971. The parameter theTrapNum is the number of the system trap that is to be patched. 
  10972. The parameter theRoutine must refer to a routine with no arguments. 
  10973. MacApp uses HeadPatch to patch certain system traps when the application starts 
  10974. up. You usually do not need to call this routine yourself. You can install your 
  10975. own patches using HeadPatch, but such patches are extremely dangerous unless you 
  10976. understand trap handling very well. Please read Macintosh® Technical Note #25, 
  10977. “Don’t Depend on Register A5 Within Trap Patches,” before using HeadPatch.
  10978.  
  10979. æKY HeapCmd
  10980. æD PROCEDURE HeapCmd;
  10981. æFi UDebug 
  10982. æT PROCEDURE 
  10983. æC HeapCmd prompts the user, reads input from the command line, and displays 
  10984. heap information in the MacApp debugger in response to the user input. 
  10985. HeapCmd is called by the global routine DoWaiting when the user enters an “H” 
  10986. while in the MacApp debugger. This routine is intended for internal use by MacApp; 
  10987. you never need to call it yourself.
  10988.  
  10989.  
  10990. æKY IdleProcForTStdPrintHandler
  10991. æD PROCEDURE IdleProcForTStdPrintHandler;
  10992. æFi UPrinting 
  10993. æT PROCEDURE 
  10994. æC IdleProcForTStdPrintHandler forwards print-job idle time to the DoPrintIdling 
  10995. method of the current job's print handler. 
  10996. The system calls this routine from TStdPrintHandler.PosePrintDialog when the 
  10997. application is printing. You never need to call this routine yourself.
  10998.  
  10999.  
  11000. æKY IDUDebug
  11001. æD PROCEDURE IDUDebug;
  11002. æFi UDebug 
  11003. æT PROCEDURE 
  11004. æC IDUDebug retrieves the data and time that UDebug was compiled and writes this 
  11005. information to the Debug Transcript. 
  11006. MacApp calls IDUDebug from TApplication.IdentifySoftware. You usually do not 
  11007. need to call this routine yourself.
  11008.  
  11009.  
  11010. æKY IDUobject
  11011. æD PROCEDURE IDUobject;
  11012. æFi UObject 
  11013. æT PROCEDURE 
  11014. æC IDUobject retrieves the data and time that UObject was compiled and writes 
  11015. this information to the Debug Transcript.
  11016. MacApp calls IDUobject from TApplication.IdentifySoftware. You usually do not 
  11017. need to call this routine yourself.
  11018.  
  11019.  
  11020. æKY IDUTranscriptView
  11021. æD PROCEDURE IDUTranscriptView;
  11022. æFi UTranscriptView 
  11023. æT PROCEDURE 
  11024. æC IDUTranscriptView retrieves the data and time that UTranscriptView was compiled 
  11025. and writes this information to the Debug Transcript. 
  11026. MacApp calls IDUTranscriptView from TApplication.IdentifySoftware. You usually 
  11027. do not need to call this routine yourself.
  11028.  
  11029.  
  11030. æKY InitializationThatMustNotFail
  11031. æD PROCEDURE InitializationThatMustNotFail;
  11032. æFi UMacApp.Globals 
  11033. æT PROCEDURE 
  11034. æC InitializationThatMustNotFail resets the floating-point unit, calls InitUPatch, 
  11035. and initializes several global variables. 
  11036. MacApp calls this routine from the global routine InitUMacApp at startup; this 
  11037. routine must complete its tasks successfully in order for MacApp to complete its 
  11038. initialization. You never need to call this routine. 
  11039.  
  11040.  
  11041. æKY InitMacAppCursor
  11042. æD PROCEDURE InitMacAppCursor;
  11043. æFi UBusyCursor 
  11044. æT PROCEDURE 
  11045. æC InitMacAppCursor installs the standard arrow cursor. 
  11046. MacApp calls InitMacAppCursor when the application starts up. You usually do not 
  11047. need to call this routine yourself, but you can use it to ensure that the standard 
  11048. arrow cursor is installed.
  11049.  
  11050.  
  11051. æKY InitPrinting
  11052. æD PROCEDURE InitPrinting;
  11053. æFi UPrinting 
  11054. æT PROCEDURE 
  11055. æC InitPrinting is another name for the routine InitUPrinting, which initializes 
  11056. the MacApp printing unit.
  11057. If you want to support printing, you must call InitPrinting or InitUPrinting 
  11058. once at the beginning of your program, before you use any of the MacApp printing 
  11059. routines.
  11060.  
  11061. æKY InitToolBox
  11062. æD PROCEDURE InitToolBox;
  11063. æFi UMacAppUtilities 
  11064. æT PROCEDURE 
  11065. æC InitToolBox initializes the Toolbox for the application. 
  11066. You must call InitToolBox once at the beginning of your program to provide Toolbox 
  11067. support for the application.
  11068.  
  11069.  
  11070. æKY InitUBusyCursor
  11071. æD PROCEDURE InitUBusyCursor;
  11072. æFi UBusyCursor 
  11073. æT PROCEDURE 
  11074. æC InitUBusyCursor initializes the UBusyCursor unit. This routine sets the values 
  11075. of certain MacApp global variables and installs some patches. 
  11076. MacApp calls InitUBusyCursor when the application starts up. You do not need to 
  11077. call this routine yourself.
  11078.  
  11079.  
  11080. æKY InitUDebug
  11081. æD PROCEDURE InitUDebug (segTable, nonRes : Handle ; 
  11082.   enterProc, inspectProc, symbolProc: Ptr);
  11083. æFi UDebug 
  11084. æT PROCEDURE 
  11085. æC InitUDebug initializes the UDebug unit. This routine sets the values of certain 
  11086. MacApp global variables. 
  11087. MacApp calls InitUDebug when the application starts up, if the application was 
  11088. compiled with debugging enabled. You do not need to call this routine yourself.
  11089.  
  11090.  
  11091. æKY InitUDebugAfterIApplication
  11092. æD PROCEDURE InitUDebugAfterIApplication;
  11093. æFi UDebug 
  11094. æT PROCEDURE 
  11095. æC InitUDebugAfterIApplication finishes the initialization of the UDebug unit 
  11096. after UApplication is initialized. 
  11097. MacApp calls InitUDebugAfterIApplication when the application starts up. You 
  11098. never call this routine yourself.
  11099.  
  11100.  
  11101. æKY InitUDialog
  11102. æD PROCEDURE InitUDialog;
  11103. æFi UDialog 
  11104. æT PROCEDURE 
  11105. æC InitUDialog initializes the UDialog unit. It sets the values of certain MacApp 
  11106. global variables and registers the view types associated with TDialogView and 
  11107. TControl objects.
  11108. If you include the UDialog unit in your application, then you must call InitUDialog 
  11109. once before creating any TDialogView objects.
  11110.  
  11111.  
  11112. æKY InitUGridView
  11113. æD PROCEDURE InitUGridView;
  11114. æFi UGridView 
  11115. æT PROCEDURE 
  11116. æC InitUGridView initializes the UGridView unit. It sets the values of certain 
  11117. MacApp global variables.
  11118. If you include the UGridView unit in your application, then you must call InitUGridView 
  11119. once before creating any TGridView objects.
  11120.  
  11121.  
  11122. æKY InitUInspector
  11123. æD PROCEDURE InitUInspector;
  11124. æFi UInspector 
  11125. æT PROCEDURE 
  11126. æC InitUInspector initializes the UInspector unit. It sets the values of certain 
  11127. MacApp global variables. 
  11128. MacApp calls InitUInspector when the application starts up, if it was compiled 
  11129. with debugging enabled. You do not need to call this routine yourself.
  11130.  
  11131.  
  11132. æKY InitUMacApp
  11133. æD PROCEDURE InitUMacApp (callsToMoreMasters: INTEGER);
  11134. æFi UMacApp 
  11135. æT PROCEDURE 
  11136. æC InitUMacApp initializes the UMacApp unit. 
  11137. The parameter callsToMoreMasters specifies the number of times MacApp will call 
  11138. the MoreMasters routine to allocate master pointers. 
  11139. MacApp never calls this routine. You must call InitUMacApp at the beginning of 
  11140. your program, after calling the global routines InitToolBox and ValidateConfiguration.
  11141.  
  11142.  
  11143. æKY InitUMemory
  11144. æD PROCEDURE InitUMemory;
  11145. æFi UMemory 
  11146. æT PROCEDURE 
  11147. æC InitUMemory initializes the UMemory unit.MacApp calls InitUMemory from InitUMacApp. 
  11148. You never need to call this routine yourself.
  11149.  
  11150. æKY InitUMenuSetup
  11151. æD PROCEDURE InitUMenuSetup;
  11152. æFi UMenuSetup 
  11153. æT PROCEDURE 
  11154. æC InitUMenuSetup initializes the UMenuSetup unit. 
  11155. MacApp calls InitUMenuSetup for you. You do not need to call this routine yourself.
  11156.  
  11157.  
  11158. æKY InitUObject
  11159. æD PROCEDURE InitUObject;
  11160. æFi UObject 
  11161. æT PROCEDURE 
  11162. æC InitUObject initializes the UObject unit. 
  11163. MacApp calls InitUObject from the global routine InitUMacApp. You do not need to 
  11164. call this routine yourself.MacApp calls InitUMenuSetup for you. You do not need 
  11165. to call this routine yourself.
  11166.  
  11167.  
  11168. æKY InitUPatch
  11169. æD PROCEDURE InitUPatch;
  11170. æFi UPatch 
  11171. æT PROCEDURE 
  11172. æC InitUPatch initializes the global linked list of trap patches.
  11173. MacApp calls InitUPatch when the application starts up. You do not need to call 
  11174. this routine yourself.
  11175.  
  11176. æKY InitUPrinting
  11177. æD PROCEDURE InitUPrinting;
  11178. æFi UPrinting 
  11179. æT PROCEDURE 
  11180. æC InitUPrinting initializes the UPrinting unit.
  11181. If you want to support printing, you must call InitPrinting or InitUPrinting 
  11182. once at the beginning of your program, before you use any of the MacApp printing 
  11183. routines.
  11184.  
  11185.  
  11186. æKY InitUTEView
  11187. æD PROCEDURE InitUTEView;
  11188. æFi UTEView 
  11189. æT PROCEDURE 
  11190. æC InitUTEView initializes the UTEView unit.
  11191. You must call InitUTEView once at the beginning of your program, before using 
  11192. any of the methods from TTEView or its subclasses.
  11193.  
  11194.  
  11195. æKY InsetVRect
  11196. æD PROCEDURE InsetVRect (VAR r: VRect; dh, dv: VCoordinate);
  11197. æFi UViewCoords 
  11198. æT PROCEDURE 
  11199. æC InsetVRect insets a view rectangle by the horizontal and vertical amounts 
  11200. specified and returns the resulting rectangle in the parameter r. 
  11201. The parameter r is the rectangle to be inset when the routine is called; it 
  11202. contains the resulting rectangle when InsetVRect returns. The dh parameter is 
  11203. the number of pixels that the rectangle is to be inset horizontally, and the dv 
  11204. parameter is the number of pixels the rectangle is to be inset vertically.
  11205.  
  11206. æKY InspectField
  11207. æD PROCEDURE InspectField(fieldName: Str255; fieldAddr: Ptr; fieldType: INTEGER);
  11208. æFi UObject 
  11209. æT PROCEDURE 
  11210. æC InspectField displays the name of the specified field and its current value 
  11211. in the Debug Transcript.
  11212. The parameter fieldName is the name of the field being inspected. The parameter 
  11213. fieldAddr is a pointer to the field. The fieldType parameter is the type identifier 
  11214. for the field. MacApp defines a large set of global constants as field type 
  11215. identifiers. 
  11216. MacApp calls InspectField from several methods of the TObjectView class to display 
  11217. the contents of inspected fields. You usually do not need to call this routine 
  11218. yourself.
  11219.  
  11220.  
  11221. æKY InspectObject
  11222. æD PROCEDURE InspectObject (obj: TObject);
  11223. æFi UObject 
  11224. æT PROCEDURE 
  11225. æC InspectObject displays the specified object’s name and the values of its 
  11226. fields in the Debug Transcript. 
  11227. The parameter obj is the object that is to be displayed.
  11228. MacApp calls InspectObject in response to a MacApp debugger command to 
  11229. inspect a specified object. You do not need to call this routine yourself.
  11230.  
  11231.  
  11232. æKY InstallAnNMRequest
  11233. æD PROCEDURE InstallAnNMRequest;
  11234. æFi UDebug 
  11235. æT PROCEDURE 
  11236. æC InstallAnNMRequest installs a Notification Manager request. The system responds 
  11237. by displaying a small icon that blinks in the menu bar at the location of the 
  11238. Apple menu. 
  11239. This routine is intended for MacApp’s internal use; you never need to call it yourself.
  11240.  
  11241.  
  11242. æKY InstallDispatcher
  11243. æD PROCEDURE InstallDispatcher;
  11244. æFi UObject 
  11245. æT PROCEDURE 
  11246. æC InstallDispatcher installs the MacApp method dispatcher. 
  11247. MacApp calls InstallDispatcher from the global routine InitUObject. This routine 
  11248. is intended for internal use by MacApp; you never need to call it yourself.
  11249.  
  11250.  
  11251. æKY InstallGrowZoneProc
  11252. æD PROCEDURE InstallGrowZoneProc;
  11253. æFi UMemory 
  11254. æT PROCEDURE 
  11255. æC InstallGrowZoneProc installs the GrowZoneProc routine; once called, the GrowZoneProc’s 
  11256. segment must not be moved because InstallGrowZoneProc passes an address that is 
  11257. not a jump-table address to the Toolbox routine SetGrowZone. 
  11258. MacApp calls InstallGrowZoneProc once when initializing the UMemory unit. You 
  11259. never need to call this routine yourself.
  11260.  
  11261.  
  11262. æKY InstallIfPrintHandler
  11263. æD PROCEDURE InstallIfPrintHandler(aView: TView);
  11264. æFi UMacApp.Globals 
  11265. æT PROCEDURE 
  11266. æC InstallIfPrintHandler installs a clone of the specified TPrintHandler object, 
  11267. if it exists, in the specified view. If the UPrinting unit has been initialized, 
  11268. then the global variable gPrintHandler is a TStdPrintHandler object. Otherwise, 
  11269. gPrintHandler is gNullPrintHandler, and the routine does not install a print 
  11270. handler. 
  11271. The parameter aView is the TView object in which the print handler is to 
  11272. be installed.
  11273. Debugging versions of MacApp applications call InstallIfPrintHandler 
  11274. with the global variable pDebugView as the argument. This call installs the 
  11275. standard debugging print handler in the Debug Transcript. You usually do not 
  11276. need to call this routine yourself.
  11277.  
  11278.  
  11279. æKY InstallInterceptors
  11280. æD PROCEDURE InstallInterceptors(install: BOOLEAN);
  11281. æFi UDebug 
  11282. æT PROCEDURE 
  11283. æC InstallInterceptors installs or removes a group of low-level exception handlers.
  11284. If the value of the install parameter is TRUE, then MacApp installs the exception 
  11285. handlers; otherwise, it removes them.
  11286. MacApp calls InstallInterceptors from certain debugging method s that change the 
  11287. Macintosh exception-handling vectors. This routine is intended for internal use 
  11288. by MacApp; you never need to call it yourself.
  11289.  
  11290.  
  11291. æKY InstallWriteLnHook
  11292. æD PROCEDURE InstallWriteLnHook;
  11293. æFi UDebug 
  11294. æT PROCEDURE 
  11295. æC InstallWriteLnHook installs a routine to handle the Pascal WriteLn routine 
  11296. when Debugging is enabled. 
  11297. MacApp calls InstallWriteLnHook when debugging versions of MacApp applications 
  11298. start up. This routine is intended for internal use by MacApp; you never need to 
  11299. call it yourself.
  11300.  
  11301.  
  11302. æKY IntMultiply
  11303. æD FUNCTION IntMultiply(x, y: INTEGER): LONGINT; 
  11304. æFi UMacAppUtilities 
  11305. æT PROCEDURE 
  11306. æC IntMultiply multiplies together two integers and returns a LongInt result. 
  11307. This routine corrects certain casting errors that can occur when you multiply 
  11308. two integers, or one integer and one LongInt value using the multiplication 
  11309. operator. The x and y parameters are the two Integer values that are to be multiplied. 
  11310. MacApp calls IntMultiply to perform a variety of computations. You can use this 
  11311. routine whenever you need to multiply two integers without any loss of precision.
  11312.  
  11313.  
  11314. æKY InvalidateMenuBar
  11315. æD PROCEDURE InvalidateMenuBar;
  11316. æFi UMenuSetup 
  11317. æT PROCEDURE 
  11318. æC InvalidateMenuBar sets the value of gRedrawMenuBar to TRUE and invalidates 
  11319. the menu items as well. 
  11320. MacApp calls this routine when setting up menus or when handling events that affect 
  11321. the appearance of the menus. You can use this routine in a similar fashion.
  11322.  
  11323. æKY InvalidateMenus
  11324. æD PROCEDURE InvalidateMenus;
  11325. æFi UMenuSetup 
  11326. æT PROCEDURE 
  11327. æC InvalidateMenus sets the value of gMenusAreSetup to FALSE, which invalidates 
  11328. all of the items on all of the menus. Note that this does not cause an immediate 
  11329. change in their appearance; like an invalidated view, the menu item is simply 
  11330. marked as needing to be updated. 
  11331. MacApp calls this routine after handling an event that affects the appearance of 
  11332. any menu item; for example, many commands cause the Undo or Redo menu item to be 
  11333. updated. You usually do not need to call this routine yourself.
  11334.  
  11335.  
  11336. æKY IsClassIDMemberClass
  11337. æD FUNCTION IsClassIDMemberClass(testClass: ObjClassID; 
  11338.   superClass: ObjClassID): BOOLEAN;
  11339. æFi UObject 
  11340. æT PROCEDURE 
  11341. æC IsClassIDMemberClass returns TRUE if the class being tested is a subclass of 
  11342. the specified superclass. 
  11343. The testClass parameter is the class identifier of the class to be tested. The 
  11344. superClass parameter is the class identifier of the superclass to be tested. 
  11345. MacApp calls IsClassIDMemberClass from methods whose behavior depends on the 
  11346. superclass of an object. You can use this routine in a similar fashion.
  11347.  
  11348.  
  11349. æKY IsFreeHandle
  11350. æD FUNCTION IsFreeHandle(h: UNIV Handle): Boolean;
  11351. æFi UMacAppUtilities 
  11352. æT PROCEDURE 
  11353. æC IsFreeHandle traverses the application’s global list of free handles and 
  11354. returns TRUE if it finds the specified handle in the list. 
  11355. The h parameter specifies the handle to be found. 
  11356. MacApp calls IsFreeHandle in debugging versions of applications from certain 
  11357. global routines. For example, MacApp calls IsFreeHandle from InspectObject and 
  11358. from ShowFields; it also calls IsFreeHandle when it dtermines whether a handle 
  11359. is an object reference. You usually do not need to call IsFreeHandle yourself.
  11360.  
  11361.  
  11362. æKY IsHandle
  11363. æD FUNCTION IsHandle(h: UNIV Handle): BOOLEAN;
  11364. æFi UMacAppUtilities 
  11365. æT PROCEDURE 
  11366. æC IsHandle returns TRUE if the specified parameter is a valid handle. 
  11367. The h parameter is the data value to be tested. 
  11368. MacApp calls IsHandle from the global routine IsObject. You can use this routine 
  11369. to determine whether a data value is a valid handle.
  11370.  
  11371.  
  11372. æKY IsHandleLocked
  11373. æD FUNCTION IsHandleLocked(h: UNIV Handle): BOOLEAN;
  11374. æFi UMacAppUtilities 
  11375. æT PROCEDURE 
  11376. æC IsHandleLocked returns TRUE if the specified handle is locked. 
  11377. The parameter h is the handle that is to be checked. 
  11378. MacApp calls IsHandleLocked from routines that determine whether a handle is 
  11379. locked. You can use this routine in a similar fashion.
  11380.  
  11381.  
  11382. æKY IsHandlePurged
  11383. æD FUNCTION IsHandlePurged(h: UNIV Handle): BOOLEAN;
  11384. æFi UMacAppUtilities 
  11385. æT PROCEDURE 
  11386. æC IsHandlePurged returns TRUE if the handle has been purged—that is, if the 
  11387. master pointer is NIL. 
  11388. The parameter h is the handle that is to be checked.
  11389. MacApp calls IsHandlePurged from routines that use handles in their operations. 
  11390. You can use this routine when you need to determine whether a handle is associated 
  11391. with active data or has been purged.
  11392.  
  11393.  
  11394. æKY IsMemberClassID
  11395. æD FUNCTION IsMemberClassID(obj: TObject; objID: ObjClassID): BOOLEAN;
  11396. æFi UObject 
  11397. æT PROCEDURE 
  11398. æC IsMemberClassID returns TRUE if the specified object is an instance of the 
  11399. specified class or one of its subclasses.
  11400. The parameter obj is the object to be tested. The parameter objID is the class 
  11401. that is to be tested. 
  11402. MacApp calls IsMemberClassID from methods whose behavior depends on the class of 
  11403. an object. You can use this routine in a similar fashion.
  11404.  
  11405.  
  11406. æKY IsObject
  11407. æD FUNCTION IsObject(obj: UNIV TObject): BOOLEAN;
  11408. æFi UObject 
  11409. æT PROCEDURE 
  11410. æC IsObject returns TRUE if the specified value is a reference to an object. 
  11411. The parameter obj is the the value to be tested. 
  11412. MacApp calls IsObject from methods and global routines whose behavior depends on 
  11413. an argument referring to an object. You can use this routine when you must ensure 
  11414. that a value is an object.
  11415.  
  11416.  
  11417. æKY IsUserBreak
  11418. æD FUNCTION IsUserBreak: BOOLEAN;
  11419. æFi UDebug 
  11420. æT PROCEDURE 
  11421. æC IsUserBreak returns TRUE if the user has activated the debugger by simultaneously 
  11422. pressing the Command, Shift, and Option keys. 
  11423. MacApp calls IsUserBreak when the MacApp debugger needs to determine whether it 
  11424. was activated by a program failure or breakpoint or by a user’s explicit request. 
  11425. You do not need to call this routine yourself.
  11426.  
  11427.  
  11428. æKY JTOffProc
  11429. æD PROCEDURE JTOffProc(A5JTOffset: UNIV INTEGER; VAR s: UNIV DisAsmStr80);
  11430. æFi UDebug 
  11431. æT PROCEDURE 
  11432. æC This routine is not yet documented; it is used internally by MacApp. You 
  11433. never need to call it yourself.
  11434.  
  11435.  
  11436. æKY LengthRect
  11437. æD FUNCTION LengthRect(r: Rect; vhs: VHSelect): INTEGER;
  11438. æFi UMacAppUtilities 
  11439. æT PROCEDURE 
  11440. æC LengthRect returns the length of the specified rectangle in the specified 
  11441. dimension.
  11442. The parameter r is the rectangle whose length is to be determined. If the value 
  11443. of vhs is v, then MacApp computes the vertical dimension of the rectangle; if 
  11444. the value of vhs is h, then MacApp computes the horizontal dimension. 
  11445. MacApp calls LengthRect from TTEView.ScrollSelectionIntoView. You can use this routine 
  11446. when you need to determine the size of a rectangle in a particular dimension.
  11447.  
  11448. æKY LengthVRect
  11449. æD FUNCTION LengthVRect(r: VRect; vhs: VHSelect): VCoordinate;
  11450. æFi UViewCoords 
  11451. æT PROCEDURE 
  11452. æC LengthVRect returns the length of the specified view rectangle in the specified 
  11453. dimension.
  11454. The parameter r is the rectangle whose length is to be determined. If the value 
  11455. of vhs is v, then MacApp computes the vertical dimension of the rectangle; if 
  11456. the value of vhs is h, then MacApp computes the horizontal dimension. 
  11457. MacApp calls LengthVRect from TScroller.RevealRect. You can use this routine 
  11458. when you need to determine the size of a view rectangle in a specified dimension.
  11459.  
  11460.  
  11461. æKY LIntToHex
  11462. æD PROCEDURE LIntToHex(decNumber: UNIV LONGINT; VAR hexNumber: String8; 
  11463.   noOfDigits: INTEGER);
  11464. æFi UMacAppUtilities 
  11465. æT PROCEDURE 
  11466. æC LIntToHex converts a decimal number to a string that represents the number in 
  11467. hexadecimal format. 
  11468. The decNumber parameter is the number to be converted. The hexNumber parameter 
  11469. stores the resulting string. The noOfDigits parameter specifies the number of 
  11470. characters in the resulting string.
  11471. MacApp calls LIntToHex when it must convert a number for display in hexadecimal 
  11472. format. You can use this routine in a similar fashion.
  11473.  
  11474.  
  11475. æKY LoadMacAppSegment
  11476. æD FUNCTION LoadMacAppSegment(segnum: INTEGER): LONGINT;
  11477. æFi UMemory 
  11478. æT PROCEDURE 
  11479. æC LoadMacAppSegment loads the specified code segment into memory. 
  11480. The segnum parameter is the segment number of the segment to be loaded. 
  11481. MacApp calls LoadMacAppSegment from the patch to LoadSeg that it installs when 
  11482. the application starts up. Do not call LoadMacAppSegment yourself.
  11483.  
  11484.  
  11485. æKY LoadResidentSegments
  11486. æD PROCEDURE LoadResidentSegments;
  11487. æFi UMemory 
  11488. æT PROCEDURE 
  11489. æC LoadResidentSegments loads all resident code segments into memory.
  11490. MacApp calls LoadResidentSegments from the global routine InitUMacApp. You do 
  11491. not need to call this routine yourself.
  11492.  
  11493.  
  11494. æKY LockHandleHigh
  11495. æD PROCEDURE LockHandleHigh(h: Handle);
  11496. æFi UMacAppUtilities 
  11497. æT PROCEDURE 
  11498. æC LockHandleHigh moves the specified relocatable block toward the top of the 
  11499. current heap zone until the block hits either a nonrelocatable block, a locked 
  11500. relocatable block, or the last block in the current heap zone. It then locks 
  11501. this block, preventing it from being moved within its heap zone. This routine 
  11502. ignores NIL handles. 
  11503. The h parameter is the handle of the block to be moved and locked. 
  11504. MacApp calls this routine from several methods that directly manipulate memory. 
  11505. You can use this routine to avoid heap fragmentation and make room for future 
  11506. pointers as low on the heap as possible.
  11507.  
  11508.  
  11509. æKY LongerSide
  11510. æD FUNCTION LongerSide(VAR r: Rect): VHSelect;
  11511. æFi UMacAppUtilities 
  11512. æT PROCEDURE 
  11513. æC LongerSide returns a value that indicates whether the specified rectangle is 
  11514. longer in the horizontal or the vertical dimension. If the resulting value is v, 
  11515. then the rectangle is larger in the vertical dimension; if the value is h, then 
  11516. it is longer in the horizontal dimension. 
  11517. The r parameter is the rectangle to be examined. 
  11518. MacApp calls LongerSide from TGridView.CellsToPixels. You can use this routine 
  11519. when you need to determine whether a rectangle is longer in the horizontal or 
  11520. vertical dimension.
  11521.  
  11522.  
  11523. æKY LookupErrString
  11524. æD FUNCTION LookupErrString(value: INTEGER; resourceID: INTEGER; 
  11525.   VAR str: Str255): BOOLEAN;
  11526. æFi UMacApp 
  11527. æT PROCEDURE 
  11528. æC LookupErrString searches a specified error string resource for a string associated 
  11529. with a specified error number, returning TRUE if it finds the string. 
  11530. The value parameter is the error number whose associated string is to be found. 
  11531. The resourceID parameter is the identifier of an 'errs' resource to be searched. 
  11532. The str parameter stores the associated string if it finds one. If MacApp does 
  11533. not find a string associated with the specified error number, then it stores the 
  11534. empty string in the str parameter and returns FALSE. 
  11535. MacApp calls LookupErrString from the global routine ErrorAlert. You usually do 
  11536. not need to call this routine yourself.
  11537.  
  11538.  
  11539. æKY LookupSymbol
  11540. æD FUNCTION LookupSymbol(VAR sym: Str255): LONGINT;
  11541. æFi UMacApp 
  11542. æT PROCEDURE 
  11543. æC LookupSymbol returns the address of the global variable with the specified 
  11544. name. 
  11545. The sym parameter is the name of the variable that MacApp is ot look up.
  11546. MacApp calls LookupSymbol from routines that must gain access to variables from 
  11547. their names. You can use this routine in a similar fashion.
  11548.  
  11549.  
  11550. æKY LowerChar
  11551. æD FUNCTION LowerChar(ch: CHAR): CHAR;
  11552. æFi UMacAppUtilities 
  11553. æT PROCEDURE 
  11554. æC LowerChar converts the specified character to its lowercase equivalent. 
  11555. The ch parameter is the character that is to be converted. If the character is 
  11556. already lowercase, then it is returned unchanged. 
  11557. MacApp calls LowerChar when it must replace uppercase characters with their 
  11558. lowercase equivalents. You can use this routine in a similar fashion.
  11559.  
  11560.  
  11561. æKY LowerStr255
  11562. æD PROCEDURE LowerStr255(VAR s: Str255);
  11563. æFi UMacAppUtilities 
  11564. æT PROCEDURE 
  11565. æC LowerStr255 converts all the characters in a string to their lowercase equivalents. 
  11566. The s parameter is the string that LowerStr255 is to convert. The routine stores 
  11567. the converted string in the s parameter when it returns.
  11568. You can use LowerStr255 when you need to convert all a string’s characters to 
  11569. lowercase.
  11570.  
  11571.  
  11572. æKY MacAppAlert
  11573. æD FUNCTION MacAppAlert(alertID: INTEGER; filterProc: ProcPtr): INTEGER;
  11574. æFi UMacApp 
  11575. æT PROCEDURE 
  11576. æC MacAppAlert displays an alert box after first ensuring that the cursor image 
  11577. is restored to the standard arrow. The routine returns a condition code that is 
  11578. produced by the Toolbox routine Alert; for information on the Alert routine, see 
  11579. Inside Macintosh, Volume I, page 418. 
  11580. The alertID parameter is the resource ID of the 'ALRT' resource that MacApp uses 
  11581. to create the alert box. The filterProc parameter determines how events are 
  11582. filtered. If the value of filterProc is NIL, then a standard filterProc routine 
  11583. is executed. If the value of filterProc is not NIL, then Alert filters events by 
  11584. executing the routine it points to. For information about filterProc routines, 
  11585. see Inside Macintosh, Volume I, page 415. 
  11586. MacApp calls MacAppAlert when it must report a problem to the user. You can use 
  11587. this routine in a similar fashion.
  11588.  
  11589.  
  11590. æKY MacAppAlertFilter
  11591. æD FUNCTION MacAppAlertFilter(theDialog: DialogPtr; VAR theEvent:EventRecord; 
  11592.   VAR itemHit: INTEGER): BOOLEAN;
  11593. æFi UMacApp.Globals 
  11594. æT PROCEDURE 
  11595. æC MacAppAlertFilter maps keystrokes to the first character of button labels. 
  11596. The parameter theDialog is a pointer to the specified dialog’s record. The parameter 
  11597. theEvent is the event in the Toolbox event record that the filterProc must process. 
  11598. The itemHit parameter specifies the control that was selected in the dialog box, 
  11599. if any; in the case of an alert box, it is usually a hit on the OK button that 
  11600. dismisses the alert box. 
  11601. MacApp assigns NIL to gMacAppAlertFilter when initializing the application object 
  11602. to specify the routine used by the global routine MacAppAlert. You can assign 
  11603. gMacAppAlertFilter equual to @MacAppAlertFilter after you call IApplication.
  11604.  
  11605.  
  11606. æKY MACount1Resources
  11607. æD FUNCTION MACount1Resources(rType: ResType): INTEGER;
  11608. æFi UMemory 
  11609. æT PROCEDURE 
  11610. æC MACount1Resources returns the number of resources of the specified type that 
  11611. are present only in the resource file referenced by the global variable gCodeRefNum. 
  11612. This file is the application’s resource file. 
  11613. The rType parameter indicates the type of resource that this routine counts. 
  11614. MacApp calls this routine from the global routine DoInitUMemory to determine the 
  11615. number of code segments loaded. You can use this routine to count resources of a 
  11616. specified type in the application’s resource fork.
  11617.  
  11618.  
  11619. æKY MACountResources
  11620. æD FUNCTION MACountResources(rType: ResType): INTEGER;
  11621. æFi UMemory 
  11622. æT PROCEDURE 
  11623. æC MACountResources returns the number of resources of the specified type that 
  11624. are present in a specific search path. This routine searches the file referenced 
  11625. by gCodeRefNum and all resource files opened before it. Files are searched in 
  11626. the reverse of the order in which they were opened; the system resource file is 
  11627. searched last. Because gCodeRefNum usually refers to the file containing the 
  11628. application’s resources, using this search path has the effect of searching 
  11629. through the resources that need to be in the application rather than in the 
  11630. document. (Document files are opened after the application file; they are therefore 
  11631. not included in this search.) 
  11632. The rType parameter indicates the type of resource that this routine counts. 
  11633. MacApp calls this routine from the global routine DoInitUMemory to determine the 
  11634. number of code segments loaded. You can use this routine to count resources of a 
  11635. specified type starting with the application’s resource file.
  11636.  
  11637.  
  11638. æKY MADebuggerMainEntry
  11639. æD PROCEDURE MADebuggerMainEntry(aWhich: ZT; aPLink, aPpc: Longint);
  11640. æFi UDebug 
  11641. æT PROCEDURE 
  11642. æC MADebuggerMainEntry is a utility routine used by the MacApp debugger to handle 
  11643. entry into the debugger, breakpoints, trace commands, and queries about the 
  11644. number of free master pointers in memory. 
  11645. The aWhich parameter specifies the context from which MacApp enters the debugger. 
  11646. Legal values include tBegin, tBeginEndPair, tProgBreak, tSysError, tVBL, and 
  11647. tReadLn. The aPLink and aPpc parameters specify the values of the stack pointer 
  11648. and program counter, respectively. 
  11649. MADebuggerMainEntry is called by several low-level global routines that interact 
  11650. with the debugger. You never need to call this routine yourself. 
  11651.  
  11652.  
  11653. æKY MADrawString
  11654. æD PROCEDURE MADrawString(s: StringPtr; box: Rect; justification: INTEGER);
  11655. æFi UMacAppUtilities 
  11656. æT PROCEDURE 
  11657. æC MADrawString calls the Toolbox routine DrawString for you. MADrawString improves 
  11658. on DrawString by giving you control over the bounds into which the text is drawn, 
  11659. allowing you to specify justification, and drawing non-Roman script text in the 
  11660. correct direction. 
  11661. The s parameter is the address of the text to be drawn. The box parameter specifies 
  11662. the location, in local coordinates, of the rectangle in which each character is 
  11663. to be drawn; the value specified in this parameter should be at least as wide as 
  11664. the first character to be drawn—about 20 pixels is usually a good minimum width. 
  11665. The justification parameter specifies the justification with which the text is 
  11666. to be drawn; legal values are the constants teJustLeft, teJustCenter, teJustRight, 
  11667. and teForceLeft. 
  11668. MacApp calls MADrawString from methods that draw text for use in pop-up menus, 
  11669. page adornments, and TTextGridView objects. You can use this routine in a similar 
  11670. fashion.
  11671.  
  11672.  
  11673. æKY MAGet1IndResource
  11674. æD FUNCTION MAGet1IndResource(rType: ResType; index: INTEGER): Handle;
  11675. æFi UMemory 
  11676. æT PROCEDURE 
  11677. æC MAGet1IndResource returns a handle to a resource specified by type and index; 
  11678. this routine accomplishes the same task as MAGetIndResource except that it searches 
  11679. only the file specified by gCodeRefNum. (This file usually contains the application’s 
  11680. code segments.) This routine reads the resource data into memory if it is not 
  11681. already in memory, unless you have called the Toolbox routine SetResLoad with 
  11682. the argument FALSE. 
  11683. Warning: The handle returned will be an empty handle if you have called SetResLoad(FALSE).
  11684. If MAGet1IndResource does not find the resource, it returns NIL and the Toolbox 
  11685. function ResError returns the result code resNotFound. MAGet1IndResource also 
  11686. returns NIL if the resource is to be read into memory but won't fit; in this 
  11687. case, ResError returns an appropriate operating-system result code.
  11688. The rType parameter indicates the type of resource to be found. The index 
  11689. parameter specifies the resource ID.
  11690. MacApp calls this routine from the global routine DoInitUMemory to determine the 
  11691. number of code segments loaded. You can use this routine to obtain a handle to a 
  11692. specified resource. For more information, see the Resource Manager chapters of 
  11693. Inside Macintosh, Volumes I and IV.
  11694.  
  11695.  
  11696. æKY MAGet1NamedResource
  11697. æD FUNCTION MAGet1NamedResource(rType: ResType; name: Str255): Handle;
  11698. æFi UMemory 
  11699. æT PROCEDURE 
  11700. æC MAGet1NamedResource returns a handle to the resource having the specified 
  11701. type and name; this routine accomplishes the same task as MAGetNamedResource, 
  11702. except that it searches only the file specified by gCodeRefNum (that is, the 
  11703. application’s resource fork). MAGet1NamedResource reads the resource data into 
  11704. memory if it is not already in memory, unless you have called the Toolbox routine 
  11705. SetResLoad with the argument FALSE. 
  11706. Warning: The handle returned will be an empty handle if you have called SetResLoad 
  11707. with the argument FALSE. 
  11708. If MAGet1NamedResource does not find the resource, it returns NIL and the Toolbox 
  11709. function ResError returns the result code resNotFound. MAGet1NamedResource also 
  11710. returns NIL if the resource is to be read into memory but won't fit; in this 
  11711. case, ResError returns an appropriate operating-system result code. 
  11712. The rType parameter indicates the type of resource to be found. The name parameter 
  11713. is a string indicating the name of the resource to be found.
  11714. MacApp calls MAGet1NamedResource from several methods that load resources specified 
  11715. by name. You can use this routine in a similar fashion.
  11716.  
  11717. æKY MAGet1Resource
  11718. æD FUNCTION MAGet1Resource(rType: ResType; rID: INTEGER): Handle;
  11719. æFi UMemory 
  11720. æT PROCEDURE 
  11721. æC MAGet1Resource returns a handle to the resource having the specified type and 
  11722. ID number; this routine accomplishes the same task as MAGetResource except that 
  11723. it searches only the file specified by gCodeRefNum (that is, the resource fork 
  11724. that contains the code resources for the application). This routine reads the 
  11725. resource data into memory if it is not already in memory, unless you have called 
  11726. the Toolbox routine SetResLoad with the argument FALSE. 
  11727. Warning: The handle returned will be an empty handle if you have called SetResLoad 
  11728. with the argument FALSE. 
  11729. If MAGet1Resource does not find the resource, it returns NIL and the 
  11730. Toolbox function ResError returns the result code resNotFound. MAGet1Resource 
  11731. also returns NIL if the resource is to be read into memory but won't fit; in 
  11732. this case, ResError returns an appropriate operating-system result code. 
  11733. The rType parameter indicates the type of resource to be found. The rID parameter 
  11734. is the resource ID of the resource to be found. 
  11735. MacApp calls MAGet1Resource from several methods that load resources specified 
  11736. by resource type and ID. You can use this routine in a similar fashion.
  11737.  
  11738.  
  11739. æKY MAGetIndResource
  11740. æD FUNCTION MAGetIndResource(rType: ResType; index: INTEGER): Handle;
  11741. æFi UMemory 
  11742. æT PROCEDURE 
  11743. æC MAGetIndResource returns a handle to the first resource having the specified 
  11744. type and resource index in an open resource file. The routine searches for the 
  11745. resource by starting at the resource fork that contains the code resources for 
  11746. the application (specified by gCodeRefNum), and then continuing the search through 
  11747. the resource chain. This routine reads the resource data into memory if it is 
  11748. not already in memory, unless you have called the Toolbox routine SetResLoad 
  11749. with the argument FALSE. 
  11750. Warning: The handle returned will be an empty handle if you have called SetResLoad 
  11751. with the argument FALSE. 
  11752. If MAGetIndResource does not 
  11753. find the resource, it returns NIL and the Toolbox function ResError returns the 
  11754. result code resNotFound. MAGetIndResource also returns NIL if the resource is to 
  11755. be read into memory but won't fit; in this case, ResError returns an appropriate 
  11756. operating-system result code.MAGetIndResource searches in the file referenced by 
  11757. gCodeRefNum and all resource files opened before it. Files are searched in the 
  11758. reverse of the order in which they were opened; the system resource file is 
  11759. searched last. Because gCodeRefNum usually refers to the file containing the 
  11760. application’s resources, using this search path has the effect of searching 
  11761. through the resources that need to be in the application rather than in the 
  11762. document. (Document files are opened after the application file; they are therefore 
  11763. not included in this search.)
  11764. The rType parameter indicates the type of resource to be found. The index parameter 
  11765. specifies the resource index. 
  11766. MacApp calls this routine from the global routine DoInitUMemory to determine the 
  11767. number of code segments loaded. You can use MAGetIndResource to obtain handles 
  11768. to all of an application’s resources of a specified type by calling this routine 
  11769. repeatedly over the entire range of the index. The range of the index is returned 
  11770. by calling MACountResources. For more information, see the Resource Manager 
  11771. chapters of Inside Macintosh, Volumes I and IV.
  11772.  
  11773.  
  11774. æKY MAGetMenu
  11775. æD FUNCTION MAGetMenu(menuNo: INTEGER): MenuHandle;
  11776. æFi UMenuSetup 
  11777. æT PROCEDURE 
  11778. æC MAGetMenu returns the handle to a menu you specify by menu ID number. This 
  11779. routine is similar to the Toolbox routine GetMenu, except that MAGetMenu does 
  11780. not attempt to load any resources unless the specified menu is not present in 
  11781. the menu bar. 
  11782. The menuNo parameter is the menu’s menu resource ID. 
  11783. MacApp calls MAGetMenu from methods that set up menus and enable or disable menu 
  11784. commands. You can use it to avoid calling GetMenu more than once when you need a 
  11785. menu handle to a menu that may already be in memory.
  11786.  
  11787.  
  11788. æKY MAGetNamedResource
  11789. æD FUNCTION MAGetNamedResource(rType: ResType; name: Str255): Handle;
  11790. æFi UMemory 
  11791. æT PROCEDURE 
  11792. æC MAGetNamedResource returns a handle to the resource having the specified type 
  11793. and name. (That is, MAGetNamedResource is the same as MAGetResource except that 
  11794. you pass a resource name instead of an ID number.) This routine reads the resource 
  11795. data into memory if it is not already in memory, unless you have called the 
  11796. Toolbox routine SetResLoad with the argument FALSE. Warning: The handle returned 
  11797. will be an empty handle if you have called SetResLoad with the argument FALSE. 
  11798. If MAGetNamedResource does not find the resource, it returns NIL and the Toolbox 
  11799. function ResError returns the result code resNotFound. MAGetNamedResource also 
  11800. returns NIL if the resource is to be read into memory but won't fit; in this 
  11801. case, ResError returns an appropriate operating-system result code. MAGetNamedResource 
  11802. searches in the file referenced by gCodeRefNum and all resource files opened 
  11803. before it. Files are searched in the reverse of the order in which they were 
  11804. opened; the system resource file is searched last. Because gCodeRefNum usually 
  11805. refers to the file containing the application’s resources, using this search 
  11806. path has the effect of searching through the resources that need to be in the 
  11807. application rather than in the document. (Document files are opened after the 
  11808. application file; hence, they are not included in this search.) If it does not 
  11809. find the resource, this routine returns NIL and the ResError function returns 
  11810. the result code resNotFound. 
  11811. The rType parameter indicates the type of resource to be found. The name parameter 
  11812. is a string indicating the name of the resource to be found. 
  11813. MacApp calls MAGetNamedResource from several methods that load resources 
  11814. that are specified by name. You can use this routine in a similar fashion. For 
  11815. more information, see the Resource Manager chapters of Inside Macintosh, Volumes 
  11816. I and IV.
  11817.  
  11818. æKY MAGetNewMBar
  11819. æD FUNCTION MAGetNewMBar(menuRsrcID: INTEGER): Handle;
  11820. æFi UMenuSetup 
  11821. æT PROCEDURE 
  11822. æC MAGetNewMBar creates a menu bar and sets its colors, returning a handle to 
  11823. the resulting menu bar.
  11824. The parameter menuRsrcID is the resource identifier of the menu bar resource 
  11825. that MacApp uses to create the new menu bar. 
  11826. MacApp calls MAGetNewMBar when the application starts up. You can use MAGetNewMBar 
  11827. if you plan to keep multiple menu bars in your application.
  11828.  
  11829.  
  11830. æKY MAGetResource
  11831. æD FUNCTION MAGetResource(rType: ResType; rID: INTEGER): Handle;
  11832. æFi UMemory 
  11833. æT PROCEDURE 
  11834. æC MAGetResource returns a handle to the resource having the specified type and 
  11835. ID number. This routine reads the resource data into memory if it is not already 
  11836. in memory, unless you have called the Toolbox routine SetResLoad with the argument 
  11837. FALSE. 
  11838. Warning: The handle returned will be an empty handle if you have called 
  11839. SetResLoad with the argument FALSE. 
  11840. If MAGetResource does not find the resource, it returns NIL and the Toolbox 
  11841. function ResError returns the result code resNotFound. MAGetResource also returns 
  11842. NIL if the resource is to be read into memory but won't fit; in this case, ResError 
  11843. returns an appropriate operating-system result code.MAGetResource searches in 
  11844. the file referenced by gCodeRefNum and all resource files opened before it. 
  11845. Files are searched in the reverse of the order in which they were opened; the 
  11846. system resource file is searched last. Because gCodeRefNum usually refers to the 
  11847. file containing the application’s resources, using this search path has the 
  11848. effect of searching through the resources that need to be in the application 
  11849. rather than in the document. (Document files are opened after the application 
  11850. file; they are therefore not included in this search.) If it does not find the 
  11851. resource, this routine returns NIL and the ResError function returns the result 
  11852. code resNotFound. 
  11853. The rType parameter indicates the type of resource to be found. The rID parameter 
  11854. is the resource ID of the resource to be found. 
  11855. MacApp calls MAGetResource from several methods that load resources specified 
  11856. by resource type and ID. You can use this routine in a similar fashion. For more 
  11857. information, see the Resource Manager chapters of Inside Macintosh, Volumes I 
  11858. and IV.
  11859.  
  11860.  
  11861. æKY MainHelpProc
  11862. æD PROCEDURE MainHelpProc;
  11863. æFi UDebug 
  11864. æT PROCEDURE 
  11865. æC MainHelpProc displays a list of the MacApp debugger’s command options in the 
  11866. Debug Transcript.MacApp calls MainHelpProc when the Debug Transcript is active 
  11867. and the user types the question mark or the Help key.
  11868. You do not need to call this routine yourself.
  11869.  
  11870.  
  11871. æKY MAInsertMenu
  11872. æD PROCEDURE MAInsertMenu(theMenu: MenuHandle; beforeID: INTEGER);
  11873. æFi UMenuSetup 
  11874. æT PROCEDURE 
  11875. æC MAInsertMenu inserts menu in the menu bar before the specified menu. It also 
  11876. searches for an 'mctb' resource whose resource ID is the menu’s ID; if it finds 
  11877. such a resource, then the specified colors are associated with the menu. 
  11878. The parameter theMenu is the menu handle of the menu to be inserted. The parameter 
  11879. beforeID is the ID of a menu that is already installed; the newly installed menu 
  11880. will appear before it in the menu bar. If the value of beforeID is 0, or if it 
  11881. is not the ID of any menu in the menu bar, then the new menu is installed after 
  11882. all other menus. 
  11883. MAInsertMenu is called by the Draw and DoMouseCommand methods of the class TPopup. 
  11884. You can call this routine to insert a menu at a specified place in the menu 
  11885. bar.
  11886.  
  11887.  
  11888. æKY MAInvalMenuBar
  11889. æD PROCEDURE MAInvalMenuBar;
  11890. æFi UMenuSetup 
  11891. æT PROCEDURE 
  11892. æC This routine is not yet implemented; it will be implemented in a future 
  11893. version of MacApp.
  11894.  
  11895. æKY MakeInspector
  11896. æD PROCEDURE MakeInspector;
  11897. æFi UInspector 
  11898. æT PROCEDURE 
  11899. æC MakeInspector creates a TInspector object. This object is the Inspector that 
  11900. you use to inspect MacApp objects at run time. 
  11901. MacApp calls MakeInspector when initializing a debugging version of an application. 
  11902. You do not need to call this routine yourself.
  11903.  
  11904.  
  11905. æKY MakeInspectorWindow
  11906. æD PROCEDURE MakeInspectorWindow;
  11907. æFi UInspector 
  11908. æT PROCEDURE 
  11909. æC MakeInspectorWindow creates a TInspectWindow object to display the objects 
  11910. that are active in the application. 
  11911. MacApp calls MakeInspectorWindow when you select the New Inspector Window command 
  11912. from the Debug menu. You do not need to call this routine yourself.
  11913.  
  11914.  
  11915. æKY MakeNewInstance
  11916. æD FUNCTION MakeNewInstance(classID: ObjClassId): TObject;
  11917. æFi UObject 
  11918. æT PROCEDURE 
  11919. æC MakeNewInstance creates an instance of the specified class.
  11920. The classID parameter is the identifier of the class to which the new object belongs. 
  11921. MacApp calls MakeNewInstance when creating an instance of a class. You will not 
  11922. need to call this routine yourself.
  11923.  
  11924.  
  11925. æKY MakeNewRgn
  11926. æD FUNCTION MakeNewRgn: RgnHandle;
  11927. æFi UMacApp 
  11928. æT PROCEDURE 
  11929. æC MakeNewRgn creates and returns a new region. If the system fails to allocate 
  11930. the memory required for the region, then the routine signals failure. 
  11931. MacApp calls MakeNewRgn from a variety of routines that manipulate regions. You 
  11932. can use this routine when you need to create a region.
  11933.  
  11934.  
  11935. æKY MAOpenFile
  11936. æD FUNCTION MAOpenFile(name: Str255; volRefnum: INTEGER; openData, openRsrc: BOOLEAN; 
  11937.   dataPerm, rsrcPerm: INTEGER; VAR dataRefnum, rsrcRefnum: INTEGER): OSErr;
  11938. æFi UMacAppUtilities 
  11939. æT PROCEDURE 
  11940. æC MAOpenFile opens the specified forks of the file using the specified permissions. 
  11941. It returns various error codes depending on what happens when it tries to open 
  11942. the file. If the file cannot be opened, or if the resource fork does not exist, 
  11943. then MAOpenFile returns kNoFileRefnum. For any other error, MAOpenFile returns 
  11944. an operating system error. If the file is opened without an error, then the 
  11945. routine returns noErr. 
  11946. The name parameter is the name of the file to be opened. The volRefnum parameter 
  11947. is the volume reference number of the volume that contains the file. If the 
  11948. value of the openData parameter is TRUE, then the routine tries to open the data 
  11949. fork of the file; if the value of the openRsrc parameter is TRUE, then it tries 
  11950. to open the resource fork. The dataPerm and rsrcPerm parameters are the permission 
  11951. codes that MacApp uses in trying to open the file’s data and resource forks. For 
  11952. more information about file access permissions, see Inside Macintosh, Volume V, 
  11953. pages 397–398 . MAOpenFile stores the HFS reference number for the file’s data 
  11954. fork in the dataRefnum parameter, and stores the reference number for the resource 
  11955. fork in rsrcRefnum.
  11956. MacApp calls MAOpenFile from TDocument.OpenAFile. You can use this routine in 
  11957. methods that must open a file.
  11958.  
  11959.  
  11960. æKY MATextBox
  11961. æD PROCEDURE MATextBox(text: Ptr; itsLength: longint; box: Rect;itsJust: INTEGER; 
  11962.    autoWrap: Boolean; wordBreak: ProcPtr; eraseFirst: Boolean; spaceForCaret: Boolean);;
  11963. æFi UMacAppUtilities 
  11964. æT PROCEDURE 
  11965. æC MATextBox draws the specified text with the specified justification in the 
  11966. rectangle indicated by the box parameter. MATextBox does not create an edit 
  11967. record; hence, you cannot edit the text it draws unless you are drawing in a 
  11968. TEditText view.
  11969. The text parameter is a pointer to the text to be drawn; because Pascal strings 
  11970. begin with a length byte, the address you pass in this parameter should be one 
  11971. position past the beginning of the string in order to point to the start of the 
  11972. text. The itsLength parameter indicates the number of characters to be drawn. 
  11973. The box parameter specifies in local coordinates the rectangle in which the 
  11974. characters are to be drawn; the value specified in this parameter should be at 
  11975. least as wide as the first character to be drawn—about 20 pixels is usually a 
  11976. good minimum width. The itsJust parameter specifies the text’s justification. 
  11977. Set the autoWrap parameter to TRUE if you want to word-wrap. The wordBreak parameter 
  11978. is the address of the procedure used to determine where word breaks occur; set 
  11979. this parameter to NIL if you want to use TextEdit’s default word-wrap routine. 
  11980. Set the value of the eraseFirst parameter to TRUE if you want to erase the rectangle 
  11981. before drawing. The spaceForCaret parameter allows you to adjust the text drawn 
  11982. by one pixel on either side in order to account for the space occupied by the 
  11983. caret if there is one; you usually will set the value of this parameter to TRUE 
  11984. if the text can be edited or can become editable (as with a TEditText view). If 
  11985. the text cannot be edited, as with a control label or TStaticText object, you 
  11986. usually do not need to leave space for a caret.
  11987. MacApp calls MATextBox from methods that draw text for a variety of purposes, 
  11988. including use in dialog boxes, control clusters, editable text views, and static 
  11989. text strings. You can use this routine to draw text also.
  11990. For further information about justification, see the discussion of Edit Records 
  11991. in the Text Edit chapter of Inside Macintosh, Volume V; also see the Text Edit 
  11992. section of the chapter entitled “The User Interface Toolbox” in The Programmer’s 
  11993. Introduction to the Macintosh Family. For details about the FontInfo data type, 
  11994. see the Quick Draw chapter of Inside Macintosh, Volume I. 
  11995.  
  11996.  
  11997.  
  11998.  
  11999.  
  12000. æKY MAUseResFile
  12001. æD FUNCTION MAUseResFile(refNum: INTEGER): INTEGER;
  12002. æFi UMacAppUtilities 
  12003. æT PROCEDURE 
  12004. æC MAUseResFile sets the current resource file to the specified file and returns 
  12005. the old setting of the resource file by calling the Toolbox routine CurResFile. 
  12006. If no open resource file has the specified reference number, this routine does 
  12007. nothing and the Toolbox function ResErr returns the result code resFNotFound. 
  12008. The refNum parameter is the reference number of the specified resource file. A 
  12009. value of 0 represents the system resource file. 
  12010. MacApp calls MAUseResFile from several methods that manipulate resources. You 
  12011. can use this routine to specify a particular resource file as the current resource 
  12012. file.
  12013.  
  12014.  
  12015. æKY Max
  12016. æD FUNCTION Max(a, b: LONGINT): LONGINT;
  12017. æFi UMacAppUtilities 
  12018. æT PROCEDURE 
  12019. æC Max returns the greater of its two arguments. 
  12020. The parameters a and b are the values to be compared. 
  12021. MacApp calls Max from a variety of routines that compare numeric values. You can 
  12022. use this routine in a similar fashion.
  12023.  
  12024.  
  12025. æKY MemSpaceIsLow
  12026. æD FUNCTION MemSpaceIsLow: BOOLEAN;
  12027. æFi UMemory 
  12028. æT PROCEDURE 
  12029. æC MemSpaceIsLow returns TRUE if the amount of free memory is dangerously small. 
  12030. MacApp calls MemSpaceIsLow from several routines that depend on the availability 
  12031. of free memory to function correctly. You can use this routine when you need to 
  12032. determine whether free memory is in critically short supply.
  12033.  
  12034.  
  12035. æKY MenuBarHasPendingUpdate
  12036. æD FUNCTION MenuBarHasPendingUpdate: BOOLEAN;
  12037. æFi UMenuSetup 
  12038. æT PROCEDURE 
  12039. æC MenuBarHasPendingUpdate returns TRUE if the menu bar is invalid and should be 
  12040. redrawn.
  12041. MacApp calls this routine when setting up the menus or when handling events that 
  12042. affect the appearance of menu titles in the menu bar. You can use this routine 
  12043. in a similar fashion.
  12044.  
  12045.  
  12046. æKY MenusHavePendingUpdate
  12047. æD FUNCTION MenusHavePendingUpdate: BOOLEAN;
  12048. æFi UMenuSetup 
  12049. æT PROCEDURE 
  12050. æC MenusHavePendingUpdate returns TRUE if any menu item is invalid and needs to 
  12051. be redrawn. 
  12052. MacApp calls this routine when setting up the menus. You can use this routine to 
  12053. determine whether there are menu items that need to be redrawn.
  12054.  
  12055. æKY Min
  12056. æD FUNCTION Min(a, b: LONGINT): LONGINT;
  12057. æFi UMacAppUtilities 
  12058. æT PROCEDURE 
  12059. æC Min returns the lesser of its two arguments.
  12060. The parameters a and b are the values to be compared.
  12061. MacApp calls Min from a variety of routines that compare two numeric values. You 
  12062. can use this routine in a similar fashion.
  12063.  
  12064.  
  12065. æKY MinMax
  12066. æD FUNCTION MinMax(MinVal, expression, MaxVal: LONGINT): LONGINT;
  12067. æFi UMacAppUtilities 
  12068. æT PROCEDURE 
  12069. æC MinMax returns the value of the specified expression unless it is greater 
  12070. than the specified maximum or less than the specified minimum. 
  12071. If the value of the expression is less than the value of MinVal, then MinVal is 
  12072. returned. If the value of the expression is greater than the value of MaxVal, 
  12073. then MaxVal is returned. Otherwise, the value of the expression parameter itself 
  12074. is returned. 
  12075. You can call MinMaxwhen you need to ensure that a numeric value is within a 
  12076. specified range.
  12077.  
  12078.  
  12079. æKY NeedCalcMenuSize
  12080. æD PROCEDURE NeedCalcMenuSize(aMenuHandle: MenuHandle);
  12081. æFi UMenuSetup 
  12082. æT PROCEDURE 
  12083. æC NeedCalcMenuSize ensures that the application makes the Toolbox call CalcMenuSize 
  12084. appropriately when changing the specified menu. 
  12085. The parameter aMenuHandle is a handle to the menu whose size is to be calculated.
  12086. You must call NeedCalcMenuSize for any menu that you change by directly inserting 
  12087. or deleting items. You do not need to call this routine if you do all menu manipulation 
  12088. using only the routines defined in the UMenuSetup unit.
  12089.  
  12090.  
  12091. æKY NewAllocatedList
  12092. æD FUNCTION NewAllocatedList(iSize: ArrayIndex): TList;
  12093. æFi UList 
  12094. æT PROCEDURE 
  12095. æC NewAllocatedList creates a TList object having the specified array size; it 
  12096. then initializes and returns the object. 
  12097. The iSize parameter specifies the initial number of elements in the TList object’s 
  12098. array. 
  12099. MacApp never calls this routine; it is provided for your convenience. You can 
  12100. call it to create a new TList object having a specified initial size.
  12101.  
  12102.  
  12103. æKY NewList
  12104. æD FUNCTION NewList: TList;
  12105. æFi UList 
  12106. æT PROCEDURE 
  12107. æC NewList creates a TList object, initializes it, and returns it. 
  12108. MacApp calls NewList from a variety of routines that generate TList objects. You 
  12109. can call it to create a new TList object.
  12110.  
  12111.  
  12112. æKY NewObjectByClassId
  12113. æD FUNCTION NewObjectByClassId(classID: ObjClassID): TObject;
  12114. æFi UObject 
  12115. æT PROCEDURE 
  12116. æC NewObjectByClassId creates a new object with the specified class identifier. 
  12117. The classID parameter is the identifier that specifies the class of the new 
  12118. object. 
  12119. MacApp calls NewObjectByClassId from the global routine NewStdObject. You do not 
  12120. need to call this routine yourself.
  12121.  
  12122.  
  12123. æKY NewObjectByClassName
  12124. æD FUNCTION NewObjectByClassName(className: MAName): TObject;
  12125. æFi UObject 
  12126. æT PROCEDURE 
  12127. æC NewObjectByClassName creates a new object with the specified class name. 
  12128. The parameter className is the name that specifies the class of the new object. 
  12129. MacApp calls NewObjectByClassName from TEvtHandler.CreateAView. You do not need 
  12130. to call this routine yourself.The parameter className is the name that specifies 
  12131. the class of the new object.
  12132.  
  12133.  
  12134. æKY NewPaletteWindow
  12135. æD FUNCTION NewPaletteWindow(itsRsrcID: INTEGER; wantHScrollBar, 
  12136.   wantVScrollBar: BOOLEAN; itsDocument: TDocument; itsMainView: TView; 
  12137.     itsPaletteView: TView; sizePalette: INTEGER; whichWay: VHSelect): TWindow;
  12138. æFi UMacApp 
  12139. æT PROCEDURE 
  12140. æC NewPaletteWindow creates a TWindow object with a subview that you can use as 
  12141. a palette or a non-scrolling status area. 
  12142. The parameter itsRsrcID is the resource ID of the 'WIND' resource that MacApp 
  12143. will use to create the TWindow object. If the value of the wantHScrollBar parameter 
  12144. is TRUE, then the resulting window will have a horizontal scroll bar, and if the 
  12145. value of the wantVScrollBar parameter is TRUE, then it will have a vertical 
  12146. scroll bar. If either parameter is TRUE, the window gets a scroller. The parameter 
  12147. itsDocument is the TDocument object to be associated with the TWindow object. 
  12148. The parameter itsMainView is the TView object to be the main display area of the 
  12149. window. The parameter itsPaletteView is the TView object to be the window’s 
  12150. palette or status area. The sizePalette parameter specifies the amount of space 
  12151. that the palette or status area is to occupy; it is the distance, in pixels, 
  12152. from the edge of the window to the inner edge of the palette or status area. The 
  12153. whichWay parameter determines whether the palette is to be arranged vertically 
  12154. or horizontally. If the value of whichWay is h, then the palette will appear on 
  12155. the left side of the window, stretching from top to bottom. If the value of 
  12156. whichWay is v, then the palette will appear at the top of the window, stretching 
  12157. from left to right. 
  12158. You can use NewPaletteWindow to create a window that incorporates a palette or 
  12159. status region.
  12160.  
  12161.  
  12162. æKY NewPermHandle
  12163. æD FUNCTION NewPermHandle(logicalSize: Size): Handle;
  12164. æFi UMemory 
  12165. æT PROCEDURE 
  12166. æC NewPermHandle allocates and returns a handle to a permanently allocated block 
  12167. of memory. 
  12168. The logicalSize parameter specifies the newly allocated block’s logical size, in 
  12169. bytes.
  12170. MacApp calls NewPermHandle from a variety of routines that allocate permanent 
  12171. blocks of memory. You should use this routine instead of the Toolbox routine 
  12172. NewHandle when you need to allocate permanent blocks of memory.
  12173.  
  12174.  
  12175. æKY NewPermPtr
  12176. æD FUNCTION NewPermPtr(logicalSize: Size): Ptr;
  12177. æFi UMemory 
  12178. æT PROCEDURE 
  12179. æC NewPermPtr allocates and returns a pointer to a permanently allocated block 
  12180. of memory. 
  12181. The logicalSize parameter specifies the newly allocated block’s logical size, in 
  12182. bytes.
  12183. MacApp calls NewPermPtr from a variety of routines that allocate permanent blocks 
  12184. of memory. You should use this routine instead of the Toolbox routine NewPtr 
  12185. when you need to allocate permanent blocks of memory.
  12186.  
  12187.  
  12188. æKY NewSimpleWindow
  12189. æD FUNCTION NewSimpleWindow(itsRsrcID: INTEGER; wantHScrollBar, 
  12190.   wantVScrollBar: BOOLEAN; itsDocument: TDocument; itsView: TView): TWindow;
  12191. æFi UMacApp 
  12192. æT PROCEDURE 
  12193. æC NewSimpleWindow creates a TWindow object with a single main subview and returns 
  12194. it. 
  12195. The parameter itsRsrcID is the resource ID of the 'WIND' resource to be used to 
  12196. create the window. If the value of the wantHScrollBar parameter is TRUE, then 
  12197. the window will have a horizontal scroll bar; if the value of the wantVScrollBar 
  12198. parameter is TRUE then it will have a vertical scroll bar. The parameter itsDocument 
  12199. is the TDocument object to be associated with the TWindow object. The parameter 
  12200. itsView is the TView object to be the window’s main display area.
  12201. MacApp calls NewSimpleWindow from TApplication.MakeClipboardWindow. You can use 
  12202. this routine when you need to create a simple window.
  12203.  
  12204.  
  12205. æKY NewSortedList
  12206. æD FUNCTION NewSortedList: TSortedList;
  12207. æFi UList 
  12208. æT PROCEDURE 
  12209. æC NewSortedList creates a TSortedList object, initializes it, and returns it.
  12210. MacApp never calls this routine; it is provided for your convenience. You can 
  12211. call it when you want to create a new TSortedList object.
  12212.  
  12213.  
  12214. æKY NewStdObject
  12215. æD FUNCTION NewStdObject(signature: IDType): TObject;
  12216. æFi UMacApp 
  12217. æT PROCEDURE 
  12218. æC NewStdObject creates a prototype instance of the specified class that MacApp 
  12219. uses to create an object. 
  12220. The signature parameter is the class identifier of the class to which the new 
  12221. object belongs. For a list of constants that can be used to define standard 
  12222. objects, see the definitions of object signatures in the file UMacApp.p. 
  12223. MacApp uses NewStdObject to create certain TView objects. You usually do not 
  12224. need to call this routine yourself.
  12225.  
  12226.  
  12227. æKY NewTemplateWindow
  12228. æD FUNCTION NewTemplateWindow(viewRsrcID: INTEGER; itsDocument: TDocument): TWindow;
  12229. æFi UMacApp 
  12230. æT PROCEDURE 
  12231. æC NewTemplateWindow creates a TWindow object using a view template and returns 
  12232. the TWindow object. 
  12233. The parameter viewRsrcId is the resource ID of the view template that MacApp 
  12234. uses to create the window. The parameter itsDocument is the TDocument object to 
  12235. be associated with the TWindow object. 
  12236. MacApp calls NewTemplateWindow from several routines that create windows. You 
  12237. can use this routine when you need to create a new window from a 'view' resource.
  12238.  
  12239.  
  12240. æKY NewTWindow
  12241. æD FUNCTION NewTWindow(itsRsrcID: INTEGER; itsDocument: TDocument): TWindow;
  12242. æFi UMacApp 
  12243. æT PROCEDURE 
  12244. æC NewTWindow creates and returns a TWindow object. 
  12245. The parameter itsRsrcID is the resource ID of the view template that MacApp uses 
  12246. to create the window. The parameter itsDocument is the TDocument object to be 
  12247. associated with the TWindow object. 
  12248. MacApp calls NewTWindow from the global routines NewPaletteWindow and NewSimpleWindow. 
  12249. You do not need to call this routine yourself.
  12250.  
  12251.  
  12252. æKY NewViewRsrc
  12253. æD FUNCTION NewViewRsrc(VAR p: UNIV Ptr): ViewRsrcHndl;
  12254. æFi UMacApp 
  12255. æT PROCEDURE 
  12256. æC NewViewRsrc creates and returns a new initialized view template. 
  12257. NewViewRsrc returns a pointer to the new template’s first entry in the p parameter.
  12258. You can use NewViewRsrc when you need to create a new view resource.
  12259.  
  12260.  
  12261. æKY NotYetImplemented
  12262. æD PROCEDURE NotYetImplemented(where: Str255);
  12263. æFi UMacApp 
  12264. æT PROCEDURE 
  12265. æC NotYetImplemented displays an alert message that warns the user that a feature 
  12266. of the application is not yet implemented.
  12267. The where parameter is a string that gives more specific information about the 
  12268. unimplemented feature in debugging versions of the application. NotYetImplemented 
  12269. displays its message in the Debug Transcript followed by the string passed in 
  12270. the where parameter. 
  12271. You can use this routine to handle events that select unimplemented features of 
  12272. your application.
  12273.  
  12274.  
  12275. æKY NullMenuProc
  12276. æD PROCEDURE NullMenuProc(message: INTEGER; aMenuHandle: MenuHandle; 
  12277.   VAR menuRect: Rect; hitPt: Point; VAR whichItem: INTEGER);
  12278. æFi UMenuSetup 
  12279. æT PROCEDURE 
  12280. æC NullMenuProc disables the Toolbox routine CalcMenuSize for the specified 
  12281. menu. 
  12282. MacApp ignores all the parameters of this routine except aMenuHandle. This 
  12283. parameter is a handle to the menu for which CalcMenuSize is to be disabled. 
  12284. MacApp disables CalcMenuSize during menu setup by assigning each menu’s menuProc 
  12285. to be NullMenuProc. You do not need to call this routine yourself.
  12286.  
  12287.  
  12288. æKY NumberToHex
  12289. æD PROCEDURE NumberToHex(theNumber: UNIV LONGINT; VAR hexString: Str255; 
  12290.   hexDigits: INTEGER);
  12291. æFi UMacAppUtilities 
  12292. æT PROCEDURE 
  12293. æC NumberToHex converts the specified number to an equivalent string of hexadecimal 
  12294. digits preceded by the dollar sign character. 
  12295. The parameter theNumber is the number to be converted. NumberToHex stores the 
  12296. resulting string in the hexString parameter. The hexDigits parameter specifies 
  12297. the number of digits to appear in the hexadecimal string. 
  12298. MacApp calls NumberToHex from the global routine StdFieldToString. You can use 
  12299. this routine when you need to convert decimal numbers to hexadecimal strings.
  12300.  
  12301.  
  12302. æKY NumBlocks
  12303. æD FUNCTION NumBlocks(numBytes: LONGINT; blkSize: LONGINT): LONGINT;
  12304. æFi UMacAppUtilities 
  12305. æT PROCEDURE 
  12306. æC NumBlocks returns the number of blocks of a specified size required to store 
  12307. the specified number of bytes.
  12308. The numBytes parameter is the number of bytes to be stored. The blkSize parameter 
  12309. is the size of each block.
  12310. MacApp calls NumBlocks from TDocument.Save. You usually do not need to call this 
  12311. routine yourself.
  12312.  
  12313.  
  12314. æKY NumToolboxTraps
  12315. æD FUNCTION NumToolboxTraps: INTEGER;
  12316. æFi UMacAppUtilities 
  12317. æT PROCEDURE 
  12318. æC NumToolboxTraps returns the size of the trap table.
  12319. MacApp calls this routine when checking for the existence or validity of certain 
  12320. traps. You can call NumToolboxTraps to check the size of the trap table.
  12321.  
  12322.  
  12323. æKY OBJFail
  12324. æD PROCEDURE OBJFail(error: INTEGER);
  12325. æFi UObject 
  12326. æT PROCEDURE 
  12327. æC OBJFail terminates execution of the application and displays an error message 
  12328. indicating the cause of failure. 
  12329. The error parameter is the error number that corresponds to the failure condition.
  12330. MacApp calls OBJFail when basic object operations such as method calls or object 
  12331. type casts fail. You do not need to call this routine yourself.
  12332.  
  12333.  
  12334. æKY OffsetPtr
  12335. æD PROCEDURE OffsetPtr(VAR p: UNIV LONGINT; offset: LONGINT);
  12336. æFi UMacApp 
  12337. æT PROCEDURE 
  12338. æC OffsetPtr adds the specified offset to the given pointer, ensuring that the 
  12339. resulting pointer is properly word-aligned. 
  12340. The p parameter is the pointer that is to be offset when the routine is called; 
  12341. when it returns, p is the resulting pointer. The offset parameter is the number 
  12342. of bytes to add to the pointer’s value to obtain the new pointer. 
  12343. MacApp calls OffsetPtr from a variety of methods that manipulate memory or perform 
  12344. low-level data access with Pascal records. You can use this routine in a similar 
  12345. fashion.
  12346.  
  12347.  
  12348. æKY OffsetPtrWStr
  12349. æD PROCEDURE OffsetPtrWStr(VAR p: UNIV LONGINT; offset: LONGINT);
  12350. æFi UMacApp 
  12351. æT PROCEDURE 
  12352. æC OffsetPtrWStr assumes that the p parameter points to a data structure that 
  12353. has a Str255 at the end. The routine offsets the pointer by the amount necessary 
  12354. to take into account the length byte and the contents of the string. Thus, it 
  12355. only adds the relevant amount to the pointer, ensuring that the resulting pointer 
  12356. is properly word-aligned. 
  12357. The p parameter is the pointer that is to be offset when the routine is called; 
  12358. when it returns, p is the resulting pointer. The offset parameter is the size of 
  12359. the data structure including the full size of the Str255 that is to be added to 
  12360. the pointer’s value to obtain the new pointer. 
  12361. MacApp calls OffsetPtrWStr from a variety of methods that need access to data 
  12362. that is stored with only the relevant portions of the final Str255 in the data 
  12363. structure. You can use this routine in a similar fashion.
  12364.  
  12365.  
  12366. æKY OffsetVRect
  12367. æD PROCEDURE OffsetVRect(VAR r: VRect; dh, dv: VCoordinate);
  12368. æFi UViewCoords 
  12369. æT PROCEDURE 
  12370. æC OffsetVRect changes the location of a view rectangle by the specified horizontal 
  12371. and vertical distances and stores the resulting rectangle in the passed parameter.
  12372. The r parameter is the rectangle to be moved when the routine is called; it is 
  12373. the resulting rectangle when the routine returns. The dh parameter is the distance 
  12374. that the rectangle is to be moved horizontally, and dv is the distance that it 
  12375. is to be moved vertically.
  12376. MacApp calls this routine from several view methods that change the location of 
  12377. the view rectangle. You can use this routine in a similar fashion.
  12378.  
  12379.  
  12380. æKY OptionKeyIsDown
  12381. æD FUNCTION OptionKeyIsDown: BOOLEAN;
  12382. æFi UMacApp 
  12383. æT PROCEDURE 
  12384. æC OptionKeyIsDown reads the current state of the keyboard and returns the value 
  12385. TRUE if the Option key is pressed while this method is called.
  12386. MacApp calls this method from the TApplication methods HandleFinderRequest and 
  12387. OpenDeskAccessory to determine whether the user is pressing the option key while 
  12388. opening documents or desk accessories, respectively. You can use this method in 
  12389. a similar fashion.
  12390.  
  12391.  
  12392. æKY OrderClassIdsByName
  12393. æD PROCEDURE OrderClassIdsByName;
  12394. æFi UObject 
  12395. æT PROCEDURE 
  12396. æC OrderClassIdsByName sorts the global list of class identifiers alphabetically 
  12397. by class name.
  12398. MacApp calls OrderClassIdsByName from the global routine InitUObject. You do not 
  12399. need to call this routine yourself.
  12400.  
  12401.  
  12402. æKY ParseTitleTemplate
  12403. æD FUNCTION ParseTitleTemplate(VAR itsTemplate: Str255;
  12404. VAR preDocname, constTitle: INTEGER): BOOLEAN;
  12405. æFi UMacApp 
  12406. æT PROCEDURE 
  12407. æC ParseTitleTemplate uses the passed template string to generate titles for 
  12408. document windows. 
  12409. The itsTemplate parameter is the string that is used as a template for document 
  12410. names. The preDocname parameter is the starting position of the document name in 
  12411. the template string. The constTitle parameter is the number of characters in the 
  12412. title template that do not change from document to document. 
  12413. MacApp calls ParseTitleTemplate from TWindow.IWindow to parse templates for 
  12414. window titles. You do not need to call this routine yourself.
  12415.  
  12416.  
  12417. æKY PatchTrap
  12418. æD FUNCTION PatchTrap(VAR thePatch: TrapPatch; theTrapNum: INTEGER; 
  12419.   theRoutine: Ptr): INTEGER;
  12420. æFi UPatch 
  12421. æT PROCEDURE 
  12422. æC PatchTrap installs a patch to the specified trap, returns an error code, and 
  12423. returns a completed TrapPatch record that corresponds to the patch (the TrapPatch 
  12424. record is defined in UPatch.p). 
  12425. PatchTrap stores a TrapPatch record that corresponds to the patch specified in 
  12426. the parameter thePatch. The parameter theTrapNum is the number of the A-line 
  12427. trap that will be patched. The parameter theRoutine is a pointer to the routine 
  12428. that patches the trap. 
  12429. MacApp calls PatchTrap from several global routines that set up the MacApp run-time 
  12430. environment. You can use this routine to install your own traps. Be careful, 
  12431. though, to follow the guidelines in Macintosh® Technical Note #25, “Don’t Depend 
  12432. on Register A5 Within Trap Patches”; patching traps can be dangerous if you do 
  12433. not follow these guidelines.
  12434.  
  12435.  
  12436. æKY PerfCmd
  12437. æD PROCEDURE PerfCmd;
  12438. æFi UDebug 
  12439. æT PROCEDURE 
  12440. æC PerfCmd handles keystrokes for the MacApp debugger's performance-measurement 
  12441. tools.
  12442. MacApp calls PerfCmd from the MacApp debugger when the user invokes 
  12443. performance-monitoring tools for an application compiled with the qPerform flag set 
  12444. to TRUE. You usually do not need to call PerfCmd yourself.
  12445.  
  12446.  
  12447. æKY PerformMenuSetup
  12448. æD PROCEDURE PerformMenuSetup(PROCEDURE TheMenuSetterUpper);
  12449. æFi UMenuSetup 
  12450. æT PROCEDURE 
  12451. æC PerformMenuSetup creates and initializes all the menus used by the application 
  12452. when it is launched. 
  12453. The parameter TheMenuSetterUpper is a procedure declared separately that performs 
  12454. the actual operations needed to set up the application menus. 
  12455. MacApp calls PerformMenuSetup from TApplication.SetupTheMenus. You do not need 
  12456. to call this routine yourself.
  12457.  
  12458.  
  12459. æKY PermAllocation
  12460. æD FUNCTION PermAllocation(permanent: BOOLEAN): BOOLEAN;
  12461. æFi UMemory 
  12462. æT PROCEDURE 
  12463. æC PermAllocation specifies whether subsequent memory allocations are considered 
  12464. permanent or temporary. It returns the previous state of the permanent allocation 
  12465. flag. 
  12466. Set the permanent parameter to TRUE to specify permanent allocation; pass FALSE 
  12467. for temporary allocation. 
  12468. MacApp calls PermAllocation from a variety of routines that create or manipulate 
  12469. permanent blocks of memory. You usually do not need to call this routine yourself. 
  12470. You can allocate temporary memory using the Toolbox routines NewPtr and NewHandle, 
  12471. and you can allocate permanent memory using the MacApp global routines NewPermPtr 
  12472. and NewPermHandle.
  12473.  
  12474.  
  12475. æKY PinOnRect
  12476. æD FUNCTION PinOnRect(theRect: Rect; thePt: Point): LONGINT;
  12477. æFi UMacAppUtilities 
  12478. æT PROCEDURE 
  12479. æC PinOnRect “pins,” or constrains, a point inside the specified rectangle, 
  12480. changing its coordinates if necessary, and returns the point. 
  12481. The parameter theRect is the rectangle that defines the area that the point may 
  12482. occupy. The parameter thePt specifies the point that is to be pinned. 
  12483. You can use PinOnRect to adjust the positions of points so that they lie within 
  12484. a constraining rectangle.
  12485.  
  12486.  
  12487. æKY PinVRect
  12488. æD PROCEDURE PinVRect(r: VRect; VAR pt: VPoint);
  12489. æFi UViewCoords 
  12490. æT PROCEDURE 
  12491. æC PinVRect “pins,” or constrains, a view point within the specified view rectangle.
  12492. The r parameter is the rectangle that is to contain the pinned point. The pt 
  12493. parameter is the point to be pinned when the routine is called; it is the pinned 
  12494. point when the routine returns.
  12495. MacApp uses PinVRect from several TrackMouse methods to constrain a point within 
  12496. a view rectangle. You can use this routine in a similar fashion.
  12497.  
  12498.  
  12499. æKY PointerToHex
  12500. æD PROCEDURE PointerToHex(theNumber: UNIV LONGINT; VAR hexString: Str255; 
  12501.   hexDigits: INTEGER);
  12502. æFi UMacAppUtilities 
  12503. æT PROCEDURE 
  12504. æC PointerToHex converts a pointer to a string of hexadecimal digits. 
  12505. The parameter theNumber is the number to be converted. If theNumber is zero, 
  12506. then the hexString parameter is set to 'Nil'; otherwise theNumber is converted 
  12507. to a hex string preceeded with '$' and stored in hexString when the routine 
  12508. returns. The hexDigits parameter specifies the number of digits that are to 
  12509. appear in the hexadecimal string. 
  12510. MacApp calls PointerToHex from several routines that display pointer values; for 
  12511. example, the TObjectView class uses PointerToHex to display the addresses of 
  12512. objects. You can use this routine in a similar fashion.
  12513.  
  12514.  
  12515. æKY PositionDebugWindow
  12516. æD PROCEDURE PositionDebugWindow(where: CHAR);
  12517. æFi UDebug 
  12518. æT PROCEDURE 
  12519. æC PositionDebugWindow brings the Debug Transcript to the front, or sends it 
  12520. behind all other windows, as specified. 
  12521. The where parameter specifies which action the routine is to take. If the value 
  12522. of the where parameter is F, then PositionDebugWindow brings the Debug Transcript 
  12523. to the front. If the value of the where parameter is B, then PositionDebugWindow 
  12524. sends the Debug Transcript behind all other windows. 
  12525. MacApp calls PositionDebugWindow from the MacApp debugger’s command-handling 
  12526. code. You do not need to call this routine yourself.
  12527.  
  12528.  
  12529. æKY PostLoadMacAppSegment
  12530. æD PROCEDURE PostLoadMacAppSegment;
  12531. æFi UMemory 
  12532. æT PROCEDURE 
  12533. æC PostLoadMacAppSegment restores the current resource file.
  12534. MacApp calls PostLoadMacAppSegment at the end of the LoadSeg patch. You do not 
  12535. need to call this routine yourself.
  12536.  
  12537.  
  12538. æKY PreloadSegment
  12539. æD FUNCTION PreloadSegment(segnum: INTEGER): BOOLEAN;
  12540. æFi UMemory 
  12541. æT PROCEDURE 
  12542. æC PreloadSegment attempts to load a code segment into the top of the heap and 
  12543. lock it. The routine returns TRUE if it successfully loads the segment.The segnum 
  12544. parameter specifies which code segment is to be loaded. 
  12545. MacApp calls PreloadSegment from the global routines LoadMacAppSegment and 
  12546. SetResidentSegment. You can use PreloadSegment if you need to load a code segment 
  12547. or if you need to determine whether a segment can be loaded before calling its routines.
  12548.  
  12549.  
  12550. æKY PreloadSegmentResource
  12551. æD FUNCTION PreloadSegmentResource(segNum: INTEGER): BOOLEAN;
  12552. æFi UMemory 
  12553. æT PROCEDURE 
  12554. æC PreloadSegmentResource attempts to load an application’s code segment into 
  12555. the top of the heap and lock it. The routine returns TRUE if it successfully 
  12556. loads the segment. 
  12557. The segNum parameter specifies the code segment to be loaded. 
  12558. MacApp calls PreloadSegmentResource from the global routine LoadMacAppSegment. 
  12559. You usually do not need to call this routine yourself.
  12560.  
  12561.  
  12562. æKY ProgramBreak
  12563. æD PROCEDURE ProgramBreak(grievance: Str255);
  12564. æFi UFailure 
  12565. æT PROCEDURE 
  12566. æC ProgramBreak causes a program to break, passes control to the Debug Transcript’s 
  12567. command handler, and displays a break message. 
  12568. The grievance parameter is the message to be displayed in the Debug Transcript. 
  12569. MacApp calls ProgramBreak from numerous routines when certain types of operations 
  12570. fail. You can use this routine for debugging; you call it when critical conditions 
  12571. for which you are testing are not satisfied.
  12572.  
  12573.  
  12574. æKY ProgramReport
  12575. æD PROCEDURE ProgramReport(grievance: Str255; break: BOOLEAN);
  12576. æFi UFailure 
  12577. æT PROCEDURE 
  12578. æC ProgramReport displays a message in the Debug Transcript.
  12579. The grievance parameter is the message to be displayed in the Debug Transcript. 
  12580. If the value of the break parameter is TRUE, then ProgramReport causes a program 
  12581. break. 
  12582. MacApp calls ProgramReport from the global routines CheckRsrcUsage and UnloadAllSegments. 
  12583. You can use this routine for debugging and profiling in your application, and 
  12584. you can call it to display information about your application’s behavior and 
  12585. performance in the Debug Transcript.
  12586.  
  12587.  
  12588. æKY PRStr
  12589. æD FUNCTION PRStr(astr: Str255): Ptr; 
  12590. æFi UMacAppUtilities 
  12591. æT PROCEDURE 
  12592. æC PRStr returns the address of a string. This is useful for getting a string in 
  12593. a packed record. 
  12594. The astr parameter is a pointer to the field of a packed record that contains the
  12595. string of interest. 
  12596. MacApp uses PRStr to get the addresses of strings it is copying that are stored 
  12597. in packed records. You can use this routine in a similar fashion.
  12598.  
  12599.  
  12600. æKY Pt2VRect
  12601. æD PROCEDURE Pt2VRect(topLeft, botRight: VPoint; VAR dstRect: VRect);
  12602. æFi UViewCoords 
  12603. æT PROCEDURE 
  12604. æC Pt2VRect changes a view rectangle so that its top-left point and its bottom-right 
  12605. point correspond with the specified view points. 
  12606. The topLeft parameter specifies the view rectangle’s new top-left point; the 
  12607. bottomRight parameter specifies its new bottom-right point. The dstRect parameter 
  12608. is the view rectangle to be modified when the routine is called and is the modified 
  12609. view rectangle when the routine returns. 
  12610. You can call this routine to create a view rectangle using two view points.
  12611.  
  12612.  
  12613. æKY PtInVRect
  12614. æD FUNCTION PtInVRect(pt: VPoint; r: VRect): BOOLEAN;
  12615. æFi UViewCoords 
  12616. æT PROCEDURE 
  12617. æC PtInVRect returns TRUE if the specified view point is in the specified rectangle. 
  12618. The pt parameter is the point to be tested, and the r parameter is the rectangle 
  12619. to be tested. 
  12620. MacApp uses PtInVRect when testing the position of the mouse against displayed 
  12621. views. You can use this routine in a similar fashion.
  12622.  
  12623.  
  12624. æKY PtIsVisible
  12625. æD FUNCTION PtIsVisible(pt: Point): BOOLEAN;
  12626. æFi UMacApp.Globals 
  12627. æT PROCEDURE 
  12628. æC PtIsVisible returns TRUE if the value of gDrawingPictScrap is TRUE or the 
  12629. specified point is within both thePort’s visible region and thePort’s clip region. 
  12630. The pt parameter is the point to be tested. 
  12631. MacApp does not call this routine; it is provided for your convenience. You can 
  12632. use it to determine whether a point is visible or if the PICT scrap is currently 
  12633. being drawn.
  12634.  
  12635.  
  12636. æKY PtToVPt
  12637. æD PROCEDURE PtToVPt(thePt: Point; VAR theVPt: VPoint);
  12638. æFi UViewCoords 
  12639. æT PROCEDURE 
  12640. æC PtToVPt changes a view point so that it has the same coordinates as the specified 
  12641. QuickDraw point. 
  12642. The parameter thePt is the QuickDraw point whose coordinates are to be copied. 
  12643. The parameter theVPt is the view point to be modified when the routine is called 
  12644. and is the modified point when PtToVPt returns. 
  12645. MacApp frequently calls PtToVPt to convert the position of the mouse into view 
  12646. coordinates so that the position can be tested. You can use this routine in a 
  12647. similar fashion.
  12648.  
  12649.  
  12650. æKY PullApplicationToFront
  12651. æD PROCEDURE PullApplicationToFront;
  12652. æFi UMacAppUtilities 
  12653. æT PROCEDURE 
  12654. æC PullApplicationToFront forces MultiFinder™ to make the application active. 
  12655. (Applications don’t start as the frontmost layer under MultiFinder. Instead, 
  12656. they come to the front after a few events are processed.)
  12657. PullApplicationToFront is a utility for use with applications that have decorative 
  12658. startup screens. If your application displays such a screen when it starts up, 
  12659. then you can use this routine to ensure that it becomes visible.
  12660.  
  12661.  
  12662. æKY PushLong
  12663. æD FUNCTION PushLong(h, v: integer): LONGINT;
  12664. æFi UMacApp.TWindow 
  12665. æT PROCEDURE 
  12666. æC PushLong converts the specified point into a LongInt value. 
  12667. The h parameter is the point's horizontal coordinate. The v parameter is the 
  12668. point's vertical coordinate. 
  12669. PushLong is called by TWindow.IsDraggable when determining if the corner of a 
  12670. specified rectangle can be dragged by the user. This routine is intended for 
  12671. MacApp’s internal use; you never need to call it yourself.
  12672.  
  12673.  
  12674. æKY PutDeskScrapData
  12675. æD FUNCTION PutDeskScrapData(aResType: ResType; aDataHandle: Handle): OSerr;
  12676. æFi UMacApp 
  12677. æT PROCEDURE 
  12678. æC PutDeskScrapData writes data to the desk scrap. If the routine fails to write 
  12679. the data, then it returns an error code. Otherwise, it returns noErr. 
  12680. The parameter aResType is the resource type identifier that corresponds to the 
  12681. data to be written to the desk scrap. The parameter aDataHandle is a handle to 
  12682. the data itself. 
  12683. MacApp calls PutDeskScrapData from methods that write the contents of views to 
  12684. the desk scrap. You can use this routine in a similar fashion.
  12685.  
  12686.  
  12687. æKY ReadInteger
  12688. æD FUNCTION ReadInteger(prompt: Str255): INTEGER;
  12689. æFi UMacAppUtilities 
  12690. æT PROCEDURE 
  12691. æC ReadInteger displays a message in the Debug Transcript and then waits for you 
  12692. to enter a number. The routine returns the number that you enter.
  12693. The prompt parameter is the message to be displayed. 
  12694. MacApp uses ReadInteger in debugging versions of applications when certain failures 
  12695. occur. It then returns the entered number as the error code for the failure. You 
  12696. can use this routine in a similar fashion.
  12697.  
  12698.  
  12699. æKY ReadYesNo
  12700. æD FUNCTION ReadYesNo(prompt: Str255): BOOLEAN;
  12701. æFi UMacAppUtilities 
  12702. æT PROCEDURE 
  12703. æC ReadYesNo displays a message in the Debug Transcript and waits for the user 
  12704. to enter a “yes” or “no” response. If the response is either of the characters 
  12705. “Y” or “y”, then the routine returns TRUE. If it is any other character, then 
  12706. the routine returns FALSE. 
  12707. The prompt parameter is the message to be displayed. 
  12708. MacApp calls ReadYesNo from a variety of failure handlers in debugging versions 
  12709. of applications. Your response generally determines how the debugging code handles 
  12710. the failure condition. You can use this routine in a similar fashion.
  12711.  
  12712.  
  12713. æKY RectIsVisible
  12714. æD FUNCTION RectIsVisible(r: Rect): BOOLEAN;
  12715. æFi UMacApp 
  12716. æT PROCEDURE 
  12717. æC RectIsVisible determines whether a rectangle is in the visible region and the 
  12718. clip region of the current grafPort; if the rectangle is visible, then the routine 
  12719. returns TRUE.
  12720. The r parameter is the rectangle to be tested. 
  12721. MacApp calls RectIsVisible from TListView.DoHighlightSelection. You can use this 
  12722. routine to determine whether a particular rectangle is visible.
  12723.  
  12724.  
  12725. æKY RectsNest
  12726. æD FUNCTION RectsNest(outer, inner: Rect): BOOLEAN;
  12727. æFi UMacAppUtilities 
  12728. æT PROCEDURE 
  12729. æC RectsNest determines whether one rectangle is entirely contained within another.
  12730. RectsNest returns TRUE if the rectangle passed in the inner parameter is entirely 
  12731. contained within the rectangle passed in the outer parameter.
  12732. MacApp calls RectsNest from TTEView.ScrollSelectionIntoView. You can use this 
  12733. routine when you must determine whether a rectangle is contained by another.
  12734.  
  12735.  
  12736. æKY RectToVRect
  12737. æD PROCEDURE RectToVRect(theRect: Rect; VAR theVRect: VRect);
  12738. æFi UViewCoords 
  12739. æT PROCEDURE 
  12740. æC RectToVRect modifies a view rectangle so that it has the same top-left point 
  12741. and bottom-right point as the specified QuickDraw rectangle. 
  12742. The parameter theRect is the QuickDraw rectangle to be copied. The parameter 
  12743. theVRect is the view rectangle to be modified when the routine is called, and it 
  12744. is the modified view rectangle when the routine returns. 
  12745. MacApp calls RectToVRect from a variety of view-handling routines to convert 
  12746. from QuickDraw rectangles to view rectangles. You can use this routine in a 
  12747. similar fashion.
  12748.  
  12749.  
  12750. æKY RegisterStdType
  12751. æD PROCEDURE RegisterStdType(typeName: Str255; signature: IDType);
  12752. æFi UMacApp 
  12753. æT PROCEDURE 
  12754. æC RegisterStdType associates a class with the specified class identifier. 
  12755. The typeName parameter is a string that names the class to be registered. The 
  12756. signature parameter is the identifier with which the class is to be associated. 
  12757. MacApp calls RegisterStdType from several initialization routines to register 
  12758. the standard MacApp classes. You must use this routine during the application’s 
  12759. initialization to register your own view classes.
  12760.  
  12761.  
  12762. æKY RemHandle
  12763. æD PROCEDURE RemHandle(h: Handle; toList: HandleListHandle);
  12764. æFi UMemory 
  12765. æT PROCEDURE 
  12766. æC RemHandle removes a handle from a handle list.
  12767. The h parameter is the handle to be removed. The toList parameter is the list 
  12768. from which it is to be removed. 
  12769. You can use this routine to help manage lists of handles.
  12770.  
  12771.  
  12772. æKY RemoveAnyNMRequests
  12773. æD PROCEDURE RemoveAnyNMRequests;
  12774. æFi UDebug 
  12775. æT PROCEDURE 
  12776. æC RemoveAnyNMRequests clears the notification queue and releases the handle to 
  12777. the small icon resource used to notify the user that there is an alert from 
  12778. another application. 
  12779. RemoveAnyNMRequests is called by TDebugApplication.HandleSystemEvent after activating 
  12780. the application layer that generated the Notification Manager request. This 
  12781. routine is intended for internal use by MacApp. You never need to call it yourself.You 
  12782. can use this routine to help manage lists of handles.
  12783.  
  12784.  
  12785. æKY RemoveObjectFromInspector
  12786. æD PROCEDURE RemoveObjectFromInspector(theObject: TObject);
  12787. æFi UInspector 
  12788. æT PROCEDURE 
  12789. æC RemoveObjectFromInspector removes references to an object from any open Inspector 
  12790. windows.
  12791. The parameter theObject is the object that is to be removed from the Inspector 
  12792. windows. 
  12793. MacApp calls RemoveObjectFromInspector when an object is freed. You do not need 
  12794. to call this routine yourself.
  12795.  
  12796.  
  12797. æKY ResetBusyCursor
  12798. æD PROCEDURE ResetBusyCursor;
  12799. æFi UBusyCursor 
  12800. æT PROCEDURE 
  12801. æC ResetBusyCursor is a patch routine that resets the delay time of the busy 
  12802. cursor and restores the original cursor if the busy cursor is displayed. 
  12803. You usually do not need to call ResetBusyCursor yourself, but you can call it if 
  12804. you want to restore the cursor and reset the time before changing the image to a 
  12805. watch.
  12806.  
  12807.  
  12808. æKY RoundUp
  12809. æD FUNCTION RoundUp(aNumber: LONGINT; aModulus: INTEGER): LONGINT;
  12810. æFi UMacAppUtilities 
  12811. æT PROCEDURE 
  12812. æC RoundUp changes the value of a numeric parameter so that it is evenly divisible 
  12813. by the specified modulus. RoundUp always changes the number to the next greater 
  12814. number that is evenly divisible. 
  12815. The aNumber parameter is the number to be changed. The aModulus parameter is the 
  12816. number that must divide evenly into the new value. 
  12817. MacApp calls RoundUp from TView.ComputeSize. You can use this routine when you 
  12818. need to round a number upward so that it is evenly divisible by another number.
  12819.  
  12820.  
  12821. æKY SaveEventQueue
  12822. æD PROCEDURE SaveEventQueue(save: BOOLEAN);
  12823. æFi UDebug 
  12824. æT PROCEDURE 
  12825. æC SaveEventQueue saves the current event queue or restores the previous event 
  12826. queue. 
  12827. If the value of the save parameter is TRUE, then SaveEventQueue stores the current 
  12828. event queue in the global variable pQHdr. Otherwise, SaveEventQueue makes the 
  12829. queue stored in pQHdr the current event queue. 
  12830. MacApp uses SaveEventQueue to change event queues in certain code that hides 
  12831. events from MacApp routines. You usually do not need to call this routine yourself.
  12832.  
  12833.  
  12834. æKY ScanHandles
  12835. æD PROCEDURE ScanHandles(PROCEDURE DoToHandle(h: Handle));
  12836. æFi UMemory 
  12837. æT PROCEDURE 
  12838. æC ScanHandles calls a procedure once for each handle in the global lists of 
  12839. handles. 
  12840. DoToHandle is a procedure that you declare separately. Its argument, h, is bound 
  12841. to each handle in turn, and the procedure is called with that argument.
  12842. MacApp calls ScanHandles from the global routine TotalTempSize to determine how 
  12843. much memory is allocated for all handles to temporary memory. You usually do not 
  12844. need to call this routine yourself, but you can use it to iterate over the global 
  12845. lists of handles.
  12846.  
  12847.  
  12848. æKY ScrapStuffFields
  12849. æD PROCEDURE ScrapStuffFields(aTitle: Str255; VAR aScrapStuff: ScrapStuff;
  12850.   PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; fieldType: INTEGER));
  12851. æFi UMacAppUtilities 
  12852. æT PROCEDURE 
  12853. æC ScrapStuffFields reports the contents of the fields of a ScrapStuff record to 
  12854. the MacApp Inspector. 
  12855. The aTitle parameter is the title that is displayed in the Inspector window and 
  12856. identifies the field being displayed. The aScrapStuff parameter is a record of 
  12857. type ScrapStuff. DoToField is a procedure that MacApp passes to ScrapStuffFields 
  12858. to report the contents of each field. ScrapStuffFields performs DoToField on 
  12859. each of the ScrapStuff record's fields; in this way, Fields reports the contents 
  12860. of each field to the Inspector. 
  12861. MacApp calls ScrapStuffFields from the MacApp Inspector. You never call this 
  12862. routine yourself.
  12863.  
  12864.  
  12865. æKY SectVRect
  12866. æD FUNCTION SectVRect(src1, src2: VRect; VAR dstRect: VRect): BOOLEAN;
  12867. æFi UViewCoords 
  12868. æT PROCEDURE 
  12869. æC SectVRect computes the rectangle that defines the intersection of the two 
  12870. specified rectangles and stores the result in the specified variable. 
  12871. The src1 and src2 parameters are the rectangles whose intersection is to be 
  12872. determined. The dstRect parameter contains the resulting rectangle when the 
  12873. routine returns. If the two rectangles do not intersect then the dstRect parameter 
  12874. contains an empty rectangle and the routine returns FALSE. 
  12875. You can use this routine to find the intersection of two rectangles.
  12876.  
  12877.  
  12878. æKY SetBreakCmd
  12879. æD PROCEDURE SetBreakCmd;
  12880. æFi UDebug 
  12881. æT PROCEDURE 
  12882. æC SetBreakCmd displays a prompt in the Debug Transcript and waits for you to 
  12883. type the name of a routine. It then sets a breakpoint at the named routine. 
  12884. MacApp uses SetBreakCmd to set breakpoints in debugging versions of applications. 
  12885. You do not need to call SetBreakCmd yourself.
  12886.  
  12887.  
  12888. æKY SetCallBack
  12889. æD PROCEDURE SetCallBack(targProc: ProcPtr; itsRefCon: Longint; 
  12890.   theCallBackPtr: CallBackPtr);
  12891. æFi UPatch 
  12892. æT PROCEDURE 
  12893. æC SetCallBack initializes a callback for use with certain Toolbox routines.
  12894. The targProc parameter is the procedure that is your callback routine’s target. 
  12895. When the callback routine gains control, it calls the target procedure, passing 
  12896. the reference constant itsRefCon. The itsRefCon parameter is a reference constant 
  12897. that the target procedure uses to reference your data. The parameter theCallBackPtr 
  12898. is the pointer to your callback routine; the Toolbox routine uses it to call 
  12899. your callback routine. 
  12900. You can use SetCallBack to pass the Toolbox a pointer to your callback routine.
  12901.  
  12902.  
  12903. æKY SetCMacAppCursor
  12904. æD PROCEDURE SetCMacAppCursor(theCCursor: CCrsrHandle);
  12905. æFi UBusyCursor 
  12906. æT PROCEDURE 
  12907. æC SetCMacAppCursor is a patch to the Toolbox routine SetCCursor. It saves a 
  12908. copy of the specified color cursor and sets a field of the pCursorInfo record to 
  12909. indicate that the current cursor is a color cursor. 
  12910. The parameter theCCursor is the color cursor that becomes the new current cursor. 
  12911. MacApp installs SetCMacAppCursor in the initialization code for the UBusyCursor 
  12912. unit. You do not need to call this routine yourself.
  12913.  
  12914.  
  12915. æKY SetCmdIcon
  12916. æD PROCEDURE SetCmdIcon(aCmd: CmdNumber; menuIcon: Byte);
  12917. æFi UMenuSetup 
  12918. æT PROCEDURE 
  12919. æC SetCmdIcon adds an icon to the specified menu item and informs MacApp that 
  12920. the menu’s size must be recomputed. 
  12921. The parameter aCmd is the command number that corresponds to the menu item to 
  12922. which the icon is to be added. The menuIcon parameter is the identifier of the 
  12923. icon to be added. 
  12924. You can use SetCmdIcon when you want to add an icon to a menu item.
  12925.  
  12926.  
  12927. æKY SetCmdName
  12928. æD PROCEDURE SetCmdName(aCmd: CmdNumber; menuText: Str255);
  12929. æFi UMenuSetup 
  12930. æT PROCEDURE 
  12931. æC SetCmdName changes the name of the specified menu item and informs MacApp 
  12932. that the menu’s size must be recomputed. 
  12933. The parameter aCmd is the command number that corresponds to the menu item whose 
  12934. name is to be changed. The menuText parameter is the new text of the item. 
  12935. You can use SetCmdName when you want change the name of a menu item.
  12936.  
  12937.  
  12938. æKY SetFocus
  12939. æD PROCEDURE SetFocus(theFocusRec: FocusRec);
  12940. æFi UMacApp 
  12941. æT PROCEDURE 
  12942. æC SetFocus sets the current focus using a FocusRec record. 
  12943. The parameter theFocusRec is the focus record that MacApp will use to reset the 
  12944. current focus. 
  12945. MacApp calls SetFocus from a variety of routines that manipulate grafPorts. You 
  12946. can use this routine when you need to ensure that the current focus is set a 
  12947. particular way. You can use the global routine GetFocus to save the current 
  12948. focus state in a variable.
  12949.  
  12950.  
  12951. æKY SetGetProc
  12952. æD FUNCTION SetGetProc(theGetProc: ProcPtr): ProcPtr;
  12953. æFi UDebug 
  12954. æT PROCEDURE 
  12955. æC This routine is not yet documented; it is used internally by MacApp. You 
  12956. never need to call it yourself.
  12957.  
  12958.  
  12959. æKY SetHandleBits
  12960. æD PROCEDURE SetHandleBits(h: Handle; theBits: SignedByte);
  12961. æFi UMacAppUtilities 
  12962. æT PROCEDURE 
  12963. æC SetHandleBits sets the flag byte of a handle. 
  12964. The h parameter is the handle whose flags are to be set. The parameter theBits 
  12965. is the flag byte whose value becomes the new flag byte of the handle. 
  12966. MacApp calls SetHandleBits from a few methods that manipulate handles. You can 
  12967. use this routine if you want to safely manipulate the flag bits of a handle. 
  12968. Avoid manipulating flag bits directly, because that may affect the application’s 
  12969. compatibility with future systems.
  12970.  
  12971.  
  12972. æKY SetHLPenState
  12973. æD PROCEDURE SetHLPenState(fromHL, toHL: HLState);
  12974. æFi UMacApp 
  12975. æT PROCEDURE 
  12976. æC SetHLPenState allows you to control the highlighting state of the QuickDraw 
  12977. pen. 
  12978. The fromHL parameter is the highlighting state before the routine is called, 
  12979. and the toHL parameter is the state after the routine returns. Legal values for 
  12980. these parameters include: 
  12981. hlOff = 1 (unhighlighted) 
  12982. hlDim = 2 (dimly highlighted) 
  12983. hlOn = 4 (highlighted) 
  12984. hlOffDim = hlOff + hlDim 
  12985. hlDimOff = hlOffDim 
  12986. hlDimOn = hlDim + hlOn 
  12987. hlOnDim = hlDimOn 
  12988. hlOffOn = hlOff + hlOn 
  12989. hlOnOff = hlOffOn
  12990. MacApp calls SetHLPenState from several drawing and highlighting methods. You 
  12991. can use this routine to control the state of the QuickDraw highlighting pen.
  12992.  
  12993.  
  12994. æKY SetIfBkColor
  12995. æD PROCEDURE SetIfBkColor(aColor: RGBColor); 
  12996. æFi UMacAppUtilities 
  12997. æT PROCEDURE 
  12998. æC SetIfBkColor sets the background color for drawing to the available color 
  12999. closest to the specified color. 
  13000. The parameter aColor is the color that becomes the new background color.
  13001. MacApp calls SetIfBkColor from several TPopup methods to set a background color 
  13002. for drawing the TPopup object. You can use this routine in a similar fashion.
  13003.  
  13004.  
  13005. æKY SetIfColor
  13006. æD PROCEDURE SetIfColor(aColor: RGBColor); 
  13007. æFi UMacAppUtilities 
  13008. æT PROCEDURE 
  13009. æC SetIfColor sets the foreground color for drawing to the available color closest 
  13010. to the specified color. 
  13011. The parameter aColor is the color that becomes the new foreground color. 
  13012. MacApp calls SetIfColor from a variety of drawing methods to control the color 
  13013. of the QuickDraw pen. You can use this routine in a similar fashion.
  13014.  
  13015.  
  13016. æKY SetIndCmdName
  13017. æD PROCEDURE SetIndCmdName(aCmd: CmdNumber; rsrcID, strIndex: INTEGER);
  13018. æFi UMenuSetup 
  13019. æT PROCEDURE 
  13020. æC SetIndCmdName sets the name of a menu item to a string that it retrieves from 
  13021. the specified string list. 
  13022. The parameter aCmd is the command number corresponding to the menu item that 
  13023. will be changed. The rsrcID parameter is the resource identifier of a 'STR#' 
  13024. resource that contains the desired string. The strIndex parameter is the position 
  13025. of the desired string in the string list. 
  13026. MacApp calls SetIndCmdName from the global routine SetMenuState to set the names 
  13027. of menu items using the MacApp buzz-string resource. You can use this routine to 
  13028. manage the names of menu items using your own string-list resource.
  13029.  
  13030.  
  13031. æKY SetKeyScript
  13032. æD FUNCTION SetKeyScript(newKeyScript: INTEGER): INTEGER;
  13033. æFi UMacAppUtilities 
  13034. æT PROCEDURE 
  13035. æC SetKeyScript sets the current script to the specified script. Typing on the 
  13036. keyboard subsequently produces characters in the new script. The routine returns 
  13037. the previously installed script. 
  13038. The newKeyScript parameter is the identifier of the keyScript record that becomes 
  13039. the new keyscript. See the Script Manager chapter of Inside Macintosh, Volume V, 
  13040. for a discussion of key scripts. 
  13041. MacApp calls SetKeyScript when the Script Manager is installed and the font 
  13042. changes. You do not need to call this routine yourself.
  13043.  
  13044.  
  13045. æKY SetMacAppCursor
  13046. æD PROCEDURE SetMacAppCursor(VAR theCursor: Cursor);
  13047. æFi UBusyCursor 
  13048. æT PROCEDURE 
  13049. æC SetMacAppCursor is a patch to the Toolbox routine SetCursor. The routine 
  13050. stores a reference to the new cursor before calling SetCursor to set the current 
  13051. cursor image. 
  13052. The parameter theCursor is the new cursor record.
  13053. MacApp calls SetMacAppCursor from the patch to InitCursor to set the cursor 
  13054. image to the arrow. You can use this routine in a similar fashion.
  13055.  
  13056.  
  13057. æKY SetMenuState
  13058. æD PROCEDURE SetMenuState(aCmd: CmdNumber; rsrcID, falseBuzzItem, 
  13059.   trueBuzzItem: INTEGER; stateVariable: BOOLEAN);
  13060. æFi UMenuSetup 
  13061. æT PROCEDURE 
  13062. æC SetMenuState sets a menu item to the specified state. 
  13063. The parameter aCmd is the command number that corresponds to the menu item that 
  13064. will be changed. The rsrcID parameter is the resource identifier for the affected 
  13065. menu. The trueBuzzItem parameter and the falseBuzzItem parameter are the position 
  13066. of the desired string in the string list for the menu item’s text in the enabled 
  13067. (TRUE) and disabled (FALSE) states. The stateVariable parameter specifies whether 
  13068. the item will be set to TRUE or FALSE. 
  13069. MacApp calls SetMenuState from TApplication.SetupTheMenus and from 
  13070. TApplication.DoSetupMenus. You usually do not need to call this routine yourself.
  13071.  
  13072.  
  13073. æKY SetPermHandleSize
  13074. æD PROCEDURE SetPermHandleSize(h: Handle; newSize: Size);
  13075. æFi UMemory 
  13076. æT PROCEDURE 
  13077. æC SetPermHandleSize sets the size of a block of memory to the specified size. 
  13078. The h parameter is a handle to the block of memory to be affected. The newSize 
  13079. parameter is the new size, in bytes, of the block of memory. 
  13080. MacApp calls SetPermHandleSize from certain low-level routines that manipulate 
  13081. blocks of memory and control their sizes directly. You usually do not need to 
  13082. call this routine yourself.
  13083.  
  13084.  
  13085. æKY SetPermPtrSize
  13086. æD PROCEDURE SetPermPtrSize(p: Ptr; newSize: Size);
  13087. æFi UMemory 
  13088. æT PROCEDURE 
  13089. æC SetPermPtrSize sets the size of a block of memory to the specified size.
  13090. The p parameter is a pointer to the block of memory to be affected. The newSize 
  13091. parameter is the new size, in bytes, of the block of memory.
  13092. MacApp calls SetPermPtrSize from certain low-level routines that manipulate 
  13093. blocks of memory and control their sizes directly. You usually do not need to 
  13094. call this routine yourself.
  13095.  
  13096.  
  13097. æKY SetPortTextStyle
  13098. æD PROCEDURE SetPortTextStyle(theTextStyle: TextStyle);
  13099. æFi UMacAppUtilities 
  13100. æT PROCEDURE 
  13101. æC SetPortTextStyle sets the font style of the current grafPort to the specified 
  13102. style. 
  13103. The parameter theTextStyle is a TextStyle record that specifies the new style. 
  13104. See the QuickDraw chapter of Inside Macintosh, Volume I, for a discussion of 
  13105. text styles. 
  13106. MacApp calls SetPortTextStyle from a variety of routines that draw text in views. 
  13107. You can use this routine to set the current text style in your own text-drawing 
  13108. methods.
  13109.  
  13110.  
  13111. æKY SetPutProc
  13112. æD FUNCTION SetPutProc(thePutProc: ProcPtr): ProcPtr;
  13113. æFi UDebug 
  13114. æT PROCEDURE 
  13115. æC This routine is not yet documented; it is used internally by MacApp. You 
  13116. never need to call it yourself. 
  13117.  
  13118.  
  13119. æKY SetReserveSize
  13120. æD PROCEDURE SetReserveSize(forCode, forOther: Size);
  13121. æFi UMemory 
  13122. æT PROCEDURE 
  13123. æC SetReserveSize sets the size of the memory reserves, in bytes, to the specified 
  13124. sizes. 
  13125. The forCode parameter is the new size, in bytes, of the code reserve. The forOther 
  13126. parameter is the new size, in bytes, of the low-memory reserve. 
  13127. MacApp calls SetReserveSize from a few low-level routines that manipulate the 
  13128. memory reserves. You usually do not need to call SetReserveSize yourself.
  13129.  
  13130.  
  13131. æKY SetResidentSegment
  13132. æD PROCEDURE SetResidentSegment(segnum: INTEGER; makeResident: BOOLEAN);
  13133. æFi UMemory 
  13134. æT PROCEDURE 
  13135. æC SetResidentSegment specifies whether a code segment is to be a resident segment. 
  13136. The segnum parameter is the segment number of the segment to be affected. If the 
  13137. value of the makeResident parameter is TRUE, then the code segment becomes resident; 
  13138. otherwise, it becomes non-resident. 
  13139. MacApp calls SetResidentSegment from initialization routines when the application 
  13140. starts up. You usually do not need to call this routine yourself.
  13141.  
  13142.  
  13143. æKY SetRGBColor
  13144. æD PROCEDURE SetRGBColor(VAR RGB: RGBColor; red, green, blue: INTEGER);
  13145. æFi UMacAppUtilities 
  13146. æT PROCEDURE 
  13147. æC SetRGBColor changes the fields of an RGBColor record to have the specified 
  13148. red, green, and blue values. SetRGBColor stores the red, green, and blue values 
  13149. into the appropriate fields of the RGB parameter when the routine returns. 
  13150. The red parameter is the record’s new red value, and the blue and green parameters 
  13151. are the corresponding blue and green values. 
  13152. MacApp calls SetRGBColor from the global routine DoRealInitToolBox. You can use 
  13153. this routine when you need to set the value of a color represented by an RGBColor 
  13154. record.
  13155.  
  13156.  
  13157. æKY SetSelect
  13158. æD PROCEDURE SetSelect(theStart, theEnd: INTEGER; hTE: TEHandle);
  13159. æFi UTEView 
  13160. æT PROCEDURE 
  13161. æC SetSelect sets the current text selection for the given Text Edit handle 
  13162. without highlighting it. 
  13163. The parameter theStart is the position in the text buffer of the first character 
  13164. in the new selection; the parameter theEnd is the position of the last character 
  13165. in the new selection. The hTE parameter is a handle to the TextEdit record that 
  13166. contains the text. 
  13167. MacApp calls SetSelect from a variety of routines that manipulate and change 
  13168. text in TextEdit records. You can use this routine whenever you need to change 
  13169. the current text selection without highlighting it.
  13170.  
  13171.  
  13172. æKY SetStackSpace
  13173. æD PROCEDURE SetStackSpace(numBytes: LONGINT);
  13174. æFi UMemory 
  13175. æT PROCEDURE 
  13176. æC SetStackSpace sets the size of the application’s stack. 
  13177. The numBytes parameter is the new size, in bytes, of the application stack. 
  13178. MacApp calls SetStackSpace from the global routine DoInitUMemory when the application 
  13179. starts up. You do not need to call this routine yourself.
  13180.  
  13181.  
  13182. æKY SetStyle
  13183. æD PROCEDURE SetStyle(aCmd: CmdNumber; aStyle: Style);
  13184. æFi UMenuSetup 
  13185. æT PROCEDURE 
  13186. æC SetStyle sets the text style of the menu item corresponding to the specified 
  13187. command number and instructs the Menu Manager to recalculate the size of the 
  13188. menu.
  13189. The parameter aCmd is the command number associated with the item to be changed. 
  13190. The parameter aStyle is the new style of the menu item. Styles can include the 
  13191. values bold, italic, underline, outline, shadow, condense, and extend. 
  13192. MacApp calls SetStyle from a few TListView methods that change the style of menu 
  13193. items. You can use this routine to control the appearance of menu items.
  13194.  
  13195.  
  13196. æKY SetTextStyle
  13197. æD PROCEDURE SetTextStyle(VAR theTextStyle: TextStyle; theFont: INTEGER; 
  13198.   theStyle: Style; theSize: INTEGER; theColor: RGBColor);
  13199. æFi UMacAppUtilities 
  13200. æT PROCEDURE 
  13201. æC SetTextStyle sets the value of a TextStyle record. For a discussion of TextStyle 
  13202. records, see Inside Macintosh, Volume V, page 265. 
  13203. The parameter theTextStyle is the TextStyle record whose value is set. The parameter 
  13204. theFont becomes the font of the TextStyle record. The parameter theStyle becomes 
  13205. the record’s style; this parameter can have any combination of bold, italic, 
  13206. underline, outline, shadow, condense, and extended. The parameter theSize becomes 
  13207. the size of the record’s font. The parameter theColor becomes the color used to 
  13208. draw text associated with the TextStyle record. 
  13209. MacApp calls SetTextStyle from several routines that draw text or initialize 
  13210. text-related classes. You can use this routine when you need to initialize a 
  13211. TextStyle record.
  13212.  
  13213.  
  13214. æKY SetVPt
  13215. æD PROCEDURE SetVPt(VAR vPt: VPoint; h, v: VCoordinate);
  13216. æFi UViewCoords 
  13217. æT PROCEDURE 
  13218. æC SetVPt sets the horizontal and vertical coordinates of a view point to the 
  13219. specified values. 
  13220. The vPt parameter is the view point to be modified when the routine is called. 
  13221. It is the modified view point when the routine returns. The h parameter is the 
  13222. new horizontal coordinate, and the v parameter is the new vertical coordinate. 
  13223. MacApp calls SetVPt from a variety of routines that specify a view point to 
  13224. adjust the sizes or positions of views. You can use this routine in a similar 
  13225. fashion.
  13226.  
  13227.  
  13228. æKY SetVRect
  13229. æD PROCEDURE SetVRect(VAR r: VRect; left, top, right, bottom: VCoordinate);
  13230. æFi UViewCoords 
  13231. æT PROCEDURE 
  13232. æC SetVRect sets the corner coordinates of a view rectangle to the specified 
  13233. values. 
  13234. The r parameter is the view rectangle to be modified when the routine is called. 
  13235. It is the modified rectangle when the routine returns. The left parameter is the 
  13236. new left coordinate, the top parameter is the new top coordinate, the right 
  13237. parameter is the new right coordinate, and the bottom parameter is the new bottom 
  13238. coordinate. 
  13239. MacApp calls SetVRect from a variety of routines that manipulate rectangular 
  13240. areas in views. You can use this routine in a similar fashion.
  13241.  
  13242.  
  13243. æKY ShowDisasmMemory
  13244. æD PROCEDURE ShowDisasmMemory(startAddress, numBytes: Longint);
  13245. æFi UDebug 
  13246. æT PROCEDURE 
  13247. æC ShowDisasmMemory disassembles an area of memory and displays the generated 
  13248. assembly source code in the Debug Transcript. 
  13249. The startAddress parameter is the address where disassembly is to start. The 
  13250. numBytes parameter is the number of bytes of memory to be disassembled. 
  13251. MacApp calls ShowDisasmMemory from the MacApp debugger’s command interpreter. 
  13252. You do not need to call this routine yourself.
  13253.  
  13254.  
  13255. æKY ShowFields
  13256. æD PROCEDURE ShowFields(obj: TObject; doInspect: BOOLEAN);
  13257. æFi UDebug 
  13258. æT PROCEDURE 
  13259. æC ShowFields displays the names and values of an object’s fields in the Debug 
  13260. Transcript. 
  13261. The obj parameter is the object whose fields are to be displayed. If the value 
  13262. of the doInspect parameter is TRUE, then MacApp opens a new Inspector window on 
  13263. the object instead of displaying its fields in the Debug Transcript. 
  13264. MacApp calls ShowFields from the MacApp Debugger’s command interpreter. You do 
  13265. not need to call this routine yourself.
  13266.  
  13267.  
  13268. æKY ShowHeapInfo
  13269. æD PROCEDURE ShowHeapInfo;
  13270. æFi UDebug 
  13271. æT PROCEDURE 
  13272. æC ShowHeapInfo displays information about the application heap in the Debug 
  13273. Transcript. 
  13274. MacApp calls ShowHeapInfo from the MacApp debugger’s command interpreter. You do 
  13275. not need to call this routine yourself.
  13276.  
  13277.  
  13278. æKY ShowHierarchy
  13279. æD FUNCTION ShowHierarchy(obj: TObject; theClass: ObjClassID): Longint;
  13280. æFi UDebug 
  13281. æT PROCEDURE 
  13282. æC ShowHierarchy displays the names of an object’s class and superclasses in the 
  13283. Debug Transcript. 
  13284. The obj parameter is the object whose superclasses are to be displayed. The 
  13285. parameter theClass is the class identifier of the object. 
  13286. MacApp calls ShowHierarchy from the MacApp debugger’s command interpreter. You 
  13287. do not need to call this routine yourself.
  13288.  
  13289.  
  13290. æKY ShowLocals
  13291. æD PROCEDURE ShowLocals(level: INTEGER; topFrame: Longint);
  13292. æFi UDebug 
  13293. æT PROCEDURE 
  13294. æC ShowLocals displays the names and values of all the variables local to the 
  13295. current stack frame in the Debug Transcript. 
  13296. The level parameter is the current depth of the application stack. The topFrame 
  13297. parameter is the top stack frame. 
  13298. MacApp calls ShowLocals from the MacApp debugger’s command interpreter. You do 
  13299. not need to call this routine yourself.
  13300.  
  13301.  
  13302. æKY ShowMemory
  13303. æD PROCEDURE ShowMemory(startAddress, numBytes: Longint);
  13304. æFi UDebug 
  13305. æT PROCEDURE 
  13306. æC ShowMemory displays the contents of the specified region of memory in the 
  13307. Debug Transcript. 
  13308. The startAddress parameter is the address in memory at which the area to be 
  13309. displayed begins. The numBytes parameter is the number of bytes to display. 
  13310. MacApp calls ShowMemory from the MacApp debugger’s command interpreter. You do 
  13311. not need to call this routine yourself.
  13312.  
  13313.  
  13314. æKY ShowNames
  13315. æD PROCEDURE ShowNames(VAR procName: MAName; segNum: INTEGER);
  13316. æFi UDebug 
  13317. æT PROCEDURE 
  13318. æC ShowNames displays a routine name and its segment number in the Debug Transcript. 
  13319. The procName parameter is the name to be displayed. The segNum parameter is the 
  13320. routine’s segment number. 
  13321. MacApp calls ShowNames from the MacApp debugger’s command interpreter. You do 
  13322. not need to call this routine yourself.
  13323.  
  13324.  
  13325. æKY ShowParameters
  13326. æD PROCEDURE ShowParameters(level: INTEGER; topFrame: Longint);
  13327. æFi UDebug 
  13328. æT PROCEDURE 
  13329. æC ShowParameters displays the parameters passed in the current stack frame. 
  13330. The level parameter is the current depth of the application stack. The topFrame 
  13331. parameter is the top stack frame. 
  13332. MacApp calls ShowParameters from the MacApp debugger’s command interpreter. You 
  13333. do not need to call this routine yourself.
  13334.  
  13335.  
  13336. æKY ShowRecent
  13337. æD PROCEDURE ShowRecent;
  13338. æFi UDebug 
  13339. æT PROCEDURE 
  13340. æC ShowRecent displays a recent history of the program-counter register in the 
  13341. Debug Transcript. 
  13342. MacApp calls ShowRecent from the MacApp debugger’s command interpreter. You do 
  13343. not need to call this routine yourself.
  13344.  
  13345.  
  13346. æKY ShowStack
  13347. æD PROCEDURE ShowStack;
  13348. æFi UDebug 
  13349. æT PROCEDURE 
  13350. æC ShowStack displays the application stack in the Debug Transcript. 
  13351. MacApp calls ShowStack from the MacApp debugger’s command interpreter. You do 
  13352. not need to call this routine yourself.
  13353.  
  13354.  
  13355. æKY ShowStatus
  13356. æD PROCEDURE ShowStatus;
  13357. æFi UDebug 
  13358. æT PROCEDURE 
  13359. æC ShowStatus displays the states of the MacApp debugger’s various flags and 
  13360. variables in the Debug Transcript. 
  13361. MacApp calls ShowStatus from the MacApp debugger’s command interpreter. You do 
  13362. not need to call this routine yourself.
  13363.  
  13364.  
  13365. æKY ShowSymbolWhich
  13366. æD PROCEDURE ShowSymbolWhich(which: ZT; VAR procName: MAName; segNum: INTEGER);
  13367. æFi UDebug 
  13368. æT PROCEDURE 
  13369. æC ShowSymbolWhich displays in the Debug Transcript the symbols that the MacApp 
  13370. debugger uses to indicate routine entries, exits, and errors. 
  13371. The which parameter specifies which of the various symbols are to be displayed. 
  13372. The procName parameter is the name of the routine that is to be displayed. The 
  13373. segNum parameter is the segment number of the routine. 
  13374. MacApp calls ShowSymbolWhich from the MacApp debugger’s command interpreter. You 
  13375. do not need to call this routine yourself.
  13376.  
  13377.  
  13378. æKY ShowTempSpace
  13379. æD PROCEDURE ShowTempSpace(VAR lockedSpace, totalSpace: Longint);
  13380. æFi UDebug 
  13381. æT PROCEDURE 
  13382. æC ShowTempSpace displays a report on the condition of the allocation area for 
  13383. temporary memory in the Debug Transcript. 
  13384. The lockedSpace parameter is the total size of temporary allocations that are 
  13385. locked. The totalSpace parameter is the is the total size of all temporary allocations. 
  13386. MacApp calls ShowTempSpace from the MacApp debugger’s command interpreter. You 
  13387. do not need to call this routine yourself.
  13388.  
  13389.  
  13390. æKY ShowWhere
  13391. æD PROCEDURE ShowWhere;
  13392. æFi UDebug 
  13393. æT PROCEDURE 
  13394. æC ShowWhere displays the handle to the receiver of a message and the name of 
  13395. the object’s class in the Debug Transcript. 
  13396. MacApp calls ShowWhere from the MacApp debugger’s command interpreter. You do 
  13397. not need to call this routine yourself.
  13398.  
  13399.  
  13400. æKY ShowWhich
  13401. æD PROCEDURE ShowWhich(which: ZT; VAR procName: MAName; segNum: INTEGER);
  13402. æFi UDebug 
  13403. æT PROCEDURE 
  13404. æC ShowWhich displays the handle to the receiver of a message and the name of 
  13405. the object’s class in the Debug Transcript. 
  13406. The which parameter specifies which logical code block type is to be shown; 
  13407. valid values are tBegin, tEnd, tExit, tBeginEndPair, tProgBreak, tSysError, 
  13408. tVBL, and tReadLn. The procName parameter is the name of the routine to be displayed. 
  13409. The segNum parameter is the routine’s segment number. 
  13410. MacApp calls ShowWhich from the MacApp debugger’s command interpreter. You do 
  13411. not need to call this routine yourself.
  13412.  
  13413.  
  13414. æKY StdAlert
  13415. æD PROCEDURE StdAlert(alertID: INTEGER);
  13416. æFi UMacApp 
  13417. æT PROCEDURE 
  13418. æC StdAlert displays a standard alert box. 
  13419. The alertID parameter is the number of an 'ALRT' resource that MacApp uses to 
  13420. create the alert box. 
  13421. MacApp uses StdAlert to display a number of standard error messages. You can use 
  13422. StdAlert for similar purposes, but you will probably prefer to use the global 
  13423. routine MacAppAlert, which is more flexible.
  13424.  
  13425.  
  13426. æKY StdFieldToString
  13427. æD PROCEDURE StdFieldToString(theData: Ptr; fieldType: INTEGER; 
  13428.   VAR theString: Str255);
  13429. æFi UMacAppUtilities 
  13430. æT PROCEDURE 
  13431. æC StdFieldToString converts a field of an object to a string.
  13432. The parameter theData is a pointer to the field. The fieldType parameter specifies 
  13433. the type of the field. Types are specified using the type constants defined in 
  13434. the file UMacAppUtilities.p. StdFieldToString stores the resulting string in the 
  13435. parameter theString when the routine returns. 
  13436. MacApp stores StdFieldToString in the global variable gFieldToStringRtn. You can 
  13437. use the routine stored in this variable to convert fields to strings if you need 
  13438. to display them as text.
  13439.  
  13440.  
  13441. æKY StdHelpProc
  13442. æD PROCEDURE stdHelpProc;
  13443. æFi UDebug 
  13444. æT PROCEDURE 
  13445. æC StdHelpProc displays a brief prompt in the Debug Transcript. 
  13446. MacApp uses StdHelpProc to prompt you to type a single-letter command in the 
  13447. Debug Transcript. You do not need to call this routine yourself.
  13448.  
  13449.  
  13450. æKY StdNoRect
  13451. æD PROCEDURE StdNoRect(verb: GrafVerb; r: Rect);
  13452. æFi UMacAppUtilities 
  13453. æT PROCEDURE 
  13454. æC StdNoRect is installed as one of the low-level QDProcs to filter out QuickDraw 
  13455. rectangle-drawing calls. 
  13456. The verb parameter is a standard QuickDraw drawing routine as defined in the 
  13457. GrafVerb type. The r parameter is the rectangle passed with the drawing routine. 
  13458. StdNoRect is used internally by the global routine MATextBox. You never need to 
  13459. call it yourself.
  13460.  
  13461.  
  13462. æKY StripLong
  13463. æD FUNCTION StripLong(address: UNIV Ptr): LONGINT;
  13464. æFi UMacAppUtilities 
  13465. æT PROCEDURE 
  13466. æC If the system is running in 24-bit addressing mode, StripLong returns the 
  13467. value of the low-order three bytes of the specified LongInt value. If the system 
  13468. is in 32-bit mode, however, StripLong simply passes back the LongInt value unchanged. 
  13469. The address parameter is the LongInt value that is to be stripped. 
  13470. MacApp calls StripLong from several routines that manipulate address directly. 
  13471. You can use this routine to ensure that an address is a valid 32-bit clean address; 
  13472. that is, that all bits in the LongInt are part of the address, and none are 
  13473. flags or other non-address data.
  13474.  
  13475.  
  13476. æKY SubstituteInTitle
  13477. æD FUNCTION SubstituteInTitle(VAR title: Str255; newStuff: Str255; 
  13478.   preDocname, constTitle: INTEGER): BOOLEAN;
  13479. æFi UMacApp 
  13480. æT PROCEDURE 
  13481. æC SubstituteInTitle substitutes new text into a window title template as parsed 
  13482. by the global routine ParseTitleTemplate. This routine returns TRUE if a substitution 
  13483. was made. 
  13484. The title parameter is the title template to be used as a window title; 
  13485. SubstituteInTitle stores new text in the template when it returns. The newStuff 
  13486. parameter is the text to be added to the title template. The preDocname parameter 
  13487. is the length of the portion of the title template that precedes the name of the 
  13488. document associated with the window. The constTitle parameter is the number of 
  13489. characters that do not change in window titles. 
  13490. MacApp calls SubstituteInTitle when creating document windows. You usually do 
  13491. not need to call this routine yourself.
  13492.  
  13493.  
  13494. æKY SubVPt
  13495. æD PROCEDURE SubVPt(srcVPt: VPoint; VAR dstVPt: VPoint);
  13496. æFi UViewCoords 
  13497. æT PROCEDURE 
  13498. æC SubVPt computes the difference between the x and y coordinates of two specified 
  13499. points and changes the second point to the resulting value. 
  13500. The horizontal and vertical coordinates of the parameter dstVPt are subtracted 
  13501. from the corresponding coordinates of the parameter srcVPt. The result is returned 
  13502. in dstVPt. 
  13503. MacApp uses SubVPt to compute the differences between view points. You can use 
  13504. this routine in a similar fashion.
  13505.  
  13506.  
  13507. æKY Success
  13508. æD PROCEDURE Success(VAR fi: FailInfo);
  13509. æFi UFailure 
  13510. æT PROCEDURE 
  13511. æC Success removes the top failure handler from the global failure-handler stack. 
  13512. The fi parameter is the failure information record that corresponds to the top 
  13513. failure handler in the stack. 
  13514. MacApp uses Success to remove its exception handlers when they are no longer 
  13515. needed. You can use this routine in a similar fashion.
  13516.  
  13517.  
  13518. æKY TestRecoverHandle
  13519. æD FUNCTION TestRecoverHandle(masterPointer: Ptr; h: UNIV Handle): Boolean;
  13520. æFi UMacAppUtilities 
  13521. æT PROCEDURE 
  13522. æC TestRecoverHandle compares the specified handle value with the value returned 
  13523. by the Toolbox function RecoverHandle for a specified master pointer. 
  13524. The h parameter is the handle expected to result from a call to the Toolbox 
  13525. routine RecoverHandle; the TestRecoverHandle routine returns TRUE if RecoverHandle 
  13526. returns the handle specified by the h parameter. The masterPointer parameter is 
  13527. the pointer that is the argument to RecoverHandle. 
  13528. MacApp calls this routine from debugging routines that verify a handle’s validity. 
  13529. You usually do not need to call this routine yourself.
  13530.  
  13531.  
  13532. æKY TextStyleFields
  13533. æD PROCEDURE TextStyleFields(aTitle: Str255; VAR aStyle: TextStyle; 
  13534.   PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; fieldType: INTEGER));
  13535. æFi UMacAppUtilities 
  13536. æT PROCEDURE 
  13537. æC TextStyleFields performs a procedure on the fields of a TextStyle record. 
  13538. The parameter aTitle is the name of the TextStyle record. The parameter aStyle 
  13539. is the TextStyle record itself. The parameter DoToField is the procedure that is 
  13540. performed on each of the fields of the record. You must define this procedure 
  13541. separately. It can have any name, but must take three parameters: the fieldName 
  13542. parameter is the name of the current field; the fieldAddr parameter is its address; 
  13543. and the fieldType parameter is a type specifier as defined in UMacAppUtilities.p. 
  13544. MacApp uses TextStyleFields when inspecting TextStyle records. You usually do 
  13545. not need to call this routine yourself.
  13546.  
  13547.  
  13548. æKY ToggleCmd
  13549. æD PROCEDURE ToggleCmd;
  13550. æFi UDebug 
  13551. æT PROCEDURE 
  13552. æC ToggleCmd prompts the user by displaying in the Debug Transcript a list the 
  13553. MacApp debugger’s flags and a request for the user to type a single-letter command. 
  13554. The flag that corresponds to the entered character is then switched on or off.
  13555. MacApp calls ToggleCmd from the MacApp debugger’s command processor. You do not 
  13556. need to call this routine yourself.
  13557.  
  13558.  
  13559. æKY TotalTempSize
  13560. æD FUNCTION TotalTempSize(justLocked: BOOLEAN; VAR canPurge: Handle): Size;
  13561. æFi UMemory 
  13562. æT PROCEDURE 
  13563. æC TotalTempSize returns the total number of bytes allocated in temporary blocks 
  13564. of memory or the total number allocated in locked temporary blocks. 
  13565. The justLocked parameter specifies whether to return the total of all temporary 
  13566. blocks, or only those that are locked; if its value is TRUE, then only locked 
  13567. blocks are counted. The canPurge parameter contains a handle to an unlocked 
  13568. block when the routine returns. 
  13569. MacApp calls TotalTempSize from a few global routines that allocate or otherwise 
  13570. manipiulate memory directly. You usually do not need to call this routine yourself, 
  13571. but you can use it if you need to determine how much temporary memory is allocated.
  13572.  
  13573.  
  13574. æKY TraceMenuName
  13575. æD FUNCTION TraceMenuName(aCmd: CmdNumber): CHAR;
  13576. æFi UMenuSetup 
  13577. æT PROCEDURE 
  13578. æC TraceMenuName displays the text and command number of a menu item in the 
  13579. Debug Transcript. The routine returns the space character. 
  13580. The parameter aCmd is the command number associated with the menu item. 
  13581. MacApp calls TraceMenuName from several menu-handling routines in debugging 
  13582. versions of applications. You do not need to call this routine yourself.
  13583.  
  13584.  
  13585. æKY TrapExists
  13586. æD FUNCTION TrapExists(theTrap: INTEGER): BOOLEAN;
  13587. æFi UMacAppUtilities 
  13588. æT PROCEDURE 
  13589. æC TrapExists returns TRUE if there is a routine defined for the specified trap 
  13590. number. The parameter theTrap is the trap number to be tested. 
  13591. MacApp calls TrapExists from several low-level operations that need information 
  13592. about the system in order to function correctly. You can use this routine to 
  13593. determine whether a particular system trap is implemented before attempting to 
  13594. call it.
  13595.  
  13596.  
  13597. æKY TrcEnable
  13598. æD FUNCTION TrcEnable(okToTrace: BOOLEAN): BOOLEAN;
  13599. æFi UDebug 
  13600. æT PROCEDURE 
  13601. æC TrcEnable turns the MacApp debugger’s tracing features on and off. It returns 
  13602. the previous state of the tracing features.
  13603. The okToTrace parameter specifies whether tracing is to be turned on or off; if 
  13604. its value is TRUE, then tracing will be turned on. 
  13605. MacApp calls TrcEnable from several routines that turn tracing functions on and 
  13606. off. You do not need to call this routine yourself.
  13607.  
  13608.  
  13609. æKY UnionVRect
  13610. æD PROCEDURE UnionVRect(src1, src2: VRect; VAR dstRect: VRect);
  13611. æFi UViewCoords 
  13612. æT PROCEDURE 
  13613. æC UnionVRect computes a rectangle that encloses the union of two other rectangles 
  13614. and returns the result in the specified variable. 
  13615. The parameters src1 and src2 are the view rectangles whose union is to be computed. 
  13616. The dstRect parameter contains the resulting rectangle when the routine returns. 
  13617. MacApp calls UnionVRect from TGridView methods that compute an area that encloses 
  13618. two rectangular cells. You can use this routine when you need to compute the 
  13619. rectangle that encloses any two view rectangles.
  13620.  
  13621.  
  13622. æKY UnloadAllSegments
  13623. æD PROCEDURE UnloadAllSegments;
  13624. æFi UMemory 
  13625. æT PROCEDURE 
  13626. æC UnloadAllSegments purges all code segments from memory, except resident segments. 
  13627. MacApp calls UnloadAllSegments when the application starts up and when it has 
  13628. too little memory to safely perform some operations. You usually do not need to 
  13629. call this routine yourself.
  13630.  
  13631.  
  13632. æKY UnpatchAll
  13633. æD PROCEDURE UnpatchAll;
  13634. æFi UPatch 
  13635. æT PROCEDURE 
  13636. æC UnpatchAll removes all patches to system traps that were installed using the 
  13637. HeadPatch, Head1Patch, and PatchTrap routines.
  13638. MacApp calls UnpatchAll when the application starts up and when it terminates. 
  13639. You usually do not need to call this routine yourself.
  13640.  
  13641.  
  13642. æKY UnpatchTrap
  13643. æD PROCEDURE UnpatchTrap(VAR thePatch: TrapPatch);
  13644. æFi UPatch 
  13645. æT PROCEDURE 
  13646. æC UnpatchTrap removes a patch from a system trap.
  13647. The parameter thePatch is the TrapPatch record that corresponds to the trap to be 
  13648. removed.
  13649. MacApp calls UnpatchTrap from several routines that restore the system to its 
  13650. original state. You usually do not need to call this routine yourself.
  13651.  
  13652.  
  13653. æKY UprChar
  13654. æD FUNCTION UprChar(ch: CHAR): CHAR;
  13655. æFi UMacAppUtilities 
  13656. æT PROCEDURE 
  13657. æC UprChar returns the uppercase character that corresponds to the specified 
  13658. character. 
  13659. The ch parameter is the character that will be changed to uppercase. If ch is 
  13660. already an uppercase character, then it is returned unchanged. 
  13661. MacApp calls UprChar from several routines used by the MacApp debugger’s command 
  13662. handler. You can use this routine when you need to convert lowercase characters 
  13663. to uppercase ones.
  13664.  
  13665.  
  13666. æKY UprMAName
  13667. æD PROCEDURE UprMAName(VAR s: MAName);
  13668. æFi UMacAppUtilities 
  13669. æT PROCEDURE 
  13670. æC UprMAName converts all the characters in a name to their uppercase equivalents. 
  13671. The s parameter is the name to be converted when UprMAName is called; it is the 
  13672. converted name when the routine returns. 
  13673. MacApp calls UprMAName from the global routine GetClassIDFromName. You usually 
  13674. do not need to call this routine yourself.
  13675.  
  13676.  
  13677. æKY UprStr255
  13678. æD PROCEDURE UprStr255(VAR s: Str255);
  13679. æFi UMacAppUtilities 
  13680. æT PROCEDURE 
  13681. æC UprStr255 converts all the characters in a string to their uppercase equivalents. 
  13682. The s parameter is the string to be converted when UprStr255 is called; it is 
  13683. the converted string when the routine returns. 
  13684. MacApp calls UprStr255 from a few global routines that convert all the characters 
  13685. in a string to uppercase. You can use this routine in a similar fashion.
  13686.  
  13687.  
  13688. æKY UseROMMap
  13689. æD PROCEDURE UseROMMap(resLoad: BOOLEAN);
  13690. æFi UMacAppUtilities 
  13691. æT PROCEDURE 
  13692. æC UseROMMap instructs the system to use the resources in the ROM rather than 
  13693. those in the system in Resource Manager calls, so that those calls can use resources 
  13694. stored in the ROM.If the value of the ResLoad parameter is TRUE, then the resource 
  13695. is loaded into memory. 
  13696. MacApp calls UseROMMap when installing the busy-cursor image. You can call this 
  13697. routine when you make Resource Manager calls for which you want ROM resources to 
  13698. be available.
  13699.  
  13700.  
  13701. æKY UseSelectionColor
  13702. æD PROCEDURE UseSelectionColor;
  13703. æFi UMacAppUtilities 
  13704. æT PROCEDURE 
  13705. æC UseSelectionColor exchanges the background color and the highlight color in 
  13706. the destionation. This has the visual effect of using a highlighting pen to 
  13707. select the object. The change affects only the next QuickDraw operation; after 
  13708. it is done, the pen’s color changes to what it was before the operation. 
  13709. MacApp calls UseSelectionColor when drawing the highlights for text and other 
  13710. elements in views. You can use this routine in a similar fashion.
  13711.  
  13712.  
  13713. æKY UseTempRgn
  13714. æD PROCEDURE UseTempRgn(byWhom: Str255);
  13715. æFi UMacApp 
  13716. æT PROCEDURE 
  13717. æC UseTempRgn prevents the application from using the gTempRgn global variable 
  13718. in two routines at once. 
  13719. The parameter byWhom is the name of (or other relevant information about) the routine 
  13720. that is using gTempRgn. 
  13721. MacApp calls UseTempRgn from a variety of routines that use gTempRgn as a temporary 
  13722. region for computations. You can call this routine before using gTempRgn, and 
  13723. MacApp will break into the debugger if gTempRgn is already in use.
  13724.  
  13725.  
  13726. æKY ValidateConfiguration
  13727. æD FUNCTION ValidateConfiguration(configuration: ConfigRecord): BOOLEAN;
  13728. æFi UMacAppUtilities 
  13729. æT PROCEDURE 
  13730. æC ValidateConfiguration checks the characteristic of the system on which the 
  13731. application is running. If it does not match the application’s requirements, 
  13732. MacApp displays an alert box informing the user that the application cannot run 
  13733. on the system and then terminates the application.
  13734. The configuration parameter stores the configuration record for the machine.
  13735. You can call ValidateConfiguration when your application starts to ensure that 
  13736. the machine that launched it can support its features.
  13737.  
  13738.  
  13739. æKY ValidateMenuBar
  13740. æD PROCEDURE ValidateMenuBar;
  13741. æFi UMenuSetup 
  13742. æT PROCEDURE 
  13743. æC ValidateMenuBar sets the value of gRedrawMenuBar to FALSE. 
  13744. MacApp calls this routine after updating the menu bar. You usually do not need 
  13745. to call this routine yourself.
  13746.  
  13747.  
  13748. æKY ValidateMenus
  13749. æD PROCEDURE ValidateMenus;
  13750. æFi UMenuSetup 
  13751. æT PROCEDURE 
  13752. æC ValidateMenus sets the value of gMenusAreSetup to TRUE. 
  13753. MacApp calls this routine after setting up the menus. You usually do not need to 
  13754. call this routine yourself.
  13755.  
  13756.  
  13757. æKY VBLInstall
  13758. æD PROCEDURE VBLInstall;
  13759. æFi UDebug 
  13760. æT PROCEDURE 
  13761. æC VBLInstall installs the MacApp debugger’s VBL tasks.
  13762. MacApp calls VBLInstall from the global routine InitUDebug. You do not need to 
  13763. call this routine yourself.
  13764.  
  13765.  
  13766. æKY VBLRemove
  13767. æD PROCEDURE VBLRemove;
  13768. æFi UDebug 
  13769. æT PROCEDURE 
  13770. æC VBLRemove removes the MacApp debugger’s VBL tasks.
  13771. MacApp calls VBLRemove from the global routine DebugTerminate. You do not need 
  13772. to call this routine yourself.
  13773.  
  13774.  
  13775. æKY VerboseIsHandle
  13776. æD FUNCTION VerboseIsHandle(h: UNIV Handle): BOOLEAN;
  13777. æFi UMacAppUtilities 
  13778. æT PROCEDURE 
  13779. æC VerboseIsHandle returns TRUE if the specified value is a valid handle. If it 
  13780. is not a valid handle, then the routine displays diagnostic information about it 
  13781. in the Debug Transcript. 
  13782. The h parameter is the value to be tested.
  13783. MacApp calls VerboseIsHandle from the global routines DisposeIfHandle and 
  13784. VerboseIsObject. You can use this routine to test the validity of handles in debugging 
  13785. versions of your application.
  13786.  
  13787.  
  13788. æKY VerboseIsObject
  13789. æD FUNCTION VerboseIsObject(obj: UNIV TObject): BOOLEAN;
  13790. æFi UObject 
  13791. æT PROCEDURE 
  13792. æC VerboseIsObject returns TRUE if the specified value is a reference to an 
  13793. object. If the value is not a reference to an object, then the routine displays 
  13794. diagnostic information about the value in the Debug Transcript. 
  13795. The obj parameter is the value to be tested. 
  13796. MacApp calls VerboseIsObject from global failure routines and from certain routines 
  13797. that operate on the fields of objects. You can use this routine to test the 
  13798. validity of objects in debugging versions of your application.
  13799.  
  13800.  
  13801. æKY VisibleRect
  13802. æD PROCEDURE VisibleRect(VAR r: Rect);
  13803. æFi UMacApp 
  13804. æT PROCEDURE 
  13805. æC VisibleRect computes the visible portion of a QuickDraw rectangle. 
  13806. The r parameter is the rectangle to be tested when the routine is called; it is 
  13807. the visible portion of the rectangle when the routine returns. 
  13808. MacApp calls VisibleRect from several methods that draw the contents of TView 
  13809. objects. You can use this routine when you want to limit drawing to a visible 
  13810. area.
  13811.  
  13812.  
  13813. æKY VPtToPt
  13814. æD FUNCTION VPtToPt(theVPt: VPoint): Point;
  13815. æFi UViewCoords 
  13816. æT PROCEDURE 
  13817. æC VPtToPt returns a QuickDraw point whose coordinates are the same as those of 
  13818. the specified view point. 
  13819. The parameter theVPt is the view point to be copied. 
  13820. MacApp calls VPtToPt from a variety of routines that convert from a view point 
  13821. into a QuickDraw point. You can use this routine in a similar fashion.
  13822.  
  13823.  
  13824. æKY VRectsNest
  13825. æD FUNCTION VRectsNest(outer, inner: VRect): BOOLEAN;
  13826. æFi UMacAppUtilities 
  13827. æT PROCEDURE 
  13828. æC VRectsNest returns TRUE if the view coordinates of the second rectangle specified 
  13829. are contained (nested) within those of the first rectangle specified.
  13830. The outer parameter specifies the rectangle thought to contain the rectangle 
  13831. specified by the parameter inner. 
  13832. MacApp never calls this routine; it is provided for your convenience. You can 
  13833. use it to determine whether one rectangle is nested inside another. 
  13834.  
  13835.  
  13836. æKY VRectToRect
  13837. æD PROCEDURE VRectToRect(theVRect: VRect; VAR theRect: Rect);
  13838. æFi UViewCoords 
  13839. æT PROCEDURE 
  13840. æC VRectToRect modifies a QuickDraw rectangle so that it has the same defining 
  13841. points as the specified view rectangle. 
  13842. The parameter theVRect is the view rectangle whose coordinates are to be copied. 
  13843. The parameter theRect is the QuickDraw rectangle to be modified when the routine 
  13844. is called and is the modified rectangle when the routine returns. 
  13845. MacApp calls VRectToRect from a variety of routines that convert from a view 
  13846. rectangle into a QuickDraw rectangle. You can use this routine in a similar 
  13847. fashion.
  13848.  
  13849.  
  13850. æKY WindCmd
  13851. æD PROCEDURE WindCmd;
  13852. æFi UDebug 
  13853. æT PROCEDURE 
  13854. æC WindCmd displays a prompt and awaits a single-character command from the 
  13855. user. Depending on the character that the user types, the routine brings the 
  13856. Debug Transcript to the front, sends it to the back, or changes its font. 
  13857. MacApp calls WindCmd from the MacApp debugger’s command processor. You do not 
  13858. need to call this routine yourself.
  13859.  
  13860.  
  13861. æKY WithApplicationResFileDo
  13862. æD PROCEDURE WithApplicationResFileDo(PROCEDURE DoWithResFile);
  13863. æFi UMacAppUtilities 
  13864. æT PROCEDURE 
  13865. æC WithApplicationResFileDo performs a procedure with the application’s resource 
  13866. fork as the current resource file. 
  13867. The parameter DoWithResFile is a procedure that you define separately. It can 
  13868. have any name, but it cannot take parameters. 
  13869. MacApp calls WithApplicationResFileDo from several global routines that load or 
  13870. otherwise manipulate application resources. You can use this routine when you 
  13871. need to ensure that the application’s resource fork is the current resource 
  13872. file.
  13873.  
  13874.  
  13875. æKY WithCodeResFileDo
  13876. æD PROCEDURE WithCodeResFileDo(PROCEDURE DoWithResFile);
  13877. æFi UMemory 
  13878. æT PROCEDURE 
  13879. æC WithCodeResFileDo performs the DoWithResFile procedure on the resource file 
  13880. having the reference number specified by gCodeRefNum. 
  13881. The parameter DoWithResFile is a procedure that you define separately. It can 
  13882. have any name, but it cannot take parameters. 
  13883. MacApp uses WithCodeResFileDo to load and unload code segments. 
  13884.  
  13885.  
  13886. æKY WithHideFromMacAppDo
  13887. æD PROCEDURE WithHideFromMacAppDo(PROCEDURE WhatToDo; itsHideType: HideType);
  13888. æFi UDebug 
  13889. æT PROCEDURE 
  13890. æC WithHideFromMacAppDo permits a routine to execute without affecting MacApp’s 
  13891. state. 
  13892. The WhatToDo procedure is a procedure that you declare separately. It can have 
  13893. any name, but it must accept the itsHideType parameter, which determines whether 
  13894. the procedure is completely hidden from MacApp or remains accessible enough that 
  13895. the MacApp debugger can halt its execution. If the value of itsHideType is RawHide, 
  13896. then MacApp can access the global variables. If the value of itsHideType is 
  13897. PartialHide, then MacApp can do a WriteLn to the Debug Transcript. If the value 
  13898. of itsHideType is FullHide, then the procedure is completely hidden and MacApp 
  13899. can fully operate the Debugger. 
  13900. MacApp calls WithHideFromMacAppDo from certain low-level debugging routines. You 
  13901. do not need to call this routine yourself.
  13902.  
  13903.  
  13904. æKY WriteBoolean
  13905. æD PROCEDURE WriteBoolean(b: BOOLEAN);
  13906. æFi UMacAppUtilities 
  13907. æT PROCEDURE 
  13908. æC MacAppWriteBoolean displays a Boolean value in the Debug Transcript. 
  13909. MacApp calls WriteBoolean from debugging code that displays the values of Boolean 
  13910. fields and variables. You usually do not need to call this routine yourself.
  13911.  
  13912.  
  13913. æKY WriteChar
  13914. æD PROCEDURE WriteChar(index: INTEGER; hText: Handle);
  13915. æFi UTEView 
  13916. æT PROCEDURE 
  13917. æC WriteChar displays a character from the specified text record in the Debug 
  13918. Transcript. 
  13919. The index parameter is the position of the character in the text record. The 
  13920. hText parameter is a handle to the text record. 
  13921. MacApp calls WriteChar from the global routine DumpTERecord. You do not need to 
  13922. call this routine yourself.
  13923.  
  13924. æKY WriteFocus
  13925. æD PROCEDURE WriteFocus;
  13926. æFi UMacApp.Globals 
  13927. æT PROCEDURE 
  13928. æC WriteFocus displays the values of gLongOffset, the view's portRect, the view’s 
  13929. visible region, and the view’s clip region in the Debug Transcript. 
  13930. MacApp never calls this routine; it is provided for your convenience. You can 
  13931. call it to obtain information about the current focus.
  13932.  
  13933.  
  13934. æKY WriteHandleContents
  13935. æD PROCEDURE WriteHandleContents(theHandle: UNIV Handle);
  13936. æFi UMacAppUtilities 
  13937. æT PROCEDURE 
  13938. æC WriteHandleContents displays the contents of the specified handle in the 
  13939. Debug Transcript. 
  13940. The parameter theHandle is the handle whose contents are to be displayed. 
  13941. You can use WriteHandleContents to display the contents of handles in 
  13942. the Debug Transcript.
  13943.  
  13944.  
  13945. æKY WriteHexInt
  13946. æD PROCEDURE WriteHexInt(theInt: INTEGER);
  13947. æFi UMacAppUtilities 
  13948. æT PROCEDURE 
  13949. æC WriteHexInt displays the specified integer in hexadecimal form in the Debug 
  13950. Transcript. 
  13951. The parameter theInt is the integer to be displayed. 
  13952. You can use WriteHexInt to display hexadecimal numbers in the Debug Transcript.
  13953.  
  13954.  
  13955. æKY WriteHexLongint
  13956. æD PROCEDURE WriteHexLongint(theLongint: LONGINT);
  13957. æFi UMacAppUtilities 
  13958. æT PROCEDURE 
  13959. æC WriteHexLongint displays the specified LongInt quantity in hexadecimal form 
  13960. in the Debug Transcript. 
  13961. The parameter theLongint is the LongInt to be displayed. 
  13962. MacApp calls WriteHexLongint to display certain pointers and handles in the 
  13963. Debug Transcript. You can use WriteHexLongint, to display LongInt values, including 
  13964. pointers and handles, in the Debug Transcript.You can use WriteHexInt to display 
  13965. hexadecimal numbers in the Debug Transcript.
  13966.  
  13967.  
  13968. æKY WritePt
  13969. æD PROCEDURE WritePt(pt: Point);
  13970. æFi UMacAppUtilities 
  13971. æT PROCEDURE 
  13972. æC WritePt displays a QuickDraw point in the Debug Transcript. 
  13973. The pt parameter is the point to be displayed.
  13974. MacApp calls WritePt in intense debugging mode to display point quantities during 
  13975. scrolling. You can use WritePt to display points in the Debug Transcript.
  13976.  
  13977.  
  13978. æKY WritePtr
  13979. æD PROCEDURE WritePtr(val: UNIV LONGINT);
  13980. æFi UMacAppUtilities 
  13981. æT PROCEDURE 
  13982. æC WritePtr displays a pointer, in hexadecimal form, in the Debug Transcript. 
  13983. The val parameter is the pointer to be displayed. 
  13984. MacApp calls WritePtr from a variety of inspection and debugging routines to 
  13985. display pointers in the Debug Transcript. You can use WritePtr in a similar 
  13986. fashion.
  13987.  
  13988.  
  13989. æKY WriteRect
  13990. æD PROCEDURE WriteRect(r: Rect);
  13991. æFi UMacAppUtilities 
  13992. æT PROCEDURE 
  13993. æC WriteRect displays a rectangle’s corner points in the Debug Transcript. 
  13994. The r parameter is the rectangle to be displayed. 
  13995. MacApp calls WriteRect from a variety of inspection and debugging routines to 
  13996. display rectangles in the Debug Transcript. You can use WriteRect in a similar 
  13997. fashion.
  13998.  
  13999.  
  14000. æKY WriteReserves
  14001. æD PROCEDURE WriteReserves;
  14002. æFi UMemory 
  14003. æT PROCEDURE 
  14004. æC WriteReserves displays the temporary-memory reserve and low-memory reserve in 
  14005. the Debug Transcript.
  14006. You can use WriteReserves to display the MacApp memory reserves in the Debug 
  14007. Transcript when debugging.
  14008.  
  14009.  
  14010. æKY WriteSig
  14011. æD PROCEDURE WriteSig(theID: IDType);
  14012. æFi UMacAppUtilities 
  14013. æT PROCEDURE 
  14014. æC WriteSig displays the signature, or type identifier, of the specified type in 
  14015. the Debug Transcript.
  14016. The parameter theID is the type identifier that is to be written.
  14017. You can use WriteReserves to display type identifiers in the Debug Transcript.
  14018.  
  14019.  
  14020. æKY WriteVPt
  14021. æD PROCEDURE WriteVPt(pt: VPoint);
  14022. æFi UMacAppUtilities 
  14023. æT PROCEDURE 
  14024. æC WriteVPt displays a view point in the Debug Transcript. 
  14025. The pt parameter is the view point to be written. 
  14026. MacApp calls WriteVPt from certain TView methods in intense debugging mode to 
  14027. display point values in the Debug Transcript. You can use this routine in a 
  14028. similar fashion.
  14029.  
  14030.  
  14031. æKY WriteVRect
  14032. æD PROCEDURE WriteVRect(r: VRect);
  14033. æFi UMacAppUtilities 
  14034. æT PROCEDURE 
  14035. æC WriteVRect displays a view rectangle's coordinates in the Debug Transcript.
  14036. The r parameter is the view rectangle to be written. 
  14037. You can use WriteVRect to display view rectangles in the Debug Transcript.
  14038.  
  14039.  
  14040. æKY WrLblBoolean
  14041. æD PROCEDURE WrLblBoolean(aLabel: Str255; b: BOOLEAN);
  14042. æFi UMacAppUtilities 
  14043. æT PROCEDURE 
  14044. æC WrLblBoolean displays a string followed by the equal sign and the specified 
  14045. Boolean value in the Debug Transcript.
  14046. The parameter aLabel is the string to be displayed with the Boolean value. The b 
  14047. parameter is the Boolean value to be displayed.
  14048. MacApp calls WrLblBoolean when it must display a named Boolean value in the 
  14049. Debug Transcript. You can use this routine in a similar fashion.
  14050.  
  14051.  
  14052. æKY WrLblField
  14053. æD PROCEDURE WrLblField(fieldName: Str255; fieldAddr: Ptr; fieldType: INTEGER);
  14054. æFi UObject 
  14055. æT PROCEDURE 
  14056. æC WrLblField displays a field name followed by the equal sign and the value of 
  14057. the field in the Debug Transcript. 
  14058. The fieldName parameter is the name of the field to be displayed. The fieldAddr 
  14059. parameter is a pointer to the field. The fieldType parameter is the type identifier 
  14060. associated with the field’s data type. 
  14061. MacApp calls WrLblField when it must display a field in the Debug Transcript. 
  14062. You can use this routine in a similar fashion.
  14063.  
  14064.  
  14065. æKY WrLblHandleContents
  14066. æD PROCEDURE WrLblHandleContents(aLabel: Str255; theHandle: UNIV Handle);
  14067. æFi UMacAppUtilities 
  14068. æT PROCEDURE 
  14069. æC WrLblHandleContents displays a string followed by the equal sign and the 
  14070. contents of the specified handle in the Debug Transcript.
  14071. The parameter aLabel is the string to be displayed. The parameter theHandle is 
  14072. the handle whose contents are to be displayed. 
  14073. MacApp calls WrLblHandleContents when it must display a handle in the Debug 
  14074. Transcript. You can use this routine in a similar fashion.
  14075.  
  14076.  
  14077. æKY WrLblHexInt
  14078. æD PROCEDURE WrLblHexInt(theLabel: Str255; theInt: INTEGER);
  14079. æFi UMacAppUtilities 
  14080. æT PROCEDURE 
  14081. æC WrLblHexInt displays a string followed by the equal sign and the specified 
  14082. integer in hexadecimal form in the Debug Transcript. 
  14083. The parameter theLabel is the string to be displayed. The parameter theInt is 
  14084. the integer to be displayed. 
  14085. MacApp calls WrLblHexInt when it must display an integer in the Debug Transcript. 
  14086. You can use this routine in a similar fashion.
  14087.  
  14088.  
  14089. æKY WrLblHexLongint
  14090. æD PROCEDURE WrLblHexLongint(theLabel: Str255; theLongint: LONGINT);
  14091. æFi UMacAppUtilities 
  14092. æT PROCEDURE 
  14093. æC WrLblHexLongint displays a string followed by the equal sign and the specified 
  14094. LongInt value in hexadecimal form in the Debug Transcript. 
  14095. The parameter theLabel is the string to be displayed. The parameter theInt is 
  14096. the LongInt value to be displayed. 
  14097. MacApp calls WrLblHexLongint when it must display a LongInt value in the Debug 
  14098. Transcript. You can use this routine in a similar fashion.
  14099.  
  14100.  
  14101. æKY WrLblPt
  14102. æD PROCEDURE WrLblPt(aLabel: Str255; pt: Point);
  14103. æFi UMacAppUtilities 
  14104. æT PROCEDURE 
  14105. æC WrLblPt displays a string followed by the equal sign and the specified QuickDraw 
  14106. point in the Debug Transcript. 
  14107. The parameter aLabel is the string to be displayed. The pt parameter is the 
  14108. point to be displayed. 
  14109. MacApp calls WrLblPt when it must display a point in the Debug Transcript. You 
  14110. can use this routine in a similar fashion.
  14111.  
  14112.  
  14113. æKY WrLblPtr
  14114. æD PROCEDURE WrLblPtr(aLabel: Str255; val: UNIV LONGINT);
  14115. æFi UMacAppUtilities 
  14116. æT PROCEDURE 
  14117. æC WrLblPtr displays a string followed by the equal sign and the specified Univ 
  14118. LongInt value in hexadecimal form in the Debug Transcript. 
  14119. The parameter aLabel is the string to be displayed. The parameter val is the 
  14120. Univ LongInt value to be displayed. 
  14121. MacApp calls WrLblPtr when it must display a pointer value in the Debug Transcript. 
  14122. You can use this routine in a similar fashion.
  14123.  
  14124.  
  14125. æKY WrLblRect
  14126. æD PROCEDURE WrLblRect(aLabel: Str255; r: Rect);
  14127. æFi UMacAppUtilities 
  14128. æT PROCEDURE 
  14129. æC WrLblRect displays a string followed by the equal sign and the specified 
  14130. QuickDraw rectangle’s corner points in the Debug Transcript. 
  14131. The parameter aLabel is the string to be displayed. The r parameter is the rectangle 
  14132. to be displayed. 
  14133. MacApp calls WrLblRect when it must display a rectangle in the Debug Transcript. 
  14134. You can use this routine in a similar fashion.
  14135.  
  14136.  
  14137. æKY WrLblSig
  14138. æD PROCEDURE WrLblSig(theLabel: Str255; theID: IDType);
  14139. æFi UMacAppUtilities 
  14140. æT PROCEDURE 
  14141. æC WrLblSig displays a string followed by the equal sign and the specified signature, 
  14142. or type identifier, in the Debug Transcript. 
  14143. The parameter theLabel is the string to be displayed. The parameter theID is the 
  14144. signature to be displayed. 
  14145. MacApp calls WrLblSig when it must display a signature in the Debug Transcript. 
  14146. You can use this routine in a similar fashion.
  14147.  
  14148.  
  14149. æKY WrLblVPt
  14150. æD PROCEDURE WrLblVPt(aLabel: Str255; pt: VPoint);
  14151. æFi UMacAppUtilities 
  14152. æT PROCEDURE 
  14153. æC WrLblVPt displays a string followed by the equal sign and the specified view 
  14154. point in the Debug Transcript. 
  14155. The parameter aLabel is the string to be displayed. The pt parameter is the view 
  14156. point to be displayed. 
  14157. MacApp calls WrLblVPt when it must display a view point in the Debug Transcript. 
  14158. You can use this routine in a similar fashion.
  14159.  
  14160.  
  14161. æKY WrLblVRect
  14162. æD PROCEDURE WrLblVRect(aLabel: Str255; r: VRect);
  14163. æFi UMacAppUtilities 
  14164. æT PROCEDURE 
  14165. æC WrLblVRect displays a string followed by the equal sign and the specified 
  14166. view rectangle’s corner points in the Debug Transcript. 
  14167. The parameter aLabel is the string to be displayed. The r parameter is the view 
  14168. rectangle to be displayed. 
  14169. MacApp calls WrLblVRect when it must display a view rectangle in the Debug Transcript. 
  14170. You can use this routine in a similar fashion.
  14171.  
  14172.  
  14173. æKY XDebugAddrError
  14174. æD PROCEDURE XDebugAddrError;
  14175. æFi UDebug 
  14176. æT PROCEDURE 
  14177. æC This routine is not yet documented; it is used internally by MacApp. You 
  14178. never need to call it yourself.
  14179.  
  14180.  
  14181. æKY XDebugBusError
  14182. æD PROCEDURE XDebugBusError;
  14183. æFi UDebug 
  14184. æT PROCEDURE 
  14185. æC This routine is not yet documented; it is used internally by MacApp. You 
  14186. never need to call it yourself.
  14187.  
  14188.  
  14189. æKY XDebugCheck
  14190. æD PROCEDURE XDebugCheck;
  14191. æFi UDebug 
  14192. æT PROCEDURE 
  14193. æC This routine is not yet documented; it is used internally by MacApp. You 
  14194. never need to call it yourself.
  14195.  
  14196.  
  14197. æKY XDebugIllInst
  14198. æD PROCEDURE XDebugIllInst;
  14199. æFi UDebug 
  14200. æT PROCEDURE 
  14201. æC This routine is not yet documented; it is used internally by MacApp. You 
  14202. never need to call it yourself.
  14203.  
  14204.  
  14205. æKY XDebugLineF
  14206. æD PROCEDURE XDebugLineF;
  14207. æFi UDebug 
  14208. æT PROCEDURE 
  14209. æC This routine is not yet documented; it is used internally by MacApp. You 
  14210. never need to call it yourself.
  14211.  
  14212.  
  14213. æKY XDebugOverflow
  14214. æD PROCEDURE XDebugOverflow;
  14215. æFi UDebug 
  14216. æT PROCEDURE 
  14217. æC This routine is not yet documented; it is used internally by MacApp. You 
  14218. never need to call it yourself.
  14219.  
  14220.  
  14221. æKY XDebugSysError
  14222. æD PROCEDURE XDebugSysError;
  14223. æFi UDebug 
  14224. æT PROCEDURE 
  14225. æC This routine is not yet documented; it is used internally by MacApp. You 
  14226. never need to call it yourself.
  14227.  
  14228.  
  14229. æKY XDebugZeroDiv
  14230. æD PROCEDURE XDebugZeroDiv;
  14231. æFi UDebug 
  14232. æT PROCEDURE 
  14233. æC This routine is not yet documented; it is used internally by MacApp. You 
  14234. never need to call it yourself.
  14235.  
  14236.  
  14237. æKY YouAreWarned
  14238. æD FUNCTION YouAreWarned: BOOLEAN;
  14239. æFi UDebug 
  14240. æT PROCEDURE 
  14241. æC This routine is not yet documented; it is used internally by MacApp. You 
  14242. never need to call it yourself.
  14243.  
  14244. æKY Global Variables
  14245. æKL
  14246. gAlwaysTrackCursor
  14247. gApp1MemList
  14248. gApp2MemList
  14249. gAppDone
  14250. gApplication
  14251. gApplicationRefNum
  14252. gApplicationStyle
  14253. gAskAboutAlloc
  14254. gAskFailure
  14255. gAssumeFocused
  14256. gBoolString
  14257. gBreaksPenState
  14258. gBusyTempRgn
  14259. gCancelAllPrinting
  14260. gChooserOK
  14261. gClickCount
  14262. gClipClaimed
  14263. gClipOrphanage
  14264. gClipUndoView
  14265. gClipView
  14266. gClipWindow
  14267. gClipWrittenToDeskScrap
  14268. gCodeRefNum
  14269. gCodeSegs
  14270. gConfiguration
  14271. gCouldPrint
  14272. gCreateWithTemplates
  14273. gCurrPrintHandler
  14274. gCursorRgn
  14275. gDeadStripSuppression
  14276. gDebugPrinting
  14277. gDefClikLoopProc
  14278. gDocList
  14279. gDrawingPictScrap
  14280. gDrawingPictScrapView
  14281. gEnableDoubleBuffering
  14282. gErrorParm3
  14283. gEventLevel
  14284. gExperimenting
  14285. gFakeWindow
  14286. gFieldToStrRtn
  14287. gFileCount
  14288. gFinderHPrint
  14289. gFinderPrinting
  14290. gFocusedView
  14291. gFreeWindowList
  14292. gGotClipType
  14293. gGZPurgeNotify
  14294. gHeadCohandler
  14295. gIdlePhase
  14296. gInBackground
  14297. gInFilter
  14298. gInhibitNestedHandling
  14299. gInitialized
  14300. gIntenseDebugging
  14301. gIsLoadedSeg
  14302. gIsResidentSeg
  14303. gJobPrintHandler
  14304. gLastClickPart
  14305. gLastDeskAcc
  14306. gLastMsePt
  14307. gLastUpTime
  14308. gLongOffset
  14309. gLowSpaceInterval
  14310. gMacAppAlertFilter
  14311. gMainEventMask
  14312. gMainFileType
  14313. gMastReport
  14314. gMATextBoxTE
  14315. gMaxLockedRsrc
  14316. gMaxStackDepth
  14317. gMBarDisplayed
  14318. gMBarHeight
  14319. gMBarHierarchical
  14320. gMBarNotDisplayed
  14321. gMemMgtBreak
  14322. gMenusAreSetup
  14323. gNewScrapStuff
  14324. gNextSpaceMsg
  14325. gNoChanges
  14326. gNullPrintHandler
  14327. gNumUntitled
  14328. gOldChooserFlag
  14329. gOldScrapStuff
  14330. gOrthogonal
  14331. gPageOffset
  14332. gPostCondition
  14333. gPreCondition
  14334. gPrefClipType
  14335. gPrintHandler
  14336. gPrinting
  14337. gRedrawMenuBar
  14338. gReportEvt
  14339. gReportInfo
  14340. gReportMenuChoices
  14341. gReportNext
  14342. gReportTime
  14343. gRGBBlack
  14344. gRGBWhite
  14345. gRsrcCheck
  14346. gRsrcReport
  14347. gSaveFocusRec
  14348. gSegReport
  14349. gSignatureCount
  14350. gSignatureIds
  14351. gSignatures
  14352. gSingleStep
  14353. gStdHysteresis
  14354. gStdPageMargins
  14355. gStdStaggerCount
  14356. gStdWMoveBounds
  14357. gStdWScreenRect
  14358. gStdWSizeRect
  14359. gStrippedAddress
  14360. gSysMemList
  14361. gSystemStyle
  14362. gSysWindowActive
  14363. gTarget
  14364. gTEDefaultWordBreak
  14365. gTempRgn
  14366. gToolBoxInitialized
  14367. gTopHandler
  14368. gTraceIdle
  14369. gTraceSetupMenus
  14370. gTracing
  14371. gUDialogInitialized
  14372. gUGridViewInitialized
  14373. gUndoCmd
  14374. gUndoState
  14375. gUnloadAllSegs
  14376. gUPrintingInitialized
  14377. gUsedBy
  14378. gUTEViewInitialized
  14379. gVarClipPicSize
  14380. gWasTrcEnable
  14381. gWorkPort
  14382. gWResSignature
  14383. gWResType
  14384. gZeroPt
  14385. gZeroRect
  14386. gZeroVPt
  14387. gZeroVRect
  14388. pCodeReserve
  14389. pCopyright
  14390. pCurrTEView
  14391. pCursorInfo
  14392. pDebugView
  14393. pDebugWindow
  14394. pDifference
  14395. pETSPatch
  14396. pFi
  14397. pInvalidateRgn
  14398. pLoadSegCalledFromOwnApp
  14399. pMaxSegNum
  14400. pMemReserve
  14401. pNoOfSegments
  14402. pOKCodeReserve
  14403. pOldResFile
  14404. pPatchList
  14405. pPermAllocation
  14406. pPixelsToHighlight
  14407. pPreviousSelection
  14408. pReserveExists
  14409. pReserveShortfall
  14410. pSegLoadPatch
  14411. pSegNeedsUnloading
  14412. pSzCodeReserve
  14413. pSzMemReserve
  14414. pTEIntenseDebugging
  14415. pVisibleCells
  14416. qDebug
  14417. qDebugTheDebugger
  14418. qExperimentalAndUnsupported
  14419. qInspector
  14420. qMacApp
  14421. qNames
  14422. qNeedsColorQD
  14423. qNeedsFPU
  14424. qNeedsHierarchicalMenus
  14425. qNeedsMC68020
  14426. qNeedsMC68030
  14427. qNeedsROM128K
  14428. qNeedsScriptManager
  14429. qNeedsStyleTextEdit
  14430. qNeedsWaitNextEvent
  14431. qPerform
  14432. qRangeCheck
  14433. qTemplateViews
  14434. qTrace
  14435.  
  14436. æKY gAlwaysTrackCursor
  14437. æD BOOLEAN
  14438. æFi UMacApp 
  14439. æT VARIABLE 
  14440. æC Set to TRUE when you want to track the cursor regardless of whether it strays 
  14441. outside gCursorRgn. 
  14442.  
  14443.  
  14444.  
  14445.  
  14446.  
  14447.  
  14448.  
  14449. æKY gApp1MemList
  14450. æD HHandleList 
  14451. æFi UMemory 
  14452. æT VARIABLE 
  14453. æC The value of gApp1MemList is initially set to NIL, allowing you to create lists 
  14454. of handles and place them in either this variable or its counterpart, 
  14455. gApp2MemList. (For example, one list might contain your application's permanent 
  14456. handles, and the other might contain those that are based on the current 
  14457. situation.) Each value stored in one of these lists should be a handle to a list 
  14458. of other handles. If you modify either of these lists, call the global method 
  14459. CheckReserve. It calls the global method BuildAllReserves to recompute the code 
  14460. and low-space reserves. CheckReserve's result indicates whether the full code 
  14461. reserve is present. Without a full code reserve, your program may crash because a 
  14462. segment (or defproc) could not be loaded. The handles in the lists  point to 
  14463. resources that your application might require and are usually marked nonpurgeable; 
  14464. the global method GrowZoneProc, however, can purge any of these handles that are 
  14465. not locked.
  14466.  
  14467.  
  14468. æKY gApp2MemList
  14469. æD HHandleList 
  14470. æFi UMemory 
  14471. æT VARIABLE 
  14472. æC The value of gApp2MemList  is initially set to NIL, allowing you to create 
  14473. lists of handles and place them in either this variable or its counterpart, 
  14474. gApp1MemList. (For example, one list might contain your application's permanent 
  14475. handles, and the other might contain those that are based on the current 
  14476. situation.) Each value stored in one of these lists should be a handle to a list 
  14477. of other handles. If you modify either of these lists, call the global method 
  14478. CheckReserve. It calls the global method BuildAllReserves to recompute the code 
  14479. and low-space reserves. CheckReserve's result indicates whether the full code 
  14480. reserve is present. Without a full code reserve, your program may crash because a 
  14481. segment (or defproc) could not be loaded. The handles in the lists  point to 
  14482. resources that your application might require and are usually marked nonpurgeable; 
  14483. the global method GrowZoneProc, however, can purge any of these handles that are 
  14484. not locked.
  14485.  
  14486.  
  14487. æKY gAppDone
  14488. æD BOOLEAN
  14489.  
  14490. æFi UMacApp 
  14491. æT VARIABLE 
  14492. æC Set to TRUE when you want the application to terminate.
  14493.  
  14494.  
  14495. æKY gApplication
  14496. æD TApplication
  14497. æFi UMacApp 
  14498. æT VARIABLE 
  14499. æC A reference to the application object. 
  14500.  
  14501.  
  14502. æKY gApplicationRefNum
  14503. æD INTEGER
  14504. æFi UMacAppUtilities 
  14505. æT VARIABLE 
  14506. æC The reference number of the application’s resource file.
  14507.  
  14508.  
  14509. æKY gApplicationStyle
  14510. æD TextStyle
  14511. æFi UMacApp 
  14512. æT VARIABLE 
  14513. æC The application’s default text style.
  14514.  
  14515.  
  14516.  
  14517.  
  14518.  
  14519.  
  14520.  
  14521.  
  14522.  
  14523.  
  14524.  
  14525. æKY gAskAboutAlloc
  14526. æD BOOLEAN
  14527. æFi UFailure 
  14528. æT VARIABLE 
  14529. æC If the value of gAskAboutAlloc is TRUE, MacApp® enters debug mode each time a 
  14530. new object is created. The debugger displays the name of the last routine executed 
  14531. and the type of object created. This allows you to check your application's memory 
  14532. management. For more information, see Chapter 6 , “MacApp Debugging Facilities,” 
  14533. in the MacApp 2.0 General Reference."
  14534.  
  14535.  
  14536. æKY gAskFailure
  14537. æD BOOLEAN
  14538. æFi UFailure 
  14539. æT VARIABLE 
  14540. æC If the value of gAskFailure is TRUE, MacApp enters the debugger on calls to 
  14541. the global methods FailOSErr, FailResError, FailMemError, FailNILResource, and 
  14542. FailSpaceIsLow, giving the user a chance to force an error. Thus, in debugging, it 
  14543. can be used to simulate an error condition.
  14544.  
  14545.  
  14546. æKY gAssumeFocused
  14547. æD BOOLEAN
  14548. æFi UMacApp 
  14549. æT VARIABLE 
  14550. æC If the value of gAssumeFocused is TRUE, TView.AssumeFocused forces a program 
  14551. break if the view is not focused. This variable is used only in debug mode.
  14552.  
  14553.  
  14554.  
  14555.  
  14556.  
  14557.  
  14558.  
  14559.  
  14560.  
  14561.  
  14562.  
  14563.  
  14564. æKY gBoolString
  14565. æD ARRAY [BOOLEAN] OF STRING[5]
  14566. æFi UMacAppUtilities 
  14567. æT VARIABLE 
  14568. æC Used by the MacApp debugger and the Inspector to display Boolean values.
  14569.  
  14570.  
  14571.  
  14572.  
  14573.  
  14574. æKY gBreaksPenState
  14575. æD PenState
  14576. æFi UPrinting 
  14577. æT VARIABLE 
  14578. æC The pen state to be used to draw page breaks. 
  14579.  
  14580.  
  14581. æKY gBusyTempRgn
  14582. æD BOOLEAN
  14583. æFi UMacApp 
  14584. æT VARIABLE 
  14585. æC TRUE indicates that gTempRgn is in use. This variable is used internally by the 
  14586. MacApp debugger.
  14587.  
  14588.  
  14589. æKY gCancelAllPrinting
  14590. æD BOOLEAN
  14591. æFi UPrinting 
  14592. æT VARIABLE 
  14593. æC MacApp sets the value of gCancelAllPrinting to TRUE if the user clicks the  
  14594. “Cancel All Printing” button while printing from the Finder™.
  14595.  
  14596.  
  14597.  
  14598.  
  14599.  
  14600.  
  14601. æKY gChooserOK
  14602. æD BOOLEAN
  14603. æFi UMacApp 
  14604. æT VARIABLE 
  14605. æC If the value of gChooserOK is FALSE, the user is not allowed to change the 
  14606. printer selection using the Chooser desk accessory while the application is 
  14607. active; if the value is TRUE (the default set in InitUMacApp), then the ability to 
  14608. choose printers is only disabled during background printing. If you want it set to 
  14609. FALSE in your application, the right time to set this variable is after calling 
  14610. InitUMacApp (where it is initialized to TRUE) and before calling InitUPrinting. 
  14611. Note that changing the value of gChooserOK yourself is not recommended in the 
  14612. MultiFinder® environment. 
  14613.  
  14614.  
  14615.  
  14616.  
  14617. æKY gClickCount
  14618. æD INTEGER
  14619. æFi UMacApp 
  14620. æT VARIABLE 
  14621. æC The number of mouse clicks that have been saved up by TApplication.CountClicks, 
  14622. which is called from TApplication.HandleMouseDown.
  14623.  
  14624.  
  14625.  
  14626.  
  14627.  
  14628.  
  14629.  
  14630. æKY gClipClaimed
  14631. æD BOOLEAN
  14632. æFi UMacApp 
  14633. æT VARIABLE 
  14634. æC MacApp sets the value of gClipClaimed to TRUE if the current command object 
  14635. has used the Clipboard.  When a Cut or Copy command fails, this variable is used 
  14636. by the TApplication methods PerformCommand and ClaimClipboard to determine whether 
  14637. the Clipboard has already been used by the DoIt command.
  14638.  
  14639. æKY gClipOrphanage
  14640. æD TView
  14641. æFi UMacApp 
  14642. æT VARIABLE 
  14643. æC The view that represents the Clipboard when the application has no provision to 
  14644. display the Clipboard's contents.
  14645.  
  14646. æKY gClipUndoView
  14647. æD TView
  14648. æFi UMacApp 
  14649. æT VARIABLE 
  14650. æC The view that was previously installed in the Clipboard. 
  14651.  
  14652. æKY gClipView
  14653. æD TView
  14654. æFi UMacApp 
  14655. æT VARIABLE 
  14656. æC The view that is currently installed in the Clipboard. 
  14657.  
  14658.  
  14659. æKY gClipWindow
  14660. æD TWindow
  14661. æFi UMacApp 
  14662. æT VARIABLE 
  14663. æC The window that holds the Clipboard display.
  14664.  
  14665. æKY gClipWrittenToDeskScrap
  14666. æD BOOLEAN
  14667. æFi UMacApp 
  14668. æT VARIABLE 
  14669. æC TRUE if the Clipboard view has been written to the desk scrap. 
  14670.  
  14671. æKY gCodeRefNum
  14672. æD INTEGER
  14673. æFi UMemory 
  14674. æT VARIABLE 
  14675. æC The reference number of the resource fork that contains the code resources for 
  14676. the application.
  14677.  
  14678.  
  14679.  
  14680.  
  14681.  
  14682.  
  14683.  
  14684.  
  14685.  
  14686. æKY gCodeSegs
  14687. æD HHandleList
  14688. æFi UMemory 
  14689. æT VARIABLE 
  14690. æC A list of handles to all 'CODE' resources in the application resource fork.
  14691.  
  14692.  
  14693.  
  14694.  
  14695.  
  14696.  
  14697.  
  14698. æKY gConfiguration
  14699. æD ConfigRecord
  14700. æFi UMacAppUtilities 
  14701. æT VARIABLE 
  14702. æC The configuration of the system on which the application is running.
  14703.  
  14704.  
  14705. æKY gCouldPrint
  14706. æD BOOLEAN
  14707. æFi UMacApp 
  14708. æT VARIABLE 
  14709. æC TRUE indicates that printer code is present and initialized.
  14710.  
  14711.  
  14712. æKY gCreateWithTemplates
  14713. æD BOOLEAN
  14714. æFi UMacAppUtilities 
  14715. æT VARIABLE 
  14716. æC Performs the same task as gDeadStripSuppression; gDeadStripSuppression is 
  14717. preferred.
  14718.  
  14719.  
  14720.  
  14721.  
  14722. æKY gCurrPrintHandler
  14723. æD TPrintHandler
  14724. æFi UMacApp 
  14725. æT VARIABLE 
  14726. æC When the application is printing, MacApp sets the value of gCurrPrintHandler 
  14727. to the print handler. Its value is NIL if the application is not printing. 
  14728.  
  14729.  
  14730. æKY gCursorRgn
  14731. æD RgnHandle
  14732. æFi UMacAppUtilities 
  14733. æT VARIABLE 
  14734. æC The current cursor region that is passed as the sleep region to the Toolbox 
  14735. routine WaitNextEvent.
  14736.  
  14737.  
  14738.  
  14739.  
  14740.  
  14741.  
  14742.  
  14743.  
  14744. æKY gDeadStripSuppression
  14745. æD BOOLEAN
  14746. æFi UMacAppUtilities 
  14747. æT VARIABLE 
  14748. æC Allows you to fool the MPW Linker by conditioning the execution of a call to 
  14749. Member with the arguments TObject(NIL) and className. Since the default (and 
  14750. unchanging) value of gDeadStripSuppression is FALSE, the call to Member will not 
  14751. be executed; however, its presence in the code will prevent the MPW Linker from 
  14752. stripping out code for this class. (The linker optimizes object code by removing 
  14753. code for any class that is not specifically referenced in executable code.) For an 
  14754. example of the use of the gDeadStripSuppression variable, see the implementation 
  14755. of the global routine DoInitUMacApp.
  14756.  
  14757.  
  14758.  
  14759. æKY gDebugPrinting
  14760. æD BOOLEAN
  14761. æFi UMacApp 
  14762. æT VARIABLE 
  14763. æC A MacApp debugger switch that enables and disables tracing of printing 
  14764. operations.
  14765.  
  14766.  
  14767. æKY gDefClikLoopProc
  14768. æD ProcPtr
  14769. æFi UTEView 
  14770. æT VARIABLE 
  14771. æC The standard TextEdit click loop routine. For more information on TextEdit’s 
  14772. click loop function, see  page 380 of Inside Macintosh, Volume I.
  14773.  
  14774. æKY gDocList
  14775. æD TList
  14776. æFi UMacApp 
  14777. æT VARIABLE 
  14778. æC The list of currently open documents.
  14779.  
  14780.  
  14781.  
  14782.  
  14783. æKY gDrawingPictScrap
  14784. æD BOOLEAN
  14785. æFi UMacApp 
  14786. æT VARIABLE 
  14787. æC MacApp sets gDrawingPictScrap to TRUE if a view's Draw routine is being called 
  14788. in order to create 'PICT' data in the desk scrap. If you want your Draw method to 
  14789. place comments in the picture in the desk scrap, it can check this routine and 
  14790. insert picture comments as appropriate. 
  14791.  
  14792.  
  14793.  
  14794.  
  14795.  
  14796.  
  14797.  
  14798.  
  14799.  
  14800. æKY gDrawingPictScrapView
  14801. æD TView
  14802. æFi UMacApp 
  14803. æT VARIABLE 
  14804. æC The view currently being drawn in the 'PICT' scrap.
  14805.  
  14806. æKY gEnableDoubleBuffering
  14807. æD BOOLEAN
  14808. æFi UMacApp 
  14809. æT VARIABLE 
  14810. æC TRUE enables automatic double buffering when views are being drawn or scrolled.  
  14811.  
  14812. Note: This variable is experimental and unsupported!
  14813.  
  14814.  
  14815. æKY gErrorParm3
  14816. æD Str255 
  14817. æFi UMacApp 
  14818. æT VARIABLE 
  14819. æC When the global method ErrorAlert displays one of the standard alert boxes, the 
  14820. value of gErrorParm3 replaces the last argument to the Toolbox routine ParamText.  
  14821. If no value is supplied, ErrorAlert sets this to ' '. You can use gErrorParm3 to 
  14822. parameterize the automatic alert boxes that MacApp displays; for example, 
  14823. TDocument.ReadFromFile sets this variable to the document name. 
  14824.  
  14825. æKY gEventLevel
  14826. æD INTEGER
  14827. æFi UMacApp 
  14828. æT VARIABLE 
  14829. æC The number of nested calls to TApplication.PollEvent.
  14830.  
  14831. æKY gExperimenting
  14832. æD BOOLEAN
  14833. æFi UMacApp 
  14834. æT VARIABLE 
  14835. æC Switches an application's experimental features on or off; can be toggled from 
  14836. the MacApp debugger.
  14837.  
  14838.  
  14839. æKY gFakeWindow
  14840. æD WindowRecord
  14841. æFi UMacApp 
  14842. æT VARIABLE 
  14843. æC A work port that is used internally by gWorkPort. This is not a real window, 
  14844. just a port; it is created with its control list set to NIL.
  14845.  
  14846.  
  14847. æKY gFieldToStrRtn
  14848. æD ProcPtr
  14849. æFi UMacAppUtilities 
  14850. æT VARIABLE 
  14851. æC The address of the routine that converts fields to strings. The default value 
  14852. is StdFieldToString. This variable is for internal use only.
  14853.  
  14854. æKY gFileCount
  14855. æD INTEGER
  14856. æFi UMacApp 
  14857. æT VARIABLE 
  14858. æC The number of files to open or print from the Finder™. MacApp sets the value 
  14859. of gFileCount in the global routine DoInitUMacApp. 
  14860.  
  14861.  
  14862. æKY gFinderHPrint
  14863. æD Handle 
  14864. æFi UPrinting 
  14865. æT VARIABLE 
  14866. æC Passed as an argument to the Toolbox routine PrJobMerge when the application is 
  14867. printing more than one document from the Finder™.
  14868.  
  14869. æKY gFinderPrinting
  14870. æD BOOLEAN
  14871. æFi UMacApp 
  14872. æT VARIABLE 
  14873. æC MacApp sets gFinderPrinting to TRUE if the application was opened only for the 
  14874. purpose of printing documents from the Finder. 
  14875.  
  14876.  
  14877. æKY gFocusedView
  14878. æD TView
  14879. æFi UMacApp 
  14880. æT VARIABLE 
  14881. æC The view that is currently focused. 
  14882.  
  14883.  
  14884. æKY gFreeWindowList
  14885. æD TList
  14886. æFi UMacApp 
  14887. æT VARIABLE 
  14888. æC The list of windows that are not associated with a document.
  14889.  
  14890. æKY gGotClipType
  14891. æD BOOLEAN
  14892. æFi UMacApp 
  14893. æT VARIABLE 
  14894. æC Set to TRUE by the global routine CanPaste if that routine can paste data of 
  14895. the type currently in the Clipboard.
  14896.  
  14897.  
  14898. æKY gGZPurgeNotify
  14899. æD ProcPtr
  14900. æFi UMemory 
  14901. æT VARIABLE 
  14902. æC If the handle stored in gGZPurgeNotify is not NIL, it is passed as an argument 
  14903. to the global procedure CallNotify, and CallNotify is called before the 
  14904. GrowZoneProc global procedure purges a handle.
  14905.  
  14906. æKY gHeadCohandler
  14907. æD TEvtHandler
  14908. æFi UMacApp 
  14909. æT VARIABLE 
  14910. æC The event handler  at the head of the linked list of global cohandlers.
  14911.  
  14912.  
  14913. æKY gIdlePhase
  14914. æD IdlePhase
  14915. æFi UMacApp 
  14916. æT VARIABLE 
  14917. æC The current idle phase (idleBegin, idleContinue, or idleEnd). 
  14918.  
  14919.  
  14920. æKY gInBackground
  14921. æD BOOLEAN
  14922. æFi UMacApp 
  14923. æT VARIABLE 
  14924. æC MacApp sets gInBackground to TRUE if the application is currently running in 
  14925. the background. 
  14926.  
  14927.  
  14928. æKY gInFilter
  14929. æD BOOLEAN
  14930. æFi UMacApp 
  14931. æT VARIABLE 
  14932. æC TRUE indicates that the procedure MacAppAlertFilter is to re-enter MacApp to 
  14933. handle updates.
  14934.  
  14935.  
  14936.  
  14937.  
  14938.  
  14939. æKY gInhibitNestedHandling
  14940. æD BOOLEAN
  14941. æFi UMacApp 
  14942. æT VARIABLE 
  14943. æC TRUE indicates that failure was signalled and the outermost event loop has not 
  14944. been reached or the ErrorAlert routing has not yet shown the failure to the user. 
  14945. You can set this variable to TRUE so that MacApp no longer handles activate or 
  14946. update events and idling when it calls the global routine MacAppAlert.
  14947.  
  14948.  
  14949.  
  14950.  
  14951.  
  14952.  
  14953.  
  14954. æKY gInitialized
  14955. æD BOOLEAN
  14956. æFi UMacApp 
  14957. æT VARIABLE 
  14958. æC TRUE indicates that the TApplication.IApplication method has executed.
  14959.  
  14960.  
  14961.  
  14962.  
  14963. æKY gIntenseDebugging
  14964. æD BOOLEAN
  14965. æFi UMacApp 
  14966. æT VARIABLE 
  14967. æC Switches intensive debugging on or off.
  14968.  
  14969.  
  14970.  
  14971.  
  14972.  
  14973.  
  14974. æKY gIsLoadedSeg
  14975. æD BoolListHandle
  14976. æFi UMemory 
  14977. æT VARIABLE 
  14978. æC Maintains a flag for each segment, indicating whether the segment is loaded, 
  14979. and thus optimizing the global routine UnloadAllSegments.
  14980.  
  14981.  
  14982. æKY gIsResidentSeg
  14983. æD BoolListHandle
  14984. æFi UMemory 
  14985. æT VARIABLE 
  14986. æC  Maintains a flag for each segment, indicating whether the segment is resident 
  14987. and therefore is not to be unloaded (in the segment loader sense).
  14988.  
  14989. æKY gJobPrintHandler
  14990. æD TStdPrintHandler
  14991. æFi UPrinting 
  14992. æT VARIABLE 
  14993. æC The print handler in use for the current print job.
  14994.  
  14995. æKY gLastClickPart
  14996. æD INTEGER
  14997. æFi UMacApp 
  14998. æT VARIABLE 
  14999. æC The last part of the window that the user clicked in. MacApp uses this 
  15000. variable to determine whether a click is to be considered part of a double-click. 
  15001.  
  15002.  
  15003. æKY gLastDeskAcc
  15004. æD LONGINT
  15005. æFi UMacApp 
  15006. æT VARIABLE 
  15007. æC The time of the most recent possible excursion to a Desk Accessory. This 
  15008. variable is used in the UPrinting unit to determine whether the Chooser may have 
  15009. been used.
  15010.  
  15011. æKY gLastMsePt
  15012. æD Point
  15013. æFi UMacApp 
  15014. æT VARIABLE 
  15015. æC The mouse coordinates of the last event passed to TApplication.CountClicks.
  15016.  
  15017. æKY gLastUpTime
  15018. æD LONGINT
  15019. æFi UMacApp 
  15020. æT VARIABLE 
  15021. æC The time of the last mouse-up event passed to TApplication.HandleMouseUp.
  15022.  
  15023. æKY gLongOffset
  15024. æD VPoint
  15025. æFi UMacApp 
  15026. æT VARIABLE 
  15027. æC The origin of a large view (one with vertical or horizontal coordinates greater 
  15028. than the value of kMaxCoord); used to keep these views in synch with QuickDraw’s 
  15029. origin. For more detailed information, see the comment in the source code for 
  15030. TView.Focus.
  15031.  
  15032.  
  15033.  
  15034.  
  15035.  
  15036.  
  15037.  
  15038.  
  15039.  
  15040.  
  15041. æKY gLowSpaceInterval
  15042. æD LONGINT
  15043. æFi UMacApp 
  15044. æT VARIABLE 
  15045. æC If the value of gLowSpaceInterval is greater than or equal to 0, its value is 
  15046. the frequency (in ticks) with which MacApp displays a low-space alert. (Its 
  15047. default value is kLowSpaceInterval.) If the value of gLowSpaceInterval is less 
  15048. than 0, MacApp doesn't display a low-space alert.
  15049.  
  15050.  
  15051.  
  15052.  
  15053.  
  15054.  
  15055.  
  15056.  
  15057.  
  15058.  
  15059. æKY gMacAppAlertFilter
  15060. æD ProcPtr
  15061. æFi UMacApp 
  15062. æT VARIABLE 
  15063. æC A pointer to the default filter procedure; MacApp initializes this variable to 
  15064. NIL.  You can set the value of gMacAppAlertFilter to point to the global function 
  15065. MacAppAlertFilter, which maps keystrokes to the first character of button labels. 
  15066.  
  15067.  
  15068.  
  15069.  
  15070.  
  15071.  
  15072.  
  15073. æKY gMainEventMask
  15074. æD INTEGER
  15075. æFi UMacApp 
  15076. æT VARIABLE 
  15077. æC The event mask used in the application's main event loop. The value of this 
  15078. variable is initialized by InitUMacApp. 
  15079.  
  15080. æKY gMainFileType
  15081. æD OSType 
  15082. æFi UMacApp 
  15083. æT VARIABLE 
  15084. æC The principal file type that can be opened or printed by the application; its 
  15085. value is set in TApplication.IApplication. By default, TApplication.SFGetParms 
  15086. returns this file type in its type list.
  15087.  
  15088. æKY gMastReport
  15089. æD BOOLEAN
  15090. æFi UDebug 
  15091. æT VARIABLE 
  15092. æC TRUE causes the MacApp debugger to report information regarding changes in the 
  15093. number of master pointers. 
  15094.  
  15095.  
  15096. æKY gMATextBoxTE
  15097. æD TEHandle
  15098. æFi UMacAppUtilities 
  15099. æT VARIABLE 
  15100. æC A working TEHandle for use exclusively by the global routine MATextBox.  It 
  15101. prevents the constant allocation and deallocation of a TE handle.
  15102.  
  15103. æKY gMaxLockedRsrc
  15104. æD LONGINT
  15105. æFi UMemory 
  15106. æT VARIABLE 
  15107. æC The maximum amount of memory consumed by locked resources.
  15108.  
  15109.  
  15110. æKY gMaxStackDepth
  15111. æD LONGINT
  15112. æFi UDebug 
  15113. æT VARIABLE 
  15114. æC The maximum stack space used to date in the program. This value is computed at 
  15115. every call to the global routines %_BP, %_EP, and %_EX.
  15116.  
  15117. æKY gMBarDisplayed
  15118. æD INTEGER
  15119. æFi UMacApp 
  15120. æT VARIABLE 
  15121. æC The identifier of the 'MBAR' resource containing the menus that have been read 
  15122. into memory and installed in the menu bar. For more information, see the file 
  15123. “UMacApp.p” for the comment regarding the constant  kMBarDisplayed.
  15124.  
  15125.  
  15126. æKY gMBarHeight
  15127. æD INTEGER
  15128. æFi UMacAppUtilities 
  15129. æT VARIABLE 
  15130. æC The height, in pixels, of the menu bar.
  15131.  
  15132. æKY gMBarHierarchical
  15133. æD INTEGER
  15134. æFi UMacApp 
  15135. æT VARIABLE 
  15136. æC The identifier of the 'MBAR' resource containing menus that pop up when the 
  15137. user chooses a menu item. 
  15138.  
  15139.  
  15140.  
  15141.  
  15142.  
  15143.  
  15144.  
  15145. æKY gMBarNotDisplayed
  15146. æD INTEGER
  15147. æFi UMacApp 
  15148. æT VARIABLE 
  15149. æC The identifier of the 'MBAR' resource containing menus that are read into 
  15150. memory but not installed in the menu bar.
  15151.  
  15152. æKY gMemMgtBreak
  15153. æD BOOLEAN
  15154. æFi UMemory 
  15155. æT VARIABLE 
  15156. æC Set to TRUE to break into debugger rather than simply reporting memory 
  15157. management information. 
  15158.  
  15159.  
  15160. æKY gMenusAreSetup
  15161. æD BOOLEAN
  15162. æFi UMenuSetup 
  15163. æT VARIABLE 
  15164. æC TRUE means that all menu items are enabled or disabled correclty according to 
  15165. the current state of the application.  MacApp sets the value of gMenusAreSetup to 
  15166. FALSE before every event; it is set to TRUE by TApplication.SetupTheMenus, which 
  15167. is called at idleBegin. If your DoIdle method changes the target or makes other 
  15168. changes that would alter the appearance of a menu, you must set gMenusAreSetup to 
  15169. FALSE. 
  15170.  
  15171.  
  15172.  
  15173.  
  15174.  
  15175.  
  15176. æKY gNewScrapStuff
  15177. æD ScrapStuff
  15178. æFi UMacApp 
  15179. æT VARIABLE 
  15180. æC Stores the latest InfoScrap record.This variable is used by methods that 
  15181. compare the contents of gNewScrapStuff and gOldScrapStuff to determine whether the 
  15182. desk scrap has changed.
  15183.  
  15184.  
  15185.  
  15186. æKY gNextSpaceMsg
  15187. æD LONGINT
  15188. æFi UMacApp 
  15189. æT VARIABLE 
  15190. æC The time when the next low-space message is to be displayed.
  15191.  
  15192.  
  15193. æKY gNoChanges
  15194. æD TCommand
  15195. æFi UMacApp 
  15196. æT VARIABLE 
  15197. æC A value to return when the handler does not return a command. This variable is 
  15198. only for compatibility with previous versions of MacApp. In MacApp 2.0 you can 
  15199. simply return NIL instead of using gNoChanges. You should carry out the command in 
  15200. the DoMenuCommand method. 
  15201.  
  15202. æKY gNullPrintHandler
  15203. æD TPrintHandler
  15204. æFi UMacApp 
  15205. æT VARIABLE 
  15206. æC Handles printing-related messages for views that don't print. 
  15207.  
  15208.  
  15209. æKY gNumUntitled
  15210. æD INTEGER
  15211. æFi UMacApp 
  15212. æT VARIABLE 
  15213. æC The number to assign to the next Untitled document when the application 
  15214. provides a template for creating numbered Untitled documents. If you use the 
  15215. string <<<>>> in your window title, MacApp fills in the number of the Untitled 
  15216. document for you.
  15217.  
  15218. æKY gOldChooserFlag
  15219. æD BOOLEAN
  15220. æFi UMacApp 
  15221. æT VARIABLE 
  15222. æC The state of the Chooser alert flag when the application opened; the state is 
  15223. restored when the application terminates.
  15224.  
  15225.  
  15226. æKY gOldScrapStuff
  15227. æD ScrapStuff
  15228. æFi UMacApp 
  15229. æT VARIABLE 
  15230. æC Stores the last ScrapStuff record used in tracking the scrap. Used by methods 
  15231. that compare the contents of gNewScrapStuff and gOldScrapStuff to determine 
  15232. whether the desk scrap has changed.
  15233.  
  15234.  
  15235. æKY gOrthogonal
  15236. æD ARRAY [VHSelect] OF VHSelect
  15237. æFi UMacApp 
  15238. æT VARIABLE 
  15239. æC An orthogonal set of VHSelect values—that is, gOrthogonal [v] = h, and 
  15240. gOrthogonal [h] = v.
  15241.  
  15242. æKY gPageOffset
  15243. æD VPoint 
  15244. æFi UMacApp 
  15245. æT VARIABLE 
  15246. æC The offset of the page being printed, measured from the edge of the view.
  15247.  
  15248. æKY gPostCondition
  15249. æD Boolean
  15250. æFi UMacAppUtilities 
  15251. æT VARIABLE 
  15252. æC Set to TRUE if you want MacApp to do post-condition processing. 
  15253.  
  15254.  
  15255.  
  15256.  
  15257.  
  15258.  
  15259.  
  15260.  
  15261.  
  15262.  
  15263. æKY gPreCondition
  15264. æD Boolean
  15265. æFi UMacAppUtilities 
  15266. æT VARIABLE 
  15267. æC Set to TRUE if you want MacApp to do pre-condition processing. 
  15268.  
  15269.  
  15270.  
  15271.  
  15272.  
  15273. æKY gPrefClipType
  15274. æD ResType
  15275. æFi UMacApp 
  15276. æT VARIABLE 
  15277. æC The resource type of the current Clipboard  contents.
  15278.  
  15279.  
  15280.  
  15281. æKY gPrintHandler
  15282. æD TPrintHandler
  15283. æFi UMacApp 
  15284. æT VARIABLE 
  15285. æC A global print-handler object for use in some standard printing-related 
  15286. activities. This variable is initialized as a reference to gNullPrintHandler, but 
  15287. if you call the global procedure InitPrinting, that procedure installs a 
  15288. nontrivial print handler in gPrintHandler.
  15289.  
  15290. æKY gPrinting
  15291. æD BOOLEAN
  15292. æFi UMacApp 
  15293. æT VARIABLE 
  15294. æC TRUE if the application is currently printing.
  15295.  
  15296.  
  15297. æKY gRedrawMenuBar
  15298. æD BOOLEAN
  15299. æFi UMenuSetup 
  15300. æT VARIABLE 
  15301. æC If the value of gRedrawMenuBar is TRUE, then the Toolbox routine DrawMenuBar is 
  15302. called by TApplication.SetupTheMenus. If you have menus that are not handled by 
  15303. MacApp, your implementations of DoSetupMenus methods can set this variable to 
  15304. TRUE to force the menu bar to be redrawn. 
  15305.  
  15306. æKY gReportEvt
  15307. æD BOOLEAN
  15308. æFi UMacApp 
  15309. æT VARIABLE 
  15310. æC A MacApp debugger switch that enables and disables MacApp’s event-reporting 
  15311. features.
  15312.  
  15313.  
  15314. æKY gReportInfo
  15315. æD Str255 
  15316. æFi UDebug 
  15317. æT VARIABLE 
  15318. æC If gReportInfo and gReportNext not empty strings, the contents of gReportInfo 
  15319. are reported on the next call to the global methods %_BP or %_EP.
  15320.  
  15321.  
  15322. æKY gReportMenuChoices
  15323. æD BOOLEAN
  15324. æFi UMacApp 
  15325. æT VARIABLE 
  15326. æC A MacApp debugger switch that enables and disables MacApp’s command-tracing 
  15327. features.
  15328.  
  15329. æKY gReportNext
  15330. æD BOOLEAN
  15331. æFi UDebug 
  15332. æT VARIABLE 
  15333. æC If the value of gReportNext is TRUE, the debugger reports pending information 
  15334. (such as gReportInfo) on the next call to the global methods %_BP or %_EP.
  15335.  
  15336.  
  15337. æKY gReportTime
  15338. æD BOOLEAN
  15339. æFi UDebug 
  15340. æT VARIABLE 
  15341. æC If the value of gReportTime is TRUE, the debugger reports the tick count when 
  15342. tracing. 
  15343.  
  15344. æKY gRGBBlack
  15345. æD RGBColor
  15346. æFi UMacAppUtilities 
  15347. æT VARIABLE 
  15348. æC The RGB representation for black. 
  15349.  
  15350. æKY gRGBWhite
  15351. æD RGBColor
  15352. æFi UMacAppUtilities 
  15353. æT VARIABLE 
  15354. æC The RGB representation for white. 
  15355.  
  15356. æKY gRsrcCheck
  15357. æD INTEGER
  15358. æFi UMacApp 
  15359. æT VARIABLE 
  15360. æC Switches resource-usage checking on or off; this variable used by the Debugger. 
  15361.  
  15362. æKY gRsrcReport
  15363. æD BOOLEAN
  15364. æFi UMemory 
  15365. æT VARIABLE 
  15366. æC If the value of gRsrcReport is TRUE, the debugger reports the maximum size of 
  15367. currently loaded resources.
  15368.  
  15369. æKY gSaveFocusRec
  15370. æD FocusRec
  15371. æFi UMacApp 
  15372. æT VARIABLE 
  15373. æC A place used for saving the focus to speed up scrolling.
  15374.  
  15375.  
  15376. æKY gSegReport
  15377. æD BOOLEAN
  15378. æFi UMemory 
  15379. æT VARIABLE 
  15380. æC If the value of gSegReport is TRUE, the MacApp debugger reports a routine name 
  15381. each time a segment is loaded. It is usually the routine that caused the segment 
  15382. to be loaded; however, if the routine has no {$D++} program point, another routine 
  15383. name may be displayed.
  15384.  
  15385.  
  15386.  
  15387. æKY gSignatureCount
  15388. æD INTEGER
  15389. æFi UMacApp 
  15390. æT VARIABLE 
  15391. æC The number of standard objects with signatures in the application. This 
  15392. variable is used at initialization time to create a set of standard objects and 
  15393. register them with the application object.
  15394.  
  15395.  
  15396.  
  15397.  
  15398.  
  15399.  
  15400.  
  15401.  
  15402.  
  15403. æKY gSignatureIds
  15404. æD ARRAY [1..kMaxSignatures] OF ObjClassId
  15405. æFi UMacApp 
  15406. æT VARIABLE 
  15407. æC An array of all the class identifiers of standard objects in the application.
  15408.  
  15409.  
  15410. æKY gSignatures
  15411. æD ARRAY [1..kMaxSignatures] OF IDType 
  15412. æFi UMacApp 
  15413. æT VARIABLE 
  15414. æC An array of signatures for standard objects. 
  15415.  
  15416.  
  15417. æKY gSingleStep
  15418. æD BOOLEAN
  15419. æFi UDebug 
  15420. æT VARIABLE 
  15421. æC Set to TRUE if you want MacApp to break into the debugger at the next 
  15422. opportunity.
  15423.  
  15424.  
  15425. æKY gStdHysteresis
  15426. æD Point
  15427. æFi UMacApp 
  15428. æT VARIABLE 
  15429. æC The standard hysteresis value used in TView.HandleMouseDown. 
  15430.  
  15431. æKY gStdPageMargins
  15432. æD Rect
  15433. æFi UPrinting 
  15434. æT VARIABLE 
  15435. æC Standard left, top, right, and bottom page margins, in screen resolution; the 
  15436. default margins are one inch each. 
  15437.  
  15438.  
  15439. æKY gStdStaggerCount
  15440. æD INTEGER
  15441. æFi UMacApp 
  15442. æT VARIABLE 
  15443. æC The number of windows created from templates. This variable is used to compute 
  15444. the offset necessary for staggering windows as they are created.
  15445.  
  15446.  
  15447. æKY gStdWMoveBounds
  15448. æD Rect
  15449. æFi UMacApp 
  15450. æT VARIABLE 
  15451. æC The rectangle that defines the standard boundaries used to constrict the 
  15452. movement of windows on the screen. This value is passed to the Toolbox routine 
  15453. DragWindow.
  15454.  
  15455.  
  15456. æKY gStdWScreenRect
  15457. æD Rect
  15458. æFi UMacApp 
  15459. æT VARIABLE 
  15460. æC The rectangle defining the area in which one corner of a window must be located 
  15461. to remain on the screen. 
  15462.  
  15463.  
  15464. æKY gStdWSizeRect
  15465. æD Rect
  15466. æFi UMacApp 
  15467. æT VARIABLE 
  15468. æC The standard rectangle passed to the Toolbox routine GrowWindow.
  15469.  
  15470.  
  15471.  
  15472. æKY gStrippedAddress
  15473. æD Ptr
  15474. æFi UMacAppUtilities 
  15475. æT VARIABLE 
  15476. æC A pointer to an address already stripped by the Toolbox function StripAddress.
  15477.  
  15478.  
  15479.  
  15480.  
  15481.  
  15482. æKY gSysMemList
  15483. æD HHandleList
  15484. æFi UMemory 
  15485. æT VARIABLE 
  15486. æC The list of system handles used to compute current allocated temporary memory 
  15487. (all 'PACK', 'LDEF', 'MDEF', 'CDEF', and 'WDEF' resources). 
  15488.  
  15489.  
  15490. æKY gSystemStyle
  15491. æD TextStyle
  15492. æFi UMacApp 
  15493. æT VARIABLE 
  15494. æC The system's default text style.
  15495.  
  15496.  
  15497.  
  15498.  
  15499.  
  15500.  
  15501.  
  15502.  
  15503.  
  15504. æKY gSysWindowActive
  15505. æD BOOLEAN
  15506. æFi UMacApp 
  15507. æT VARIABLE 
  15508. æC TRUE indicates that  the front window is a system window.  
  15509.  
  15510.  
  15511. æKY gTarget
  15512. æD TEvtHandler
  15513. æFi UMacApp 
  15514. æT VARIABLE 
  15515. æC The TEvtHandler that gets the first chance at DoCommand, DoSetupMenu, 
  15516. DoKeyCommand, and Idle commands. This value should never be NIL; if you do not 
  15517. want your own target, set the value of gTarget to the application object. 
  15518.  
  15519. æKY gTEDefaultWordBreak
  15520. æD ProcPtr
  15521. æFi UMacAppUtilities 
  15522. æT VARIABLE 
  15523. æC The default word-break routine used by TextEdit.  Note: that this routine 
  15524. (alone) does not take parameters using the Pascal calling conventions as required 
  15525. by the Toolbox routine SetWordBreak and therefore must be set in the TextEdit 
  15526. record by modifying the wordBreak field directly.
  15527.  
  15528.  
  15529. æKY gTempRgn
  15530. æD RgnHandle 
  15531. æFi UMacApp 
  15532. æT VARIABLE 
  15533. æC A temporary region handle created in DoInitUMacApp.When debugging, call the 
  15534. global method UseTempRgn before using gTempRgn. When you finish using gTempRgn, 
  15535. call the global method DoneWithTempRgn. This ensures that two routines do not try 
  15536. to use gTempRgn at the same time.
  15537.  
  15538.  
  15539. æKY gToolBoxInitialized
  15540. æD BOOLEAN
  15541. æFi UMacAppUtilities 
  15542. æT VARIABLE 
  15543. æC TRUE indicates that the Toolbox has been initialized. 
  15544.  
  15545.  
  15546. æKY gTopHandler
  15547. æD FailInfoPtr
  15548. æFi UFailure 
  15549. æT VARIABLE 
  15550. æC The most recent link in the linked list of failure handlers. The value of 
  15551. gTopHandler is initially set to NIL by a constant in the file UFailure.a so that 
  15552. failure handling never needs to be initialized.
  15553.  
  15554.  
  15555.  
  15556.  
  15557.  
  15558.  
  15559.  
  15560.  
  15561.  
  15562. æKY gTraceIdle
  15563. æD BOOLEAN
  15564. æFi UMacApp 
  15565. æT VARIABLE 
  15566. æC A value of TRUE causes the MacApp debugger to include idle handlers in the 
  15567. list of program points displayed in the Debug Transcript window. The default value 
  15568. is FALSE.
  15569.  
  15570.  
  15571. æKY gTraceSetupMenus
  15572. æD BOOLEAN
  15573. æFi UMenuSetup 
  15574. æT VARIABLE 
  15575. æC Set to TRUE if you want the MacApp debugger to include program points from the 
  15576. menu setup cycle in the list displayed in the Debug Transcript window.  The 
  15577. default value is FALSE.
  15578.  
  15579.  
  15580. æKY gTracing
  15581. æD BOOLEAN
  15582. æFi UDebug 
  15583. æT VARIABLE 
  15584. æC Set to TRUE if you want the MacApp debugger to display the identifier for each 
  15585. {$D++} program point executed.
  15586.  
  15587.  
  15588. æKY gUDialogInitialized
  15589. æD BOOLEAN
  15590. æFi UMacAppUtilities 
  15591. æT VARIABLE 
  15592. æC TRUE indicates that the UDialog unit has been initialized. 
  15593.  
  15594.  
  15595.  
  15596.  
  15597.  
  15598.  
  15599. æKY gUGridViewInitialized
  15600. æD BOOLEAN
  15601. æFi UMacAppUtilities 
  15602. æT VARIABLE 
  15603. æC TRUE indicates that the UGridView unit has been initialized. 
  15604.  
  15605.  
  15606. æKY gUndoCmd
  15607. æD CmdNumber
  15608. æFi UMacApp 
  15609. æT VARIABLE 
  15610. æC The global value of the generic Undo command.
  15611.  
  15612. æKY gUndoState
  15613. æD BOOLEAN
  15614. æFi UMacApp 
  15615. æT VARIABLE 
  15616. æC Indicates whether an Undo or a Redo command is ready to be executed. TRUE 
  15617. indicates that the command was done and can be undone, and FALSE indicates that 
  15618. the command was undone and can be redone.
  15619.  
  15620.  
  15621. æKY gUnloadAllSegs
  15622. æD BOOLEAN
  15623. æFi UMemory 
  15624. æT VARIABLE 
  15625. æC TRUE enables the UnloadAllSegments routine. Always set gUnloadAllSegs to TRUE 
  15626. when you are not debugging.
  15627.  
  15628.  
  15629.  
  15630.  
  15631.  
  15632.  
  15633.  
  15634. æKY gUPrintingInitialized
  15635. æD BOOLEAN
  15636. æFi UMacAppUtilities 
  15637. æT VARIABLE 
  15638. æC TRUE indicates that the UPrinting unit has been initialized. 
  15639.  
  15640.  
  15641. æKY gUsedBy
  15642. æD Str255 
  15643. æFi UMacApp 
  15644. æT VARIABLE 
  15645. æC The routine using gTempRgn.
  15646.  
  15647. æKY gUTEViewInitialized
  15648. æD BOOLEAN
  15649. æFi UMacAppUtilities 
  15650. æT VARIABLE 
  15651. æC TRUE indicates that the UTEView unit has been initialized. 
  15652.  
  15653.  
  15654. æKY gVarClipPicSize
  15655. æD BOOLEAN
  15656. æFi UMacApp 
  15657. æT VARIABLE 
  15658. æC TRUE indicates that pictures in the Clipboard are treated as variable size, 
  15659. depending on the window size; the default value of  FALSE causes pictures in the 
  15660. Clipboard to be drawn and pasted at the size defined in the 'PICT' resource.
  15661.  
  15662.  
  15663.  
  15664.  
  15665.  
  15666. æKY gWasTrcEnable
  15667. æD BOOLEAN
  15668. æFi UMacApp 
  15669. æT VARIABLE 
  15670. æC Stores the tracing state across calls to Idle methods while the value of the 
  15671. idle state changes from idleBegin to idleEnd.
  15672.  
  15673.  
  15674.  
  15675.  
  15676.  
  15677. æKY gWorkPort
  15678. æD GrafPtr
  15679. æFi UMacApp 
  15680. æT VARIABLE 
  15681. æC Stores a pointer to a grafPort that is created during MacApp initialization.
  15682.  
  15683.  
  15684. æKY gWResSignature
  15685. æD IDType 
  15686. æFi UMacApp 
  15687. æT VARIABLE 
  15688. æC The four-letter class signature used by TView.WRes.
  15689.  
  15690. æKY gWResType
  15691. æD Str255 
  15692. æFi UMacApp 
  15693. æT VARIABLE 
  15694. æC The string that identifies the class name of the resource being written by 
  15695. TView.WRes.
  15696.  
  15697.  
  15698. æKY gZeroPt
  15699. æD Point
  15700. æFi UMacApp 
  15701. æT VARIABLE 
  15702. æC Contains the point (0,0), in global coordinates, for programming convenience.
  15703.  
  15704.  
  15705.  
  15706.  
  15707.  
  15708.  
  15709.  
  15710.  
  15711. æKY gZeroRect
  15712. æD Rect
  15713. æFi UMacApp 
  15714. æT VARIABLE 
  15715. æC Contains the rectangle (0,0,0,0), in global coordinates, for programming 
  15716. convenience.
  15717.  
  15718.  
  15719.  
  15720.  
  15721. æKY gZeroVPt
  15722. æD VPoint 
  15723. æFi UMacApp 
  15724. æT VARIABLE 
  15725. æC Contains the point (0,0), in view coordinates, for programming convenience.
  15726.  
  15727.  
  15728.  
  15729.  
  15730. æKY gZeroVRect
  15731. æD VRect
  15732. æFi UMacApp 
  15733. æT VARIABLE 
  15734. æC Contains the rectangle (0,0,0,0), in view coordinates, for programming 
  15735. convenience.
  15736.  
  15737.  
  15738. æKY pCodeReserve
  15739. æD Handle
  15740. æFi UMemory 
  15741. æT VARIABLE 
  15742. æC The handle to the temporary reserve.
  15743.  
  15744. æKY pCopyright
  15745. æD StringHandle
  15746. æFi UMacApp 
  15747. æT VARIABLE 
  15748. æC A handle to the string containing the text of the copyright notice for MacApp.
  15749.  
  15750. æKY pCurrTEView
  15751. æD TTEView
  15752. æFi UTEView 
  15753. æT VARIABLE 
  15754. æC The currently active TTEView object. This variable is reserved for use by the 
  15755. global function ClickLoopForTTEView.
  15756.  
  15757.  
  15758. æKY pCursorInfo
  15759. æD BOOLEAN
  15760. æFi UBusyCursor 
  15761. æT VARIABLE 
  15762. æC Set to TRUE when you want to track the cursor regardless of whether it strays 
  15763. outside gCursorRgn. 
  15764.  
  15765.  
  15766.  
  15767.  
  15768.  
  15769.  
  15770.  
  15771. æKY pDebugView
  15772. æD TTranscriptView
  15773. æFi UDebug 
  15774. æT VARIABLE 
  15775. æC The subview of pDebugWindow in which the Debug Transcript is drawn
  15776.  
  15777.  
  15778. æKY pDebugWindow
  15779. æD TWindow
  15780. æFi UDebug 
  15781. æT VARIABLE 
  15782. æC The TWindow object containing the subview that displays the debug transcript
  15783.  
  15784. æKY pDifference
  15785. æD RgnHandle
  15786. æFi UGridView 
  15787. æT VARIABLE 
  15788. æC The handle to a region that is the difference between a new selection and the 
  15789. previous one. This variable is used by TGridView.SetSelection. 
  15790.  
  15791.  
  15792. æKY pETSPatch
  15793. æD TrapPatch
  15794. æFi UMacApp 
  15795. æT VARIABLE 
  15796. æC The patch for the Toolbox trap ExitToShell.
  15797.  
  15798.  
  15799. æKY pFi
  15800. æD FailInfo
  15801. æFi UMacApp 
  15802. æT VARIABLE 
  15803. æC The outermost failure handler.
  15804.  
  15805. æKY pInvalidateRgn
  15806. æD RgnHandle
  15807. æFi UGridView 
  15808. æT VARIABLE 
  15809. æC The region to be invalidated by the method  TGridView.InvalidateSelection. 
  15810.  
  15811.  
  15812. æKY pLoadSegCalledFromOwnApp
  15813. æD BOOLEAN
  15814. æFi UMemory 
  15815. æT VARIABLE 
  15816. æC This variable is not yet documented; it is used internally by MacApp. You 
  15817. never need to use it yourself.
  15818.  
  15819. æKY pMaxSegNum
  15820. æD INTEGER
  15821. æFi UMemory 
  15822. æT VARIABLE 
  15823. æC The maximum segment number.
  15824.  
  15825. æKY pMemReserve
  15826. æD Handle
  15827. æFi UMemory 
  15828. æT VARIABLE 
  15829. æC The handle to the low-memory reserve.
  15830.  
  15831.  
  15832. æKY pNoOfSegments
  15833. æD INTEGER
  15834. æFi UMemory 
  15835. æT VARIABLE 
  15836. æC The number of code segments.
  15837.  
  15838. æKY pOKCodeReserve
  15839. æD BOOLEAN
  15840. æFi UMemory 
  15841. æT VARIABLE 
  15842. æC TRUE indicates that the application has an adequate code reserve. FALSE 
  15843. indicates that the application may crash if memory space is low.
  15844.  
  15845. æKY pOldResFile
  15846. æD INTEGER
  15847. æFi UMemory 
  15848. æT VARIABLE 
  15849. æC A reference to the old resource file; this reference is saved across segment 
  15850. loads.
  15851.  
  15852.  
  15853.  
  15854.  
  15855. æKY pPatchList
  15856. æD Ptr
  15857. æFi UPatch 
  15858. æT VARIABLE 
  15859. æC The address of the linked list of patches.
  15860.  
  15861. æKY pPermAllocation
  15862. æD BOOLEAN
  15863. æFi UMemory 
  15864. æT VARIABLE 
  15865. æC TRUE indicates that the handle must not be purged from memory.
  15866.  
  15867. æKY pPixelsToHighlight
  15868. æD RgnHandle
  15869. æFi UGridView 
  15870. æT VARIABLE 
  15871. æC The region to be highlighted by TGridView.HighlightCells. 
  15872.  
  15873.  
  15874. æKY pPreviousSelection
  15875. æD RgnHandle
  15876. æFi UGridView 
  15877. æT VARIABLE 
  15878. æC The region selected prior to the current selection; used by 
  15879. TGridView.SetSelection. 
  15880.  
  15881. æKY pReserveExists
  15882. æD BOOLEAN
  15883. æFi UMemory 
  15884. æT VARIABLE 
  15885. æC TRUE indicates that the full-size code reserve is allocated.
  15886.  
  15887.  
  15888.  
  15889.  
  15890.  
  15891.  
  15892.  
  15893.  
  15894.  
  15895.  
  15896. æKY pReserveShortfall
  15897. æD LONGINT
  15898. æFi UMemory 
  15899. æT VARIABLE 
  15900. æC The amount by which the code reserve allocation falls short of the amount 
  15901. requested.
  15902.  
  15903. æKY pSegLoadPatch
  15904. æD TrapPatch
  15905. æFi UMemory 
  15906. æT VARIABLE 
  15907. æC The patch for the Toolbox trap LoadSeg.
  15908.  
  15909. æKY pSegNeedsUnloading
  15910. æD BoolArrayHandle
  15911. æFi UMemory 
  15912. æT VARIABLE 
  15913. æC The handle to an array of Boolean values in which a flag for each segment 
  15914. indicates whether the segment needs to be unloaded. This variable is used to 
  15915. optimize the global routine UnloadAllSegments.
  15916.  
  15917.  
  15918. æKY pSzCodeReserve
  15919. æD Size
  15920. æFi UMemory 
  15921. æT VARIABLE 
  15922. æC The amount of memory MacApp attempts to reserve for the temporary code reserve 
  15923. pCodeReserve.
  15924.  
  15925.  
  15926.  
  15927.  
  15928.  
  15929.  
  15930.  
  15931.  
  15932. æKY pSzMemReserve
  15933. æD Size
  15934. æFi UMemory 
  15935. æT VARIABLE 
  15936. æC The amount of memory MacApp attempts to reserve for the low-memory code 
  15937. reserve pMemReserve.
  15938.  
  15939.  
  15940.  
  15941.  
  15942.  
  15943. æKY pTEIntenseDebugging
  15944. æD BOOLEAN
  15945. æFi UTEView 
  15946. æT VARIABLE 
  15947. æC Set to TRUE if you want the MacApp debugger to display information about 
  15948. TTECommand objects and TERecords.
  15949.  
  15950. æKY pVisibleCells
  15951. æD RgnHandle
  15952. æFi UGridView 
  15953. æT VARIABLE 
  15954. æC The region containing the cells that are currently visible. This variable is 
  15955. used by TGridView.CellsToPixels.
  15956.  
  15957.  
  15958.  
  15959. æKY qDebug
  15960. æD FALSE
  15961. æFi UMacAppUtilities 
  15962. æT VARIABLE 
  15963. æC TRUE indicates that the application uses debugging code.
  15964.  
  15965.  
  15966.  
  15967.  
  15968.  
  15969.  
  15970. æKY qDebugTheDebugger
  15971. æD FALSE
  15972. æFi UMacAppUtilities 
  15973. æT VARIABLE 
  15974. æC TRUE indicates that the MacApp debugger is being debugged.
  15975.  
  15976.  
  15977. æKY qExperimentalAndUnsupported
  15978. æD FALSE
  15979. æFi UMacAppUtilities 
  15980. æT VARIABLE 
  15981. æC TRUE indicates that the user wants toexperiment the new, UNSUPPORTED features 
  15982. that the MacApp team is working with.
  15983. The qExperimentalAndUnsupported flag is used to condition features that are 
  15984. experimental and unsupported.  Features enabled with this flag may or may not be 
  15985. included in future versions of MacApp and are here for informational purposes 
  15986. only.
  15987.  
  15988.  
  15989.  
  15990.  
  15991.  
  15992.  
  15993. æKY qInspector
  15994. æD FALSE
  15995. æFi UMacAppUtilities 
  15996. æT VARIABLE 
  15997. æC TRUE indicates that the MacApp Inspector is used in the application.
  15998.  
  15999. æKY qMacApp
  16000. æD TRUE
  16001. æFi UMacAppUtilities 
  16002. æT VARIABLE 
  16003. æC TRUE indicates that the MacApp libraries are included in the application.
  16004.  
  16005.  
  16006. æKY qNames
  16007. æD FALSE
  16008. æFi UMacAppUtilities 
  16009. æT VARIABLE 
  16010. æC TRUE indicates that procedure and function names are to be embedded in compiled 
  16011. code for use in debugging.
  16012.  
  16013.  
  16014. æKY qNeedsColorQD
  16015. æD FALSE
  16016. æFi UMacAppUtilities 
  16017. æT VARIABLE 
  16018. æC TRUE indicates that the application requires Color QuickDraw.
  16019.  
  16020. æKY qNeedsFPU
  16021. æD FALSE
  16022. æFi UMacAppUtilities 
  16023. æT VARIABLE 
  16024. æC TRUE indicates that the application requires a floating-point coprocessor.
  16025.  
  16026. æKY qNeedsHierarchicalMenus
  16027. æD TRUE
  16028. æFi UMacAppUtilities 
  16029. æT VARIABLE 
  16030. æC TRUE indicates that the application requires hierarchical menu support from the 
  16031. Macintosh® Toolbox.
  16032.  
  16033.  
  16034. æKY qNeedsMC68020
  16035. æD FALSE
  16036. æFi UMacAppUtilities 
  16037. æT VARIABLE 
  16038. æC TRUE indicates that the application requires the Motorola MC68020 
  16039. microprocessor.
  16040.  
  16041. æKY qNeedsMC68030
  16042. æD FALSE
  16043. æFi UMacAppUtilities 
  16044. æT VARIABLE 
  16045. æC TRUE indicates that the application requires the Motorola MC68030 
  16046. microprocessor.
  16047.  
  16048. æKY qNeedsROM128K
  16049. æD TRUE
  16050. æFi UMacAppUtilities 
  16051. æT VARIABLE 
  16052. æC Set to TRUE if the application requires a Macintosh computer that uses a 128K 
  16053. ROM (version $75) or a newer ROM.  (The 128K ROM is used in the Macintosh 512K 
  16054. enhanced computer and later Macintosh models.)
  16055.  
  16056.  
  16057.  
  16058.  
  16059.  
  16060. æKY qNeedsScriptManager
  16061. æD TRUE
  16062. æFi UMacAppUtilities 
  16063. æT VARIABLE 
  16064. æC TRUE indicates that the application requires the Script Manager.
  16065.  
  16066. æKY qNeedsStyleTextEdit
  16067. æD TRUE
  16068. æFi UMacAppUtilities 
  16069. æT VARIABLE 
  16070. æC TRUE indicates that the application requires styled TextEdit.
  16071.  
  16072. æKY qNeedsWaitNextEvent
  16073. æD TRUE
  16074. æFi UMacAppUtilities 
  16075. æT VARIABLE 
  16076. æC TRUE indicates that the application requires the use of the Toolbox routine 
  16077. WaitNextEvent.
  16078.  
  16079. æKY qPerform
  16080. æD FALSE
  16081. æFi UMacAppUtilities 
  16082. æT VARIABLE 
  16083. æC TRUE indicates that the application uses the performance-monitoring features in 
  16084. MacApp.
  16085.  
  16086. æKY qRangeCheck
  16087. æD FALSE
  16088. æFi UMacAppUtilities 
  16089. æT VARIABLE 
  16090. æC TRUE indicates that the application requires range checking on array bounds.
  16091.  
  16092.  
  16093. æKY qTemplateViews
  16094. æD TRUE
  16095. æFi UMacAppUtilities 
  16096. æT VARIABLE 
  16097. æC TRUE indicates that the application uses templates for constructing views.
  16098.  
  16099. æKY qTrace
  16100. æD FALSE
  16101. æFi UMacAppUtilities 
  16102. æT VARIABLE 
  16103. æC TRUE indicates that the application uses the MacApp debugger’s tracing 
  16104. functions.
  16105.  
  16106. æKY Methods
  16107. æKL
  16108. TAboutAppCommand.DoIt
  16109. TAboutAppCommand.Fields
  16110. TAboutAppCommand.IAboutAppCommand
  16111. TApplication.AbandonUndoClipboard
  16112. TApplication.AboutToLoseControl
  16113. TApplication.AbsorbScrapStuff
  16114. TApplication.ActivateBusyCursor
  16115. TApplication.AddDocument
  16116. TApplication.AddFreeWindow
  16117. TApplication.AlreadyOpen
  16118. TApplication.Beep
  16119. TApplication.CanOpenDocument
  16120. TApplication.CheckDeskScrap
  16121. TApplication.ChooseDocument
  16122. TApplication.ClaimClipboard
  16123. TApplication.Close
  16124. TApplication.CloseWmgrWindow
  16125. TApplication.CommitLastCommand
  16126. TApplication.CountClicks
  16127. TApplication.DeleteDocument
  16128. TApplication.DeleteFreeWindow
  16129. TApplication.DispatchEvent
  16130. TApplication.DoCommandKey
  16131. TApplication.DoKeyCommand
  16132. TApplication.DoMakeDocument
  16133. TApplication.DoMenuCommand
  16134. TApplication.DoSetupMenus
  16135. TApplication.DoShowAboutApp
  16136. TApplication.EachFreeWindow
  16137. TApplication.Fields
  16138. TApplication.ForAllDocumentsDo
  16139. TApplication.ForAllWindowsDo
  16140. TApplication.GetActiveWindow
  16141. TApplication.GetDataToPaste
  16142. TApplication.GetEvent
  16143. TApplication.GetFrontWindow
  16144. TApplication.GetInspectorName
  16145. TApplication.GetLastCommand
  16146. TApplication.GetNextCommand
  16147. TApplication.GetRsrcWindow
  16148. TApplication.HandleActivateEvent
  16149. TApplication.HandleAlienEvent
  16150. TApplication.HandleDiskEvent
  16151. TApplication.HandleEvent
  16152. TApplication.HandleFinderRequest
  16153. TApplication.HandleKeyDownEvent
  16154. TApplication.HandleMouseDown
  16155. TApplication.HandleMouseUp
  16156. TApplication.HandleSystemEvent
  16157. TApplication.HandleUpdateEvent
  16158. TApplication.IApplication
  16159. TApplication.IdentifySoftware
  16160. TApplication.Idle
  16161. TApplication.InModalMenuState
  16162. TApplication.InModalState
  16163. TApplication.InstallCohandler
  16164. TApplication.InvalidateCursorRgn
  16165. TApplication.InvalidateFocus
  16166. TApplication.IsDeskAccessory
  16167. TApplication.KeyEventToComponents
  16168. TApplication.KindOfDocument
  16169. TApplication.LaunchClipboard
  16170. TApplication.MainEventLoop
  16171. TApplication.MakeClipboardWindow
  16172. TApplication.MakeViewForAlienClipboard
  16173. TApplication.MenuEvent
  16174. TApplication.OpenDeskAccessory
  16175. TApplication.OpenNew
  16176. TApplication.OpenOld
  16177. TApplication.PerformCommand
  16178. TApplication.PollEvent
  16179. TApplication.PostCommand
  16180. TApplication.PostHandleEvent
  16181. TApplication.PrintDocument
  16182. TApplication.ReadFromDeskScrap
  16183. TApplication.RegainControl
  16184. TApplication.ReportEvent
  16185. TApplication.Run
  16186. TApplication.SelectWMgrWindow
  16187. TApplication.SetClipView
  16188. TApplication.SetTarget
  16189. TApplication.SetUndoText
  16190. TApplication.SetupTheMenus
  16191. TApplication.SFGetParms
  16192. TApplication.ShowError
  16193. TApplication.SpaceIsLow
  16194. TApplication.SwapClipViews
  16195. TApplication.TrackCursor
  16196. TApplication.TrackMouse
  16197. TApplication.UpdateAllWindows
  16198. TApplication.WMgrToWindow
  16199. TAssociation.EachEntryDo
  16200. TAssociation.EntryWithKey
  16201. TAssociation.EntryWithValue
  16202. TAssociation.Fields
  16203. TAssociation.FirstEntryThat
  16204. TAssociation.Free
  16205. TAssociation.IAssociation
  16206. TAssociation.InsertEntry
  16207. TAssociation.KeyAt
  16208. TAssociation.RemoveKeyAt
  16209. TAssociation.RemoveValueAt
  16210. TAssociation.ValueAt
  16211. TButton.Fields
  16212. TButton.IButton
  16213. TButton.IRes
  16214. TButton.WRes
  16215. TButton.WriteRes
  16216. TCellSelectCommand.ComputeAnchorCell
  16217. TCellSelectCommand.ComputeNewSelection
  16218. TCellSelectCommand.DoIt
  16219. TCellSelectCommand.Fields
  16220. TCellSelectCommand.Free
  16221. TCellSelectCommand.HighlightNewSelection
  16222. TCellSelectCommand.ICellSelectCommand
  16223. TCellSelectCommand.TrackFeedback
  16224. TCellSelectCommand.TrackMouse
  16225. TCheckBox.DoChoice
  16226. TCheckBox.Fields
  16227. TCheckBox.ICheckBox
  16228. TCheckBox.IRes
  16229. TCheckBox.IsOn
  16230. TCheckBox.SetState
  16231. TCheckBox.Toggle
  16232. TCheckBox.ToggleIf
  16233. TCheckBox.WRes
  16234. TCheckBox.WriteRes
  16235. TClassesByID.Compare
  16236. TClassesByID.Fields
  16237. TClassesByID.IClassesByID
  16238. TClassesByName.Compare
  16239. TClassesByName.Fields
  16240. TClassesByName.IClassesByName
  16241. TClassListView.DrawItem
  16242. TClassListView.Fields
  16243. TClassListView.IClassListView
  16244. TClassListView.IRes
  16245. TClassListView.SelectItem
  16246. TCloseWindowCommand.DoIt
  16247. TCloseWindowCommand.Fields
  16248. TCloseWindowCommand.ICloseWindowCommand
  16249. TCluster.DoChoice
  16250. TCluster.Draw
  16251. TCluster.Fields
  16252. TCluster.Free
  16253. TCluster.GetLabel
  16254. TCluster.ICluster
  16255. TCluster.IRes
  16256. TCluster.ReleaseLabel
  16257. TCluster.ReportCurrent
  16258. TCluster.SetLabel
  16259. TCluster.WRes
  16260. TCluster.WriteRes
  16261. TColumnSelectCommand.ComputeAnchorCell
  16262. TColumnSelectCommand.ComputeNewSelection
  16263. TColumnSelectCommand.Fields
  16264. TColumnSelectCommand.IColumnSelectCommand
  16265. TCommand.AutoScroll
  16266. TCommand.Commit
  16267. TCommand.DoIt
  16268. TCommand.Fields
  16269. TCommand.ICommand
  16270. TCommand.IsDoneTracking
  16271. TCommand.IsReadyToExecute
  16272. TCommand.RedoIt
  16273. TCommand.TrackConstrain
  16274. TCommand.TrackFeedback
  16275. TCommand.TrackMouse
  16276. TCommand.UndoIt
  16277. TCommandList.Compare
  16278. TCommandList.Fields
  16279. TCommandList.ICommandList
  16280. TCommandList.Insert
  16281. TControl.ComputeSize
  16282. TControl.ContainsMouse
  16283. TControl.ControlArea
  16284. TControl.Dim
  16285. TControl.DimState
  16286. TControl.DoMouseCommand
  16287. TControl.Draw
  16288. TControl.Fields
  16289. TControl.Flash
  16290. TControl.Focus
  16291. TControl.Hilite
  16292. TControl.HiliteState
  16293. TControl.IControl
  16294. TControl.Inset
  16295. TControl.InstallColor
  16296. TControl.InstallTextStyle
  16297. TControl.IRes
  16298. TControl.IsDimmed
  16299. TControl.Resize
  16300. TControl.SetInset
  16301. TControl.TrackFeedback
  16302. TControl.TrackMouse
  16303. TControl.Validate
  16304. TControl.WRes
  16305. TControl.WriteRes
  16306. TControlTracker.Fields
  16307. TControlTracker.IControlTracker
  16308. TCtlMgr.BeInPort
  16309. TCtlMgr.CreateCMgrControl
  16310. TCtlMgr.DimState
  16311. TCtlMgr.DoMouseCommand
  16312. TCtlMgr.Draw
  16313. TCtlMgr.Fields
  16314. TCtlMgr.Free
  16315. TCtlMgr.GetLongMax
  16316. TCtlMgr.GetLongMin
  16317. TCtlMgr.GetLongVal
  16318. TCtlMgr.GetMax
  16319. TCtlMgr.GetMin
  16320. TCtlMgr.GetText
  16321. TCtlMgr.GetVal
  16322. TCtlMgr.HiliteState
  16323. TCtlMgr.ICtlMgr
  16324. TCtlMgr.IRes
  16325. TCtlMgr.IsCMgrVisible
  16326. TCtlMgr.Resize
  16327. TCtlMgr.SetCMgrVisibility
  16328. TCtlMgr.SetLongMax
  16329. TCtlMgr.SetLongMin
  16330. TCtlMgr.SetLongVal
  16331. TCtlMgr.SetLongValues
  16332. TCtlMgr.SetMax
  16333. TCtlMgr.SetMin
  16334. TCtlMgr.SetText
  16335. TCtlMgr.SetVal
  16336. TCtlMgr.SetValues
  16337. TCtlMgr.WhileFocused
  16338. TCtlMgr.WriteRes
  16339. TDebugApplication.DoMenuCommand
  16340. TDebugApplication.HandleAlienEvent
  16341. TDebugApplication.HandleEvent
  16342. TDebugApplication.HandleKeyDownEvent
  16343. TDebugApplication.HandleMouseDown
  16344. TDebugApplication.HandleSystemEvent
  16345. TDebugApplication.HandleUpdateEvent
  16346. TDebugApplication.IDebugApplication
  16347. TDebugApplication.MenuEvent
  16348. TDebugApplication.PollEvent
  16349. TDebugApplication.PostHandleEvent
  16350. TDebugApplication.WMgrToWindow
  16351. TDebugCommand.DoIt
  16352. TDebugCommand.Fields
  16353. TDebugCommand.IDebugCommand
  16354. TDeskScrapView.CalcMinSize
  16355. TDeskScrapView.CheckScrapContents
  16356. TDeskScrapView.Draw
  16357. TDeskScrapView.Fields
  16358. TDeskScrapView.Free
  16359. TDeskScrapView.GetInspectorName
  16360. TDeskScrapView.IDeskScrapView
  16361. TDeskScrapView.IRes
  16362. TDeskScrapView.SuperViewChangedSize
  16363. TDeskScrapView.WriteToDeskScrap
  16364. TDialogTEView.ComputeSize
  16365. TDialogTEView.Fields
  16366. TDialogTEView.Free
  16367. TDialogTEView.IDialogTEView
  16368. TDialogTEView.InstallEditText
  16369. TDialogTEView.InstallSelection
  16370. TDialogTEView.IRes
  16371. TDialogView.CanDismiss
  16372. TDialogView.CantDeselect
  16373. TDialogView.Close
  16374. TDialogView.DeselectCurrentEditText
  16375. TDialogView.DismissDialog
  16376. TDialogView.DoChoice
  16377. TDialogView.DoCommandKey
  16378. TDialogView.DoKeyCommand
  16379. TDialogView.DoOpen
  16380. TDialogView.DoSelectEditText
  16381. TDialogView.EachEditText
  16382. TDialogView.Fields
  16383. TDialogView.Free
  16384. TDialogView.GetDialogView
  16385. TDialogView.IDialogView
  16386. TDialogView.IRes
  16387. TDialogView.MakeTEView
  16388. TDialogView.Open
  16389. TDialogView.ParamTxt
  16390. TDialogView.PoseModally
  16391. TDialogView.ReplaceText
  16392. TDialogView.SelectEditText
  16393. TDialogView.SurveyEditText
  16394. TDialogView.Tab
  16395. TDialogView.WRes
  16396. TDialogView.WriteRes
  16397. TDocument.Abandon
  16398. TDocument.AboutToSave
  16399. TDocument.AddView
  16400. TDocument.AddWindow
  16401. TDocument.CheckDiskFile
  16402. TDocument.Close
  16403. TDocument.CloseView
  16404. TDocument.DeleteView
  16405. TDocument.DeleteWindow
  16406. TDocument.DiskFileChanged
  16407. TDocument.DoInitialState
  16408. TDocument.DoMakeViews
  16409. TDocument.DoMakeWindows
  16410. TDocument.DoMenuCommand
  16411. TDocument.DoNeedDiskSpace
  16412. TDocument.DoRead
  16413. TDocument.DoSetupMenus
  16414. TDocument.DoWrite
  16415. TDocument.Fields
  16416. TDocument.ForAllViewsDo
  16417. TDocument.ForAllWindowsDo
  16418. TDocument.Free
  16419. TDocument.FreeData
  16420. TDocument.FreeFile
  16421. TDocument.FreeFromClipboard
  16422. TDocument.GetChangeCount
  16423. TDocument.GetInspectorName
  16424. TDocument.GetSaveInfo
  16425. TDocument.GetTempName
  16426. TDocument.HandlesPrintingCommands
  16427. TDocument.IDocument
  16428. TDocument.MakeNewCopy
  16429. TDocument.OpenAFile
  16430. TDocument.OpenAgain
  16431. TDocument.PoseSaveDialog
  16432. TDocument.ReadFromFile
  16433. TDocument.RequestFileName
  16434. TDocument.Revert
  16435. TDocument.Save
  16436. TDocument.SaveAgain
  16437. TDocument.SavedOn
  16438. TDocument.SaveInPlace
  16439. TDocument.SaveViaTemp
  16440. TDocument.SetChangeCount
  16441. TDocument.SetTitle
  16442. TDocument.SFPutParms
  16443. TDocument.ShowReverted
  16444. TDocument.ShowWindows
  16445. TDocument.UntitledName
  16446. TDynamicArray.ComputeAddress
  16447. TDynamicArray.DeleteElementsAt
  16448. TDynamicArray.DynamicFields
  16449. TDynamicArray.EachElementDoTil
  16450. TDynamicArray.Fields
  16451. TDynamicArray.Free
  16452. TDynamicArray.GetElementsAt
  16453. TDynamicArray.GetSize
  16454. TDynamicArray.IDynamicArray
  16455. TDynamicArray.InsertElementsBefore
  16456. TDynamicArray.IsEmpty
  16457. TDynamicArray.Merge
  16458. TDynamicArray.ReplaceElementsAt
  16459. TDynamicArray.SetArraySize
  16460. TEditText.ChangeWrap
  16461. TEditText.DoSubstitution
  16462. TEditText.Draw
  16463. TEditText.Fields
  16464. TEditText.Free
  16465. TEditText.GetText
  16466. TEditText.HandleMouseDown
  16467. TEditText.IEditText
  16468. TEditText.ImageText
  16469. TEditText.InstallSelection
  16470. TEditText.IRes
  16471. TEditText.RestartEdit
  16472. TEditText.SetJustification
  16473. TEditText.SetSelection
  16474. TEditText.SetText
  16475. TEditText.StartEdit
  16476. TEditText.StopEdit
  16477. TEditText.Validate
  16478. TEditText.WRes
  16479. TEditText.WriteRes
  16480. TEntriesList.Compare
  16481. TEntriesList.Fields
  16482. TEntriesList.IEntriesList
  16483. TEntry.Fields
  16484. TEntry.Free
  16485. TEntry.IEntry
  16486. TEntry.SetValue
  16487. TEvtHandler.AddHandler
  16488. TEvtHandler.CommitLastCommand
  16489. TEvtHandler.CreateAView
  16490. TEvtHandler.DoChoice
  16491. TEvtHandler.DoCommandKey
  16492. TEvtHandler.DoCreateViews
  16493. TEvtHandler.DoHandleEvent
  16494. TEvtHandler.DoHelp
  16495. TEvtHandler.DoIdle
  16496. TEvtHandler.DoKeyCommand
  16497. TEvtHandler.DoMenuCommand
  16498. TEvtHandler.DoMultiClick
  16499. TEvtHandler.DoSetupMenus
  16500. TEvtHandler.EachHandler
  16501. TEvtHandler.Fields
  16502. TEvtHandler.FirstHandlerThat
  16503. TEvtHandler.Free
  16504. TEvtHandler.GetLastCommand
  16505. TEvtHandler.GetNextCommand
  16506. TEvtHandler.HandlesPrintingCommands
  16507. TEvtHandler.IdentifySoftware
  16508. TEvtHandler.IEvtHandler
  16509. TEvtHandler.InstallSelection
  16510. TEvtHandler.KeyEventToComponents
  16511. TEvtHandler.LookupSymbol
  16512. TEvtHandler.PerformCommand
  16513. TEvtHandler.PostCommand
  16514. TEvtHandler.RemoveHandler
  16515. TEvtHandler.SetIdleFreq
  16516. TEvtHandler.Terminate
  16517. TGridView.AdornCol
  16518. TGridView.AdornRow
  16519. TGridView.AllCellsDo
  16520. TGridView.CalcMinSize
  16521. TGridView.CanSelectCell
  16522. TGridView.CellsToPixels
  16523. TGridView.CellToVRect
  16524. TGridView.ColToVRect
  16525. TGridView.DelColAt
  16526. TGridView.DelColFirst
  16527. TGridView.DelColLast
  16528. TGridView.DelRowAt
  16529. TGridView.DelRowFirst
  16530. TGridView.DelRowLast
  16531. TGridView.DoHighlightSelection
  16532. TGridView.DoMouseCommand
  16533. TGridView.Draw
  16534. TGridView.DrawCell
  16535. TGridView.DrawRangeOfCells
  16536. TGridView.EachCellDo
  16537. TGridView.EachInRgn
  16538. TGridView.EachSelectedCellDo
  16539. TGridView.Fields
  16540. TGridView.FirstSelectedCell
  16541. TGridView.Free
  16542. TGridView.GetColWidth
  16543. TGridView.GetRowHeight
  16544. TGridView.HighlightCells
  16545. TGridView.IdentifyPoint
  16546. TGridView.IGridView
  16547. TGridView.InsColBefore
  16548. TGridView.InsColFirst
  16549. TGridView.InsColLast
  16550. TGridView.InsRowBefore
  16551. TGridView.InsRowFirst
  16552. TGridView.InsRowLast
  16553. TGridView.InvalidateCell
  16554. TGridView.InvalidateSelection
  16555. TGridView.IRes
  16556. TGridView.IsCellSelected
  16557. TGridView.LastSelectedCell
  16558. TGridView.RowToVRect
  16559. TGridView.ScrollSelectionIntoView
  16560. TGridView.SelectCell
  16561. TGridView.SetColWidth
  16562. TGridView.SetEmptySelection
  16563. TGridView.SetRowHeight
  16564. TGridView.SetSelection
  16565. TGridView.SetSelectionRect
  16566. TGridView.SetSingleSelection
  16567. TGridView.VPointToCell
  16568. TGridView.VPointToLastCell
  16569. TGridView.WRes
  16570. TGridView.WriteRes
  16571. TIcon.Draw
  16572. TIcon.Fields
  16573. TIcon.Free
  16574. TIcon.IIcon
  16575. TIcon.IRes
  16576. TIcon.ReleaseIcon
  16577. TIcon.SetIcon
  16578. TIcon.WRes
  16579. TIcon.WriteRes
  16580. TInspector.AddObject
  16581. TInspector.AddObjectList
  16582. TInspector.DoSetupMenus
  16583. TInspector.Fields
  16584. TInspector.Free
  16585. TInspector.GetObjectList
  16586. TInspector.IInspector
  16587. TInspector.MakeWindow
  16588. TInspector.RemoveObject
  16589. TInspectorCommand.DoIt
  16590. TInspectorCommand.Fields
  16591. TInspectorCommand.IInspectorCommand
  16592. TInspectWindow.CloseByUser
  16593. TInspectWindow.Draw
  16594. TInspectWindow.Fields
  16595. TInspectWindow.IInspectWindow
  16596. TInspectWindow.InsertClass
  16597. TInspectWindow.IRes
  16598. TInspectWindow.Resize
  16599. TInspectWindow.SelectObject
  16600. TInspectWindow.SetNumberOfClasses
  16601. TInspectWindow.SetTitleForDoc
  16602. TList.At
  16603. TList.AtDelete
  16604. TList.AtPut
  16605. TList.Delete
  16606. TList.DeleteAll
  16607. TList.DynamicFields
  16608. TList.Each
  16609. TList.Fields
  16610. TList.First
  16611. TList.FirstThat
  16612. TList.FreeAll
  16613. TList.FreeList
  16614. TList.GetEqualItemNo
  16615. TList.GetInspectorName
  16616. TList.GetSameItemNo
  16617. TList.IList
  16618. TList.Insert
  16619. TList.InsertBefore
  16620. TList.InsertFirst
  16621. TList.InsertLast
  16622. TList.IterateTil
  16623. TList.Last
  16624. TList.LastThat
  16625. TList.Pop
  16626. TList.Push
  16627. TList.SetEltType
  16628. TList.SetEltTypeID
  16629. TList.SortBy
  16630. TListView.CalcMinSize
  16631. TListView.ChangeSelection
  16632. TListView.DeleteItem
  16633. TListView.DoHighlightSelection
  16634. TListView.DoMouseCommand
  16635. TListView.Draw
  16636. TListView.DrawItem
  16637. TListView.Fields
  16638. TListView.IListView
  16639. TListView.InsertItem
  16640. TListView.IRes
  16641. TListView.ItemToVRect
  16642. TListView.RevealItem
  16643. TListView.SelectItem
  16644. TListView.SetNumberOfItems
  16645. TListView.SetPen
  16646. TListView.SetStyle
  16647. TListView.VPointToItem
  16648. TNewDocCommand.DoIt
  16649. TNewDocCommand.Fields
  16650. TNewDocCommand.INewDocCommand
  16651. TNoChangesCommand.Fields
  16652. TNoChangesCommand.INoChangesCommand
  16653. TNumberText.Fields
  16654. TNumberText.GetValue
  16655. TNumberText.INumberText
  16656. TNumberText.IRes
  16657. TNumberText.SetValue
  16658. TNumberText.Validate
  16659. TNumberText.WRes
  16660. TNumberText.WriteRes
  16661. TObject.Clone
  16662. TObject.DynamicFields
  16663. TObject.Fields
  16664. TObject.ForAllSubClassesDo
  16665. TObject.ForAllSuperClassesDo
  16666. TObject.Free
  16667. TObject.GetClass
  16668. TObject.GetClassName
  16669. TObject.GetClassSize
  16670. TObject.GetDynamicPtr
  16671. TObject.GetDynamicSize
  16672. TObject.GetInspectorName
  16673. TObject.GetInstanceSize
  16674. TObject.GetSuperClass
  16675. TObject.Initialize
  16676. TObject.Inspect
  16677. TObject.IObject
  16678. TObject.IsMemberClass
  16679. TObject.IsSameClass
  16680. TObject.Lock
  16681. TObject.SetDynamicSize
  16682. TObject.SetInstanceSize
  16683. TObject.ShallowClone
  16684. TObject.ShallowFree
  16685. TObjectList.AddObject
  16686. TObjectList.Fields
  16687. TObjectList.IObjectList
  16688. TObjectList.RemoveObject
  16689. TObjectView.ChangeSelection
  16690. TObjectView.DoMouseCommand
  16691. TObjectView.Draw
  16692. TObjectView.Fields
  16693. TObjectView.FirstFieldThat
  16694. TObjectView.InspectControlHandle
  16695. TObjectView.InspectGrafPtr
  16696. TObjectView.InspectHandle
  16697. TObjectView.InspectRgnHandle
  16698. TObjectView.InspectTEHandle
  16699. TObjectView.InspectWindowPtr
  16700. TObjectView.InstallObject
  16701. TObjectView.IObjectView
  16702. TObjectView.IRes
  16703. TObjectView.LockObject
  16704. TObjectView.Resize
  16705. TObjectView.SelectField
  16706. TObjectView.SuperViewChangedSize
  16707. TObjectView.UnlockObject
  16708. TObjListView.DrawItem
  16709. TObjListView.Fields
  16710. TObjListView.InstallObjectList
  16711. TObjListView.IObjListView
  16712. TObjListView.IRes
  16713. TObjListView.SelectItem
  16714. TOldDocCommand.DoIt
  16715. TOldDocCommand.Fields
  16716. TOldDocCommand.IOldDocCommand
  16717. TPattern.Draw
  16718. TPattern.Fields
  16719. TPattern.Free
  16720. TPattern.IPattern
  16721. TPattern.IRes
  16722. TPattern.ReleasePattern
  16723. TPattern.SetPattern
  16724. TPattern.WRes
  16725. TPattern.WriteRes
  16726. TPicture.Draw
  16727. TPicture.Fields
  16728. TPicture.Free
  16729. TPicture.IPicture
  16730. TPicture.IRes
  16731. TPicture.ReleasePicture
  16732. TPicture.SetPicture
  16733. TPicture.WRes
  16734. TPicture.WriteRes
  16735. TPopup.AdjustBotRight
  16736. TPopup.CalcLabelRect
  16737. TPopup.CalcMenuRect
  16738. TPopup.DoMouseCommand
  16739. TPopup.Draw
  16740. TPopup.DrawLabel
  16741. TPopup.DrawPopupBox
  16742. TPopup.Fields
  16743. TPopup.Free
  16744. TPopup.GetCurrentItem
  16745. TPopup.GetItemText
  16746. TPopup.IPopup
  16747. TPopup.IRes
  16748. TPopup.ReleasePopup
  16749. TPopup.SetCurrentItem
  16750. TPopup.SetPopup
  16751. TPopup.WRes
  16752. TPopup.WriteRes
  16753. TPrintCommand.DoIt
  16754. TPrintCommand.Fields
  16755. TPrintCommand.IPrintCommand
  16756. TPrintHandler.BreakFollowing
  16757. TPrintHandler.CalcPageStrips
  16758. TPrintHandler.CalcViewPerPage
  16759. TPrintHandler.CheckPrinter
  16760. TPrintHandler.DrawPageBreak
  16761. TPrintHandler.DrawPrintFeedback
  16762. TPrintHandler.Fields
  16763. TPrintHandler.FocusOnInterior
  16764. TPrintHandler.GetInspectorName
  16765. TPrintHandler.IPrintHandler
  16766. TPrintHandler.LocatePageInterior
  16767. TPrintHandler.MaxPageNumber
  16768. TPrintHandler.Print
  16769. TPrintHandler.PrinterChanged
  16770. TPrintHandler.RedoPageBreaks
  16771. TPrintHandler.Reset
  16772. TPrintHandler.SetDefaultPrintInfo
  16773. TPrintHandler.SetPageInterior
  16774. TPrintHandler.SetPageOffset
  16775. TPrintHandler.SetupForFinder
  16776. TPrintStyleChangeCommand.DoIt
  16777. TPrintStyleChangeCommand.Fields
  16778. TPrintStyleChangeCommand.Free
  16779. TPrintStyleChangeCommand.IPrintStyleChangeCommand
  16780. TPrintStyleChangeCommand.RedoIt
  16781. TPrintStyleChangeCommand.UndoIt
  16782. TPtrBasedDoublyLinkedList.AppendNode
  16783. TPtrBasedDoublyLinkedList.EachNodeDo
  16784. TPtrBasedDoublyLinkedList.Fields
  16785. TPtrBasedDoublyLinkedList.IPtrBasedDoublyLinkedList
  16786. TPtrBasedDoublyLinkedList.RemoveNode
  16787. TQuitCommand.DoIt
  16788. TQuitCommand.Fields
  16789. TQuitCommand.IQuitCommand
  16790. TRadio.DoChoice
  16791. TRadio.Fields
  16792. TRadio.IRadio
  16793. TRadio.IRes
  16794. TRadio.IsOn
  16795. TRadio.SetState
  16796. TRadio.Toggle
  16797. TRadio.ToggleIf
  16798. TRadio.WRes
  16799. TRadio.WriteRes
  16800. TRCSelectCommand.ComputeNewSelection
  16801. TRCSelectCommand.Fields
  16802. TRCSelectCommand.TrackMouse
  16803. TRevertDocCommand.DoIt
  16804. TRevertDocCommand.Fields
  16805. TRevertDocCommand.IRevertDocCommand
  16806. TRowSelectCommand.ComputeAnchorCell
  16807. TRowSelectCommand.ComputeNewSelection
  16808. TRowSelectCommand.Fields
  16809. TRowSelectCommand.IRowSelectCommand
  16810. TRunArray.DeleteItems
  16811. TRunArray.Fields
  16812. TRunArray.FindChunk
  16813. TRunArray.FindItem
  16814. TRunArray.Free
  16815. TRunArray.GetValue
  16816. TRunArray.InsertItems
  16817. TRunArray.IRunArray
  16818. TRunArray.SumValues
  16819. TSaveDocCommand.DoIt
  16820. TSaveDocCommand.Fields
  16821. TSaveDocCommand.ISaveDocCommand
  16822. TScrollBar.ActionProc
  16823. TScrollBar.DeltaValue
  16824. TScrollBar.DoMouseCommand
  16825. TScrollBar.Fields
  16826. TScrollBar.IRes
  16827. TScrollBar.IScrollBar
  16828. TScrollBar.TrackScrollBar
  16829. TScrollBar.WRes
  16830. TScrollBar.WriteRes
  16831. TScroller.AddSubview
  16832. TScroller.AdjustScrollBars
  16833. TScroller.AutoScroll
  16834. TScroller.CreateScrollBar
  16835. TScroller.CreateTemplateScrollBar
  16836. TScroller.DoKeyCommand
  16837. TScroller.DoScroll
  16838. TScroller.Fields
  16839. TScroller.Focus
  16840. TScroller.ForceRedraw
  16841. TScroller.Free
  16842. TScroller.GetExtent
  16843. TScroller.GetScroller
  16844. TScroller.HaveScrollBar
  16845. TScroller.IRes
  16846. TScroller.IScroller
  16847. TScroller.LocalToSuper
  16848. TScroller.Locate
  16849. TScroller.RemoveSubview
  16850. TScroller.Resize
  16851. TScroller.RevealRect
  16852. TScroller.ScrollBy
  16853. TScroller.ScrollDraw
  16854. TScroller.ScrollRelative
  16855. TScroller.ScrollStep
  16856. TScroller.ScrollTo
  16857. TScroller.SetScrollLimits
  16858. TScroller.SetScrollParameters
  16859. TScroller.SubViewChangedSize
  16860. TScroller.SuperToLocal
  16861. TScroller.WRes
  16862. TScroller.WriteRes
  16863. TSortedList.Compare
  16864. TSortedList.DoSearch
  16865. TSortedList.Fields
  16866. TSortedList.GetEqualItemNo
  16867. TSortedList.Insert
  16868. TSortedList.ISortedList
  16869. TSortedList.Search
  16870. TSortedList.Sort
  16871. TSScrollBar.Activate
  16872. TSScrollBar.AttachScroller
  16873. TSScrollBar.BeInPort
  16874. TSScrollBar.DoMouseCommand
  16875. TSScrollBar.Draw
  16876. TSScrollBar.Fields
  16877. TSScrollBar.Free
  16878. TSScrollBar.IRes
  16879. TSScrollBar.ISScrollBar
  16880. TSScrollBar.TrackScrollBar
  16881. TSScrollBar.WriteRes
  16882. TStaticText.ChangeWrap
  16883. TStaticText.DoSubstitution
  16884. TStaticText.Draw
  16885. TStaticText.Fields
  16886. TStaticText.Free
  16887. TStaticText.GetText
  16888. TStaticText.ImageText
  16889. TStaticText.IRes
  16890. TStaticText.IStaticText
  16891. TStaticText.ReleaseText
  16892. TStaticText.SetJustification
  16893. TStaticText.SetText
  16894. TStaticText.WRes
  16895. TStaticText.WriteRes
  16896. TStdPrintHandler.AdornPage
  16897. TStdPrintHandler.BanishPrintDialog
  16898. TStdPrintHandler.BreakFollowing
  16899. TStdPrintHandler.CalcPageStrips
  16900. TStdPrintHandler.CalcViewPerPage
  16901. TStdPrintHandler.CheckPrinter
  16902. TStdPrintHandler.ChkPrintErr
  16903. TStdPrintHandler.ChooseSpoolFile
  16904. TStdPrintHandler.ClosePrintShop
  16905. TStdPrintHandler.DoInMacPrint
  16906. TStdPrintHandler.DoMenuCommand
  16907. TStdPrintHandler.DoPrintIdling
  16908. TStdPrintHandler.DoSetupMenus
  16909. TStdPrintHandler.DrawPageBreak
  16910. TStdPrintHandler.DrawPageInterior
  16911. TStdPrintHandler.DrawPrintFeedback
  16912. TStdPrintHandler.EachBreak
  16913. TStdPrintHandler.Fields
  16914. TStdPrintHandler.FocusOnBorder
  16915. TStdPrintHandler.FocusOnInterior
  16916. TStdPrintHandler.Free
  16917. TStdPrintHandler.GetBreakCoord
  16918. TStdPrintHandler.GetDocName
  16919. TStdPrintHandler.GetDriverName
  16920. TStdPrintHandler.IdentifySoftware
  16921. TStdPrintHandler.InstallMargins
  16922. TStdPrintHandler.InvalPageFeedback
  16923. TStdPrintHandler.IStdPrintHandler
  16924. TStdPrintHandler.LocatePageInterior
  16925. TStdPrintHandler.MaxPageNumber
  16926. TStdPrintHandler.OneSubJob
  16927. TStdPrintHandler.OpenPrintShop
  16928. TStdPrintHandler.PageToStrip
  16929. TStdPrintHandler.PointToPageStrip
  16930. TStdPrintHandler.PoseJobDialog
  16931. TStdPrintHandler.PosePageSetupDialog
  16932. TStdPrintHandler.PosePrintDialog
  16933. TStdPrintHandler.Print
  16934. TStdPrintHandler.PrinterChanged
  16935. TStdPrintHandler.PrintPage
  16936. TStdPrintHandler.PrintSpoolFile
  16937. TStdPrintHandler.RedoPageBreaks
  16938. TStdPrintHandler.Reset
  16939. TStdPrintHandler.SetDefaultPrintInfo
  16940. TStdPrintHandler.SetMargins
  16941. TStdPrintHandler.SetPage
  16942. TStdPrintHandler.SetPageInterior
  16943. TStdPrintHandler.SetPageOffset
  16944. TStdPrintHandler.SetPrintExtent
  16945. TStdPrintHandler.SetupForFinder
  16946. TStdPrintHandler.SetupPrintOne
  16947. TStdPrintHandler.ShowDocBeingPrinted
  16948. TStdPrintHandler.ShowsOnScreen
  16949. TStdPrintHandler.StripToPage
  16950. TStdPrintHandler.ValidatePrintRecord
  16951. TTECommand.BanishOldText
  16952. TTECommand.DoIt
  16953. TTECommand.DoMainFunction
  16954. TTECommand.Fields
  16955. TTECommand.Free
  16956. TTECommand.InstallNewText
  16957. TTECommand.ITECommand
  16958. TTECommand.RedoIt
  16959. TTECommand.RemoveAdditions
  16960. TTECommand.RestoreSelection
  16961. TTECommand.ReviveDeletions
  16962. TTECommand.UndoIt
  16963. TTECutCopyCommand.DoIt
  16964. TTECutCopyCommand.Fields
  16965. TTECutCopyCommand.Free
  16966. TTECutCopyCommand.ITECutCopyCommand
  16967. TTECutCopyCommand.ReviveDeletions
  16968. TTEPasteCommand.Fields
  16969. TTEPasteCommand.ITEPasteCommand
  16970. TTEStyleCommand.DoIt
  16971. TTEStyleCommand.Fields
  16972. TTEStyleCommand.InstallManyStyles
  16973. TTEStyleCommand.InstallOneStyle
  16974. TTEStyleCommand.ITEStyleCommand
  16975. TTEStyleCommand.RedoIt
  16976. TTEStyleCommand.UndoIt
  16977. TTETypingCommand.AddCharacter
  16978. TTETypingCommand.BkSpcLeft
  16979. TTETypingCommand.BkSpcRight
  16980. TTETypingCommand.CompleteTyping
  16981. TTETypingCommand.DoIt
  16982. TTETypingCommand.DoNormalChar
  16983. TTETypingCommand.Fields
  16984. TTETypingCommand.Free
  16985. TTETypingCommand.FwdDelete
  16986. TTETypingCommand.ITETypingCommand
  16987. TTETypingCommand.RedoIt
  16988. TTETypingCommand.UndoIt
  16989. TTEView.AutoScrolling
  16990. TTEView.BeInPort
  16991. TTEView.BeInScroller
  16992. TTEView.CalcMinSize
  16993. TTEView.CalcRealHeight
  16994. TTEView.CalcRealWidth
  16995. TTEView.CalcSelLoc
  16996. TTEView.ChangeWrap
  16997. TTEView.ClikLoop
  16998. TTEView.ComputeSize
  16999. TTEView.ContainsClipType
  17000. TTEView.ContinuousStyle
  17001. TTEView.DoBreakFollowing
  17002. TTEView.DoCalcViewPerPage
  17003. TTEView.DoIdle
  17004. TTEView.DoKeyCommand
  17005. TTEView.DoMakeEditCommand
  17006. TTEView.DoMakeStyleCommand
  17007. TTEView.DoMakeTypingCommand
  17008. TTEView.DoMenuCommand
  17009. TTEView.DoMouseCommand
  17010. TTEView.DoneTyping
  17011. TTEView.DoSetCursor
  17012. TTEView.DoSetPageOffset
  17013. TTEView.DoSetupMenus
  17014. TTEView.Draw
  17015. TTEView.ExtractStyles
  17016. TTEView.ExtractText
  17017. TTEView.Fields
  17018. TTEView.Free
  17019. TTEView.GetPrintExtent
  17020. TTEView.GivePasteData
  17021. TTEView.IdentifySoftware
  17022. TTEView.InstallSelection
  17023. TTEView.IRes
  17024. TTEView.ITEView
  17025. TTEView.MakeTERecord
  17026. TTEView.RecalcText
  17027. TTEView.Resize
  17028. TTEView.ScrollSelectionIntoView
  17029. TTEView.SetJustification
  17030. TTEView.SetOneStyle
  17031. TTEView.SetText
  17032. TTEView.ShowReverted
  17033. TTEView.SpaceForStyles
  17034. TTEView.StuffStyles
  17035. TTEView.StuffTERects
  17036. TTEView.StuffText
  17037. TTEView.SynchView
  17038. TTEView.ViewEnable
  17039. TTEView.WRes
  17040. TTEView.WriteRes
  17041. TTEView.WriteToDeskScrap
  17042. TTextGridView.DrawCell
  17043. TTextGridView.Fields
  17044. TTextGridView.Focus
  17045. TTextGridView.GetText
  17046. TTextGridView.IRes
  17047. TTextGridView.ITextGridView
  17048. TTextGridView.SetPen
  17049. TTextGridView.SetUpFont
  17050. TTextGridView.WRes
  17051. TTextGridView.WriteRes
  17052. TTextListView.AllItemsDo
  17053. TTextListView.CanSelectCell
  17054. TTextListView.CanSelectItem
  17055. TTextListView.DelItemAt
  17056. TTextListView.DelItemFirst
  17057. TTextListView.DelItemLast
  17058. TTextListView.EachItemDo
  17059. TTextListView.EachSelectedItemDo
  17060. TTextListView.Fields
  17061. TTextListView.FirstSelectedItem
  17062. TTextListView.GetItemHeight
  17063. TTextListView.GetItemText
  17064. TTextListView.GetItemWidth
  17065. TTextListView.GetText
  17066. TTextListView.InsItemBefore
  17067. TTextListView.InsItemFirst
  17068. TTextListView.InsItemLast
  17069. TTextListView.InvalidateItem
  17070. TTextListView.IsItemSelected
  17071. TTextListView.ITextListView
  17072. TTextListView.LastSelectedItem
  17073. TTextListView.Resize
  17074. TTextListView.SelectCell
  17075. TTextListView.SelectItem
  17076. TTextListView.SetItemHeight
  17077. TTextListView.SetItemWidth
  17078. TTextListView.WriteRes
  17079. TTranscriptView.AddText
  17080. TTranscriptView.AddTextToFile
  17081. TTranscriptView.CommonInit
  17082. TTranscriptView.DoHelp
  17083. TTranscriptView.DoIdle
  17084. TTranscriptView.DoKeyCommand
  17085. TTranscriptView.Draw
  17086. TTranscriptView.EndForce
  17087. TTranscriptView.Fields
  17088. TTranscriptView.ForceOutput
  17089. TTranscriptView.Free
  17090. TTranscriptView.GetInsertionPointRect
  17091. TTranscriptView.HandleMouseDown
  17092. TTranscriptView.IndexColToLocal
  17093. TTranscriptView.IndexToLocal
  17094. TTranscriptView.IndexToRow
  17095. TTranscriptView.InstallTextStyle
  17096. TTranscriptView.IRes
  17097. TTranscriptView.ITranscriptView
  17098. TTranscriptView.LocalToCol
  17099. TTranscriptView.LocalToIndex
  17100. TTranscriptView.PrevIndex
  17101. TTranscriptView.Redirect
  17102. TTranscriptView.RevealInsertionPoint
  17103. TTranscriptView.RevealInsertionPointLine
  17104. TTranscriptView.RowToIndex
  17105. TTranscriptView.Scroll
  17106. TTranscriptView.SuccIndex
  17107. TUndoRedoCommand.DoIt
  17108. TUndoRedoCommand.Fields
  17109. TUndoRedoCommand.IUndoRedoCommand
  17110. TView.Activate
  17111. TView.AddSubView
  17112. TView.AdjustSize
  17113. TView.Adorn
  17114. TView.AssumeFocused
  17115. TView.AttachPrintHandler
  17116. TView.BeInPort
  17117. TView.BeInScroller
  17118. TView.CalcMinSize
  17119. TView.ClipFurtherTo
  17120. TView.Close
  17121. TView.ComputeSize
  17122. TView.ContainsClipType
  17123. TView.ContainsMouse
  17124. TView.CountSubViews
  17125. TView.DoBreakFollowing
  17126. TView.DoCalcPageStrips
  17127. TView.DoCalcViewPerPage
  17128. TView.DoCheckPrinter
  17129. TView.DoChoice
  17130. TView.DoDrawPageBreak
  17131. TView.DoDrawPrintFeedback
  17132. TView.DoHighlightSelection
  17133. TView.DoMenuCommand
  17134. TView.DoMouseCommand
  17135. TView.DoOffScreen
  17136. TView.DoPagination
  17137. TView.DoPrinterChanged
  17138. TView.DoSetCursor
  17139. TView.DoSetPageOffset
  17140. TView.DoSetupMenus
  17141. TView.Draw
  17142. TView.DrawContents
  17143. TView.EachSubView
  17144. TView.Fields
  17145. TView.FindSubView
  17146. TView.FirstSubviewThat
  17147. TView.Focus
  17148. TView.FocusOnSuperView
  17149. TView.ForceRedraw
  17150. TView.Free
  17151. TView.FreeFromClipboard
  17152. TView.GetDefaultCursorRgn
  17153. TView.GetDialogView
  17154. TView.GetExtent
  17155. TView.GetFrame
  17156. TView.GetGrafPort
  17157. TView.GetInspectorName
  17158. TView.GetPrintExtent
  17159. TView.GetQDExtent
  17160. TView.GetScroller
  17161. TView.GetVisibleRect
  17162. TView.GetWindow
  17163. TView.GivePasteData
  17164. TView.HandleCursor
  17165. TView.HandleMouseDown
  17166. TView.HasPendingUpdate
  17167. TView.InvalidateFocus
  17168. TView.InvalidRect
  17169. TView.InvalidVRect
  17170. TView.IRes
  17171. TView.IsDoneTracking
  17172. TView.IsFocused
  17173. TView.IsShown
  17174. TView.IsViewEnabled
  17175. TView.IsVisible
  17176. TView.IView
  17177. TView.LastSubViewThat
  17178. TView.LocalToSuper
  17179. TView.LocalToWindow
  17180. TView.Locate
  17181. TView.MakeFirstSubView
  17182. TView.MakeLastSubView
  17183. TView.Open
  17184. TView.PageInteriorChanged
  17185. TView.QDToViewPt
  17186. TView.QDToViewRect
  17187. TView.RemoveSubView
  17188. TView.Resize
  17189. TView.RevealBottom
  17190. TView.RevealRect
  17191. TView.RevealTop
  17192. TView.Show
  17193. TView.ShowReverted
  17194. TView.SubViewChangedSize
  17195. TView.SubViewMoved
  17196. TView.SuperToLocal
  17197. TView.SuperViewChangedSize
  17198. TView.SuperViewMoved
  17199. TView.TrackConstrain
  17200. TView.TrackFeedback
  17201. TView.TrackMouse
  17202. TView.Update
  17203. TView.ValidVRect
  17204. TView.ViewEnable
  17205. TView.ViewToQDPt
  17206. TView.ViewToQDRect
  17207. TView.WindowToLocal
  17208. TView.WRes
  17209. TView.WriteRes
  17210. TView.WriteToDeskScrap
  17211. TWindow.Activate
  17212. TWindow.AdaptToScreen
  17213. TWindow.AllowsMenuAccess
  17214. TWindow.BuildWindowRgns
  17215. TWindow.Center
  17216. TWindow.Close
  17217. TWindow.CloseByUser
  17218. TWindow.DoMenuCommand
  17219. TWindow.DoSetupMenus
  17220. TWindow.DrawContents
  17221. TWindow.DrawResizeIcon
  17222. TWindow.Fields
  17223. TWindow.Focus
  17224. TWindow.FocusOnSuperView
  17225. TWindow.ForceOnScreen
  17226. TWindow.Free
  17227. TWindow.GetGlobalBounds
  17228. TWindow.GetGrafPort
  17229. TWindow.GetInspectorName
  17230. TWindow.GetMaxIntersectedDevice
  17231. TWindow.GetTitle
  17232. TWindow.GetWindow
  17233. TWindow.GoAwayByUser
  17234. TWindow.HandleMouseDown
  17235. TWindow.HasPendingUpdate
  17236. TWindow.InstallDocument
  17237. TWindow.IRes
  17238. TWindow.IsDraggable
  17239. TWindow.IsShown
  17240. TWindow.IWindow
  17241. TWindow.Locate
  17242. TWindow.MoveByUser
  17243. TWindow.Open
  17244. TWindow.Resize
  17245. TWindow.ResizeByUser
  17246. TWindow.Select
  17247. TWindow.SetResizeLimits
  17248. TWindow.SetTarget
  17249. TWindow.SetTitle
  17250. TWindow.SetTitleForDoc
  17251. TWindow.Show
  17252. TWindow.SimpleStagger
  17253. TWindow.Update
  17254. TWindow.WRes
  17255. TWindow.WriteRes
  17256. TWindow.Zoom
  17257. TWindow.ZoomByUser
  17258.  
  17259. æKY TAboutAppCommand.DoIt
  17260. æD PROCEDURE TAboutAppCommand.DoIt; OVERRIDE;
  17261.  
  17262. æFi UMacApp.p
  17263. æT METHOD 
  17264. æC DoIt displays the About box. MacApp calls this method to execute the 
  17265. TAboutAppCommand command created when the user chooses the About Application item 
  17266. from the Apple menu. You never need to call the DoIt method yourself. 
  17267.  
  17268.  
  17269.  
  17270. æKY TAboutAppCommand.Fields
  17271. æD PROCEDURE TAboutAppCommand.Fields
  17272.   (PROCEDURE DoToField(fieldName: Str255;    fieldAddr: Ptr; 
  17273.   fieldType: INTEGER)); OVERRIDE;  
  17274.  
  17275. æFi UMacApp.p
  17276. æT METHOD 
  17277. æC Fields reports the contents of each field of the TAboutAppCommand object to the 
  17278. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  17279. report the contents of each field. Fields iterates over all the fields of the 
  17280. TAboutAppCommand object, performing DoToField on each one. The fieldName parameter 
  17281. is the name of the field. The fieldAddr parameter is the field’s location in 
  17282. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  17283. type of information to look for in a field. MacApp calls Fields from the MacApp 
  17284. Inspector. You must override this method in your subclasses if you want the 
  17285. Inspector to display your fields. Your override must call INHERITED Fields as its 
  17286. last action to ensure that the inherited fields are also displayed. 
  17287.  
  17288.  
  17289.  
  17290. æKY TAboutAppCommand.IAboutAppCommand
  17291. æD PROCEDURE TAboutAppCommand.IAboutAppCommand(itsCmdNumber: CmdNumber);
  17292. æFi UMacApp.p
  17293. æT METHOD 
  17294. æC IAboutAppCommand initializes a TAboutAppCommand object and associates it with a 
  17295. command number. The itsCmdNumber parameter is the command number that is 
  17296. associated with a particular command—in this case, the command that displays the 
  17297. About box. The command number is used in the 'cmnu' resource in the resource 
  17298. description file; you will typically define a constant to represent that number in 
  17299. both the resource description file and in the appropriate interface or 
  17300. implementation file of the application. MacApp calls this method when the user chooses 
  17301. the About item from the Apple menu. You never need to call IAboutAppCommand yourself. 
  17302.  
  17303.  
  17304.  
  17305. æKY TApplication.AbandonUndoClipboard
  17306. æD PROCEDURE TApplication.AbandonUndoClipboard;
  17307. æFi UMacApp.p
  17308. æT METHOD 
  17309. æC AbandonUndoClipboard frees the “Undo Clipboard”—the object that stores material 
  17310. needed to undo a user action. This method calls gClipUndoView.FreeFromClipboard 
  17311. and sets gClipUndoView to NIL. MacApp calls AbandonUndoClipboard when the Undo 
  17312. Clipboard is no longer needed; for example, when a command is committed or 
  17313. when the application must claim the Clipboard to carry out a Cut or Copy command. 
  17314. You usually do not need to call AbandonUndoClipboard yourself. 
  17315.  
  17316.  
  17317.  
  17318. æKY TApplication.AboutToLoseControl
  17319. æD PROCEDURE TApplication.AboutToLoseControl(convertClipboard: BOOLEAN);
  17320. æFi UMacApp.p
  17321. æT METHOD 
  17322. æC AboutToLoseControl cleans up for an application when control is about to pass to 
  17323. another application or a desk accessory. If the value of the convertClipboard 
  17324. parameter is TRUE and the last command changed the Clipboard, then this method 
  17325. commits the last command and writes the contents of the Clipboard to the desk 
  17326. scrap. Otherwise, the contents of the Clipboard are not written to the desk 
  17327. scrap. MacApp calls AboutToLoseControl when control is about to pass to another 
  17328. application or to a desk accessory. You usually do not need to call this method 
  17329. yourself. 
  17330.  
  17331.  
  17332.  
  17333. æKY TApplication.AbsorbScrapStuff
  17334. æD PROCEDURE TApplication.AbsorbScrapStuff;
  17335. æFi UMacApp.p
  17336. æT METHOD 
  17337. æC AbsorbScrapStuff retrieves the current InfoScrap record from low memory; this 
  17338. record is later used to determine if the scrap has changed. MacApp calls 
  17339. AbsorbScrapStuff when it needs to check the state of the public desk scrap—for 
  17340. example, when launching the Clipboard or handing over control to another application 
  17341. in the MultiFinder® environment. You usually do not need to call AbsorbScrapStuff 
  17342. yourself. If you must call this method, do so infrequently and with caution, 
  17343. because MacApp uses this method to maintain the "previous" and "current" state 
  17344. of the desk scrap. Calling AbsorbScrapStuff yourself may cause MacApp to fail to 
  17345. recognize that the desk scrap has changed. 
  17346.  
  17347.  
  17348.  
  17349. æKY TApplication.ActivateBusyCursor
  17350. æD PROCEDURE TApplication.ActivateBusyCursor(entering: BOOLEAN);
  17351. æFi UMacApp.p
  17352. æT METHOD 
  17353. æC ActivateBusyCursor changes the cursor to the standard watch cursor or back to 
  17354. its previous state. When the value of the entering parameter is TRUE, this method 
  17355. changes the cursor to the wristwatch; when the value of the entering parameter 
  17356. is FALSE, the cursor is restored to its usual state, the arrow. MacApp calls 
  17357. ActivateBusyCursor when the application’s functions are temporarily unavailable 
  17358. to the user—for example, during a context switch under MultiFinder, or during 
  17359. the completion of a system request. You can call this method to indicate to the 
  17360. user that a lengthy operation is in progress, or that user requests will 
  17361. temporarily be ignored for some other reason. 
  17362.  
  17363.  
  17364.  
  17365. æKY TApplication.AddDocument
  17366. æD PROCEDURE TApplication.AddDocument(aNewDocument: TDocument);
  17367. æFi UMacApp.p
  17368. æT METHOD 
  17369. æC AddDocument adds the specified document to the application's list of documents. 
  17370. The aNewDocument parameter is the TDocument object to be added to the list. 
  17371. MacApp calls this method when creating new documents or opening existing ones. You 
  17372. usually do not need to call AddDocument yourself. 
  17373.  
  17374.  
  17375.  
  17376. æKY TApplication.AddFreeWindow
  17377. æD PROCEDURE TApplication.AddFreeWindow(aWindow: TWindow);
  17378. æFi UMacApp.p
  17379. æT METHOD 
  17380. æC AddFreeWindow adds the TWindow object to the application's free-window list. (A 
  17381. “free window” is one that is not associated with a document.) The aWindow 
  17382. parameter specifies the window to be added to the list. If necessary, MacApp calls 
  17383. this method from TWindow.InstallDocument when initializing new TWindow objects; 
  17384. you usually do not need to call AddFreeWindow yourself. 
  17385.  
  17386.  
  17387.  
  17388. æKY TApplication.AlreadyOpen
  17389. æD FUNCTION TApplication.AlreadyOpen(fileName: Str255; volRefnum: INTEGER): TDocument;
  17390. æFi UMacApp.p
  17391. æT METHOD 
  17392. æC AlreadyOpen returns the specified document if that document is already opened; 
  17393. otherwise, it returns NIL. The fileName parameter specifies the file that MacApp 
  17394. tests to determine whether it is open. The volRefnum parameter is the file’s 
  17395. volume reference number. MacApp calls this method to find out if a file is open 
  17396. already when the user requests or opens that file. You can call this method to 
  17397. determine if a document object exists that corresponds to a specified filename 
  17398. and volume; however, you usually do not need to call this method yourself. 
  17399.  
  17400.  
  17401.  
  17402. æKY TApplication.Beep
  17403. æD PROCEDURE TApplication.Beep(duration: INTEGER);
  17404. æFi UMacApp.p
  17405. æT METHOD 
  17406. æC Beep produces a system beep. The duration parameter is meaningful only if the 
  17407. SysBeep Toolbox routine is using the ROM beep. The parameter specifies, in ticks, 
  17408. how long the beep will sound. MacApp calls this method in a variety of 
  17409. situations that require the application to alert the user. You can use Beep any time 
  17410. you wish to play the system beep. Sound Manager users may need to override this 
  17411. method to integrate its function in their applications. 
  17412.  
  17413.  
  17414.  
  17415. æKY TApplication.CanOpenDocument
  17416. æD FUNCTION TApplication.CanOpenDocument(itsCmdNumber: CmdNumber;  
  17417.   VAR anAppFile: AppFile): BOOLEAN;
  17418. æFi UMacApp.p
  17419. æT METHOD 
  17420. æC CanOpenDocument simulates the filtering done by the Standard File dialog box; it 
  17421. returns TRUE if the document to be opened meets specified criteria. The 
  17422. itsCmdNumber parameter is the command number of the command that caused 
  17423. CanOpenDocument to be called. The command number is used in the 'cmnu' resource in the 
  17424. resource description file; you typically define a constant to represent that number 
  17425. in both the resource description file and in the appropriate interface or 
  17426. implementation file of the application. The anAppFile parameter is a record that 
  17427. stores the document's volume reference number, file type, version number, and 
  17428. filename. For specific information regarding the AppFile data type, see the 
  17429. discussion of the GetAppFiles procedure in the “Segment Loader Routines” section of 
  17430. Inside Macintosh. MacApp calls CanOpenDocument only when opening or printing 
  17431. documents from the Finder™; when using Standard File to open a document, Standard 
  17432. File does the filtering. You usually do not need to call this method yourself. 
  17433.  
  17434.  
  17435.  
  17436. æKY TApplication.CheckDeskScrap
  17437. æD PROCEDURE TApplication.CheckDeskScrap;
  17438. æFi UMacApp.p
  17439. æT METHOD 
  17440. æC CheckDeskScrap calls AbsorbScrapStuff to compare the current scrap change count 
  17441. with the previous change count. If the scrap has changed, then the current 
  17442. Clipboard becomes the “Undo Clipboard,” and MacApp reads the new desk scrap, 
  17443. placing it in the current Clipboard. MacApp calls CheckDeskScrap in situations when 
  17444. the desk scrap may have changed since it was last checked—for example, after a 
  17445. Copy command is executed, after a desk accessory is used, or when the 
  17446. application is made the active layer in the MultiFinder environment. You can call this 
  17447. method any time you want to find out whether the desk scrap has changed. 
  17448.  
  17449.  
  17450.  
  17451. æKY TApplication.ChooseDocument
  17452. æD FUNCTION TApplication.ChooseDocument(itsCmdNumber: CmdNumber;  
  17453.   VAR anAppFile: AppFile): BOOLEAN;
  17454. æFi UMacApp.p
  17455. æT METHOD 
  17456. æC ChooseDocument calls SFPGetFile and returns TRUE if the user selected a file. 
  17457. The itsCmdNumber parameter is the command number of the command that caused 
  17458. ChooseDocument to be called. The command number is used in the 'cmnu' resource in 
  17459. the resource description file; you typically define a constant to represent that 
  17460. number in both the resource description file and in the appropriate interface 
  17461. or implementation file of the application. The anAppFile parameter is a record 
  17462. that stores the document's volume reference number, file type, version number, 
  17463. and filename. MacApp calls ChooseDocument when the user chooses a command in the 
  17464. range cOpen to cOpenLast. You usually do not need to call ChooseDocument 
  17465. yourself, nor override it, unless you change the way a user can open a document. 
  17466.  
  17467.  
  17468.  
  17469. æKY TApplication.ClaimClipboard
  17470. æD PROCEDURE TApplication.ClaimClipboard(clipView: TView);
  17471. æFi UMacApp.p
  17472. æT METHOD 
  17473. æC ClaimClipboard makes clipView the new view displayed by the Clipboard. The 
  17474. clipView parameter specifies the TView object that is to be installed as the new 
  17475. Clipboard view. MacApp calls ClaimClipboard when the state of the Clipboard 
  17476. changes; typically this is the result of executing a Cut or Copy command, creating a 
  17477. new view for data in the desk scrap, or reading the contents of the Clipboard 
  17478. for some other reason. MacApp also calls this method to install the standard 
  17479. Clipboard view (gClipOrphanage) when the application is low on memory. You usually 
  17480. call ClaimClipboard as part of the implementation of your Cut or Copy commands. 
  17481.  
  17482.  
  17483.  
  17484. æKY TApplication.Close
  17485. æD PROCEDURE TApplication.Close;
  17486. æFi UMacApp.p
  17487. æT METHOD 
  17488. æC Close attempts to close all open windows and save all open documents. If all 
  17489. save operations succeed, the application terminates. If the user cancels, Close 
  17490. signals failure, with the error parameter equal to noErr and the message 
  17491. parameter equal to msgCancelled. MacApp calls Close after printing documents from the 
  17492. Finder™ or when the user chooses the Quit command; you usually do not need to 
  17493. call this method yourself. You may override Close if you need to take additional 
  17494. action when the application terminates. 
  17495.  
  17496.  
  17497.  
  17498. æKY TApplication.CloseWmgrWindow
  17499. æD PROCEDURE TApplication.CloseWmgrWindow(aWMgrWindow: WindowPtr);
  17500. æFi UMacApp.p
  17501. æT METHOD 
  17502. æC CloseWmgrWindow closes a specified Window Manager window or Desk Accessory. If 
  17503. the window is the only one associated with a document that has changed, this 
  17504. method will pose the Save Changes dialog box. If the user confirms, the document 
  17505. is saved and all windows and subviews associated with it are closed; if the used 
  17506. denies, the window and its subviews are closed, but changes to the document 
  17507. are not saved. If the user cancels, this method signals failure with the error 
  17508. parameter equal to noErr and the message equal to msgCancelled. The TWindow 
  17509. object, if there is one associated with the document, is also freed when the 
  17510. document is closed. If there is no TWindow object associated with the document, this 
  17511. method calls the Toolbox routine HideWindow to make the Window Manager window 
  17512. invisible. The aWMgrWindow parameter is the pointer to the Window Manager window. 
  17513. MacApp calls this method when the user quits the application or closes a 
  17514. window either by choosing a menu item or clicking the window's close box. You can 
  17515. call this method yourself when you want to close a window in a nonstandard 
  17516. way—for example, if you know the pointer to the window and simply want to make sure 
  17517. that the window is closed. 
  17518.  
  17519.  
  17520.  
  17521. æKY TApplication.CommitLastCommand
  17522. æD PROCEDURE TApplication.CommitLastCommand; OVERRIDE;
  17523. æFi UMacApp.p
  17524. æT METHOD 
  17525. æC CommitLastCommand calls the Commit method of the last TCommand object created. 
  17526. This action commits that command, making its action immune to the effects of the 
  17527. Undo menu item. MacApp calls CommitLastCommand when a pending command will 
  17528. affect the document in such a way that it will no longer be possible to undo the 
  17529. last command—for example, before closing the document, saving it to the disk, or 
  17530. restoring (reverting) the document to its last saved state. You usually do not 
  17531. need to call this method yourself. 
  17532.  
  17533.  
  17534.  
  17535. æKY TApplication.CountClicks
  17536. æD FUNCTION TApplication.CountClicks(aPDownEvent: EventRecordPtr; 
  17537.   whereMouseDown: INTEGER): INTEGER;
  17538. æFi UMacApp.p
  17539. æT METHOD 
  17540. æC CountClicks returns the number of clicks that can be considered multiple clicks. 
  17541. If a mouse-down event should be treated as a single click, or possibly the 
  17542. first click of a multiple-click sequence, this method returns 1. If the mouse-down 
  17543. event should be considered a double-click, this method returns 2; the same 
  17544. rule is used for triple-clicks and so forth. A click is considered part of a 
  17545. multiple-click sequence if the mouse-down event was within the allowed time range of 
  17546. the previous mouse-up event, and was within the allowed range of pixels of the 
  17547. last mouse-down event. The aPDownEvent parameter is a pointer to the event 
  17548. record for a mouse-down event. The whereMouseDown parameter is the part code 
  17549. indicating in which part of the window the mouse click was located. 
  17550. TApplication.HandleMouseDown uses the the result returned by this function to 
  17551. determine the number of clicks needed to define multiple clicks . You can use this 
  17552. method in a similar fashion, although you usually do not need to call this method 
  17553. yourself unless you implement special behavior based on counting multiple mouse clicks. 
  17554.  
  17555.  
  17556.  
  17557. æKY TApplication.DeleteDocument
  17558. æD PROCEDURE TApplication.DeleteDocument(docToDelete: TDocument);
  17559.  
  17560. æFi UMacApp.p
  17561. æT METHOD 
  17562. æC DeleteDocument deletes a document from the TApplication object’s list of 
  17563. documents. The docToDelete parameter specifies the TDocument object to be deleted from 
  17564. the application's list of documents. Note that you no longer need to call 
  17565. TList.RemoveDeletions as in versions of MacApp prior to 2.0 - the document object 
  17566. is actually removed from the list and the size of TDynamicArray object is 
  17567. reduced when DeleteDocument is called. MacApp calls DeleteDocument from 
  17568. TDocument.Free when it is freeing a document object. You never call this method 
  17569. yourself because you must not delete a document from the list until the document 
  17570. is freed. 
  17571.  
  17572.  
  17573.  
  17574. æKY TApplication.DeleteFreeWindow
  17575. æD PROCEDURE TApplication.DeleteFreeWindow(windowToDelete: TWindow);
  17576. æFi UMacApp.p
  17577. æT METHOD 
  17578. æC DeleteFreeWindow deletes a window from the application's list of free windows. A 
  17579. free window is one that belongs to the application instead of to a document. 
  17580. (An example is the palette window in MacPaint.) The windowToDelete parameter is 
  17581. the TWindow object to be deleted from the free-window list. MacApp calls this 
  17582. method when freeing a window not associated with a document, and also as a 
  17583. precautionary measure just before associating a window with a document. 
  17584. TWindow.InstallDocument calls SELF.DeleteFreeWindow to ensure that the window is not 
  17585. placed on both the free-window list and the document’s window list at the same time. 
  17586. You usually do not need to call DeleteFreeWindow yourself. 
  17587.  
  17588.  
  17589.  
  17590. æKY TApplication.DispatchEvent
  17591. æD PROCEDURE TApplication.DispatchEvent(VAR theEventInfo: EventInfo; 
  17592.   VAR commandToPerform: TCommand);
  17593. æFi UMacApp.p
  17594. æT METHOD 
  17595. æC DispatchEvent tests each event the user generates and dispatches it to the 
  17596. appropriate TApplication.Handle<Some>Event method. The parameter theEventInfo is the 
  17597. event record that holds the event’s data. The commandToPerform parameter 
  17598. returns a TCommand object to be executed as a result of handling the event, or NIL. 
  17599. MacApp calls DispatchEvent from TApplication.MainEventLoop. You usually do not 
  17600. need to call this method yourself. 
  17601.  
  17602.  
  17603.  
  17604. æKY TApplication.DoCommandKey
  17605. æD FUNCTION TApplication.DoCommandKey(ch: Char; 
  17606.   VAR info: EventInfo): TCommand; OVERRIDE;
  17607. æFi UMacApp.p
  17608. æT METHOD 
  17609. æC DoCommandKey handles keystrokes made with the Command key pressed, returning the 
  17610. appropriate TCommand object. The ch parameter is the character that 
  17611. corresponds to the key the user pressed in combination with the Command key. The info 
  17612. parameter is the event record description of the key-down event that caused MacApp 
  17613. to call DoKeyCommand; the info parameter is used to pass information about the 
  17614. event, such as whether the Option key was pressed. MacApp calls DoCommandKey 
  17615. when a key-down event is received while the Command key is pressed. You usually 
  17616. do not need to call this method yourself. 
  17617.  
  17618.  
  17619.  
  17620. æKY TApplication.DoKeyCommand
  17621. æD FUNCTION TApplication.DoKeyCommand(ch: CHAR; aKeyCode: INTEGER; 
  17622.   VAR info: EventInfo): TCommand; OVERRIDE;
  17623. æFi UMacApp.p
  17624. æT METHOD 
  17625. æC DoKeyCommand handles keystrokes made without the Command key pressed, returning 
  17626. the appropriate TCommand object. The ch parameter is the alphanumeric character 
  17627. that corresponds to the key the user pressed. The aKeyCode parameter is the 
  17628. ASCII key code generated by the keystroke. The info parameter is the event record 
  17629. description of the event that caused MacApp to call DoKeyCommand; the info 
  17630. parameter is used to pass information about the event, such as whether the Option 
  17631. key was pressed. MacApp calls DoKeyCommand when the user presses a key on the 
  17632. keyboard. You usually do not need to override this method or call it yourself. 
  17633.  
  17634.  
  17635.  
  17636. æKY TApplication.DoMakeDocument
  17637. æD FUNCTION TApplication.DoMakeDocument(itsCmdNumber: CmdNumber): TDocument;
  17638.  
  17639. æFi UMacApp.p
  17640. æT METHOD 
  17641. æC DoMakeDocument creates a TDocument object that represents a document for the 
  17642. application. The default method creates and initializes a TDocument object that 
  17643. has a file type of gMainFileType and has a signature of four question marks. That 
  17644. object uses only the data fork, and doesn't keep that fork open. You must 
  17645. override DoMakeDocument to create any other kind of document. The itsCmdNumber 
  17646. parameter specifies which menu item the user selected to create the document. 
  17647. MacApp defines certain constants for use as command numbers, including the 
  17648. following: cNew (= 10) and cNewLast (= 19), which define a range of New commands; and 
  17649. cOpen (= 20) and cOpenLast (= 29), which define a range of Open commands. The 
  17650. command number is used in the 'cmnu' resource in the resource description file; 
  17651. you typically define a constant to represent that number in both the resource 
  17652. description file and in the appropriate interface or implementation file of the 
  17653. application. MacApp calls DoMakeDocument from such methods as 
  17654. TApplication.OpenNew, TApplication.OpenOld, and TApplication.PrintDocument. You 
  17655. usually do not need to call DoMakeDocument yourself. 
  17656.  
  17657.  
  17658.  
  17659. æKY TApplication.DoMenuCommand
  17660. æD FUNCTION TApplication.DoMenuCommand(aCmdNumber: CmdNumber): TCommand;
  17661. æFi UMacApp.p
  17662. æT METHOD 
  17663. æC DoMenuCommand performs the appropriate actions to process a user’s menu 
  17664. selection. This method performs simple commands passed to it in the aCmdNumber 
  17665. parameter and returns NIL; it returns a TCommand object to handle complex commands. 
  17666. Commands it cannot handle are passed back to the command chain by calling 
  17667. INHERITED DoMenuCommand.  The parameter aCmdNumber is the command number defined for 
  17668. the selected menu item. This method responds to certain commands predefined by 
  17669. MacApp in the file UMacApp.p; you can define others in your 'cmnu' resource 
  17670. description and in the appropriate interface or implementation file. MacApp calls 
  17671. DoMenuCommand when the user selects a command from a menu. You usually do not 
  17672. need to call this method yourself. Overrides of this method should call INHERITED 
  17673. DoMenuCommand as their last action to return commands they do not handle to the 
  17674. command chain. 
  17675.  
  17676.  
  17677.  
  17678. æKY TApplication.DoSetupMenus
  17679. æD PROCEDURE TApplication.DoSetupMenus; OVERRIDE;
  17680. æFi UMacApp.p
  17681. æT METHOD 
  17682. æC DoSetupMenus enables menu items to which the TApplication object’s DoMenuCommand 
  17683. method can respond. MacApp calls DoSetupMenus when the menus may have changed 
  17684. since the last time DoSetupMenus was called; it is called from 
  17685. TApplication.SetupTheMenus before displaying the menus. You must override this method 
  17686. if you override TApplication.DoMenuCommand. Your override method must set up the menu 
  17687. commands handled by TYourApplication.DoMenuCommand. You should begin your override 
  17688. method by calling INHERITED DoMenuCommand to allow MacApp to set up the standard 
  17689. menu commands first. For more information, see the discussion of menus and menu 
  17690. commands in the MacApp 2.0 Cookbook. 
  17691.  
  17692.  
  17693.  
  17694. æKY TApplication.DoShowAboutApp
  17695. æD PROCEDURE TApplication.DoShowAboutApp;
  17696. æFi UMacApp.p
  17697. æT METHOD 
  17698. æC DoShowAboutApp displays the application's About box. The default method displays 
  17699. the About MacApp box. MacApp calls this method from the command object created 
  17700. by TApplication.DoMenuCommand when the user chooses the About menu item. You 
  17701. can override this method to display your own About box. You usually do not need 
  17702. to call DoShowAboutApp yourself. 
  17703.  
  17704.  
  17705.  
  17706. æKY TApplication.EachFreeWindow
  17707. æD PROCEDURE TApplication.EachFreeWindow(PROCEDURE DoToWindow(aWindow: TWindow));
  17708. æFi UMacApp.p
  17709. æT METHOD 
  17710. æC EachFreeWindow performs the DoToWindow procedure on each TWindow object in the 
  17711. application's free-window list, in order of the windows' creation. DoToWindow is 
  17712. a procedure that you define and pass to EachFreeWindow. The procedure you 
  17713. define can have any name, just as variables that you pass as arguments can have any 
  17714. name. The procedure passed in DoToWindow must take a single parameter of type 
  17715. TWindow. EachFreeWindow iterates over all entries in the TApplication object's 
  17716. free-window list, binding each one in turn to the aWindow parameter and 
  17717. executing the passed procedure. MacApp calls EachFreeWindow from 
  17718. TApplication.ForAllWindowsDo when it must perform some operation on every free window 
  17719. belonging to the application. You can use this method for similar purposes. 
  17720.  
  17721.  
  17722.  
  17723. æKY TApplication.Fields
  17724. æD PROCEDURE TApplication.Fields(PROCEDURE  DoToField(fieldName: Str255; 
  17725.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  17726. æFi UMacApp.p
  17727. æT METHOD 
  17728. æC Fields reports the contents of each field of the TApplication object to the 
  17729. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  17730. the contents of each field. Fields iterates over all the fields of the 
  17731. TApplication object, performing DoToField on each one. The fieldName parameter is the 
  17732. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  17733. fieldType parameter uses a predefined constant to tell Fields what type of 
  17734. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  17735. You must override this method in your subclasses if you want the Inspector to 
  17736. display your fields. Your override must call INHERITED Fields as its last 
  17737. action to ensure that the inherited fields are also displayed. 
  17738.  
  17739.  
  17740.  
  17741. æKY TApplication.ForAllDocumentsDo
  17742. æD PROCEDURE TApplication.ForAllDocumentsDo(PROCEDURE DoToDoc(aDocument: TDocument));
  17743. æFi UMacApp.p
  17744. æT METHOD 
  17745. æC ForAllDocumentsDo performs the specified procedure on all open documents 
  17746. currently owned by the application. DoToDoc is a procedure that you define and pass to 
  17747. ForAllDocumentsDo. The procedure you define can have any name, just as 
  17748. variables that you pass as arguments can have any name. The procedure passed in 
  17749. DoToDoc must take a single parameter of type TDocument, which is the aDocument 
  17750. parameter. ForAllDocumentsDo iterates over all entries in the application's document 
  17751. list, binding each one in turn to the aDocument parameter and executing the 
  17752. passed procedure. MacApp calls ForAllDocumentsDo when it must apply some action to 
  17753. all currently existing document objects—for example, to close all open 
  17754. documents. You can use this method in a similar fashion. 
  17755.  
  17756.  
  17757.  
  17758. æKY TApplication.ForAllWindowsDo
  17759. æD PROCEDURE TApplication.ForAllWindowsDo(PROCEDURE DoToWind(aWindow: TWindow));
  17760. æFi UMacApp.p
  17761. æT METHOD 
  17762. æC ForAllWindowsDo performs the specified procedure on all windows of all 
  17763. documents, as well as on all windows in the application's free-window list. DoToWind 
  17764. is a procedure that you define and pass to ForAllWindowsDo. The procedure you 
  17765. define can have any name, just as variables that you pass as arguments can have any 
  17766. name. The procedure passed in DoToWind must take a single parameter of type 
  17767. TWindow, which is the aWindow parameter. ForAllWindowsDo iterates over all 
  17768. entries in the application's document list, executing the passed procedure on every 
  17769. window belonging to every document, then performs DoToWindow on every window in 
  17770. the application's free-window list. MacApp calls ForAllWindowsDo when it must 
  17771. apply some action to all currently existing windows. You can use this method in 
  17772. a similar fashion. 
  17773.  
  17774.  
  17775.  
  17776. æKY TApplication.GetActiveWindow
  17777. æD FUNCTION TApplication.GetActiveWindow: TWindow;
  17778. æFi UMacApp.p
  17779. æT METHOD 
  17780. æC GetActiveWindow returns the TWindow object that is the active application 
  17781. window. This method returns NIL if the front window is a desk accessory or a floating 
  17782. window, is not active, is not shown, or is NIL. MacApp calls GetActiveWindow 
  17783. in a wide variety of situations ranging from setting up menus to handling 
  17784. commands and debugging. You can call this method when you need a reference to the 
  17785. active TWindow object. 
  17786.  
  17787.  
  17788.  
  17789. æKY TApplication.GetDataToPaste
  17790. æD FUNCTION TApplication.GetDataToPaste(aDataHandle: Handle;  
  17791.   VAR dataType: ResType): LONGINT;
  17792. æFi UMacApp.p
  17793. æT METHOD 
  17794. æC GetDataToPaste ensures that the clipboard view actually exists and contains data 
  17795. of a resource type that the application is able to paste. If these conditions 
  17796. are met, GetDataToPaste stores the current desk scrap into the specified handle 
  17797. by calling TView.GivePasteData; it also returns the paste data's size in bytes 
  17798. and its resource type. If the call to GivePasteData fails, it returns a 
  17799. negative value; GetDataToPaste returns this negative value as its error code. This 
  17800. negative value is either the constant noTypeErr (-102), which specifies that 
  17801. there was no data of the requested type, or an operating system result code. The 
  17802. aDataHandle parameter is an empty handle that you allocate and pass to this 
  17803. method to use for Clipboard data. The data may be cut or copied from your 
  17804. application, or it may be read from the desk scrap. GetDataToPaste returns the 
  17805. resource type to be used for this particular paste operation in the dataType parameter, 
  17806. which is set equal to the value of the global variable gPrefClipType. The global 
  17807. routine CanPaste sets the value of gPrefClipType; your application should set 
  17808. gPrefClipType by passing its preferred data type to CanPaste. MacApp calls this 
  17809. method from methods that implement the Paste command. You can use this method 
  17810. in a similar fashion. For more detailed information, see the discussion of 
  17811. supporting the Paste command in the MacApp 2.0 Cookbook. 
  17812.  
  17813.  
  17814.  
  17815. æKY TApplication.GetEvent
  17816. æD FUNCTION TApplication.GetEvent(eventMask: INTEGER; sleep: LONGINT;  
  17817.   cursorRgn: RgnHandle;  VAR anEvent: EventRecord): BOOLEAN;
  17818. æFi UMacApp.p
  17819. æT METHOD 
  17820. æC GetEvent gets events from the system by calling WaitNextEvent or GetNextEvent 
  17821. with the specified event mask, sleep, and cursor region parameters. GetEvent 
  17822. returns the Boolean result of its call to GetNextEvent or WaitNextEvent. A return 
  17823. value of FALSE indicates that the system handled the event; a value of TRUE 
  17824. indicates that the application object must handle the event. Because MacApp 
  17825. dispatches most events to the appropriate handlers for you, a return result of TRUE 
  17826. does not necessarily mean that your application object must take special action 
  17827. to handle the event. Only alien events (network events or special-purpose events 
  17828. of your own creation) require specific event-handling behavior from your 
  17829. application object. The eventMask parameter indicates the type of events that 
  17830. GetEvent can return; its value is usually gMainEventMask. The sleep parameter 
  17831. specifies the minimum number of ticks that can elapse before MultiFinder returns 
  17832. control to the application when no events are pending. The cursorRgn parameter is a 
  17833. handle to a region in which the cursor's shape does not change. This region is 
  17834. specified in screen coordinates. The parameter anEvent is the event this method 
  17835. returns from the Toolbox event record. MacApp calls GetEvent as part of the 
  17836. main event loop as well as to obtain update and activate events. You usually do 
  17837. not need to call this method yourself, unless your application must immediately 
  17838. handle events of a type that is outside the scope of the main event loop, as 
  17839. MacApp does in the method TWindow.HandleMouseDown. You can override this method 
  17840. to get events from another source. 
  17841.  
  17842.  
  17843.  
  17844. æKY TApplication.GetFrontWindow
  17845. æD FUNCTION TApplication.GetFrontWindow: TWindow;
  17846. æFi UMacApp.p
  17847. æT METHOD 
  17848. æC GetFrontWindow returns the TWindow object that is the frontmost application 
  17849. window (whether active or not). This method returns NIL if the front window is a 
  17850. desk accessory or a floating window, is not shown, or is NIL. GetFrontWindow and 
  17851. GetActiveWindow do the same thing except that GetFrontWindow does not test 
  17852. whether the window is active. MacApp calls GetFrontWindow from 
  17853. TApplication.HandleSystemEvent and TDebugApplication.HandleSystemEvent. You can call 
  17854. this method when you need a reference to the frontmost (but not necessarily active) 
  17855. TWindow object. 
  17856.  
  17857.  
  17858.  
  17859. æKY TApplication.GetInspectorName
  17860. æD PROCEDURE TApplication.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  17861.  
  17862. æFi UMacApp.p
  17863. æT METHOD 
  17864. æC GetInspectorName retrieves the name of the TApplication object for display in 
  17865. the Inspector window. When the method returns, the inspectorName parameter 
  17866. contains the name of the TApplication object. MacApp calls GetInspectorName from the 
  17867. Inspector. You usually do not need to call this method yourself. 
  17868.  
  17869.  
  17870.  
  17871. æKY TApplication.GetLastCommand
  17872. æD FUNCTION TApplication.GetLastCommand: TCommand; OVERRIDE;
  17873.  
  17874.  
  17875. æFi UMacApp.p
  17876. æT METHOD 
  17877. æC GetLastCommand returns the last undoable command. The command returned is not 
  17878. yet committed. MacApp calls GetLastCommand to obtain the last undoable command. 
  17879. You usually do not need to call this method. 
  17880.  
  17881.  
  17882.  
  17883. æKY TApplication.GetNextCommand
  17884. æD FUNCTION TApplication.GetNextCommand: TCommand; OVERRIDE;
  17885. æFi UMacApp.p
  17886. æT METHOD 
  17887. æC GetNextCommand returns a command previously posted by TApplication.PostCommand , 
  17888. or NIL if there are no queued commands. TApplication.PollEvent calls this 
  17889. method to retrieve queued commands. You probably will not need to call this method. 
  17890.  
  17891.  
  17892.  
  17893.  
  17894. æKY TApplication.GetRsrcWindow
  17895. æD FUNCTION TApplication.GetRsrcWindow(storage: Ptr; rsrcId: INTEGER; 
  17896.   VAR isResizable, isClosable: BOOLEAN): WindowPtr;
  17897. æFi UMacApp.p
  17898. æT METHOD 
  17899. æC GetRsrcWindow returns a pointer to a Window Manger window resource having the 
  17900. specified resource ID. This method also returns values for isResizable and 
  17901. isClosable according to the values defined in the 'WIND' resource. Regardless of the 
  17902. visibility specified in the 'WIND' resource, the new window is created 
  17903. invisibly to avoid flashing the screen. Even though this method creates a permanent 
  17904. window, the memory is allocated from temporary memory to ensure that QuickDraw's 
  17905. request for a grafPort does not fail. Because the request for tempoary memory 
  17906. can affect the size of the low-space and code reserve, GetRsrcWindow checks the 
  17907. size of the reserve and signals Failure with an error code of memFullErr if the 
  17908. creation of the new window has caused the size of the reserve to become less 
  17909. than that specified in the private global variable pSzCodeReserve. The storage 
  17910. parameter is a pointer to the window pointer's record, or NIL if this record is 
  17911. dynamically allocated. The rsrcId parameter is the resource ID of the 'WIND' 
  17912. resource. The value of the isResizable parameter is TRUE if the window has a size 
  17913. box. The value of the isClosable parameter is TRUE if the window has a close 
  17914. box. MacApp calls GetRsrcWindow from TInspectWindow.IInspectWindow and from the 
  17915. global routine NewTWindow to create a window pointer from a 'WIND' resource. You 
  17916. usually do not need to call this method yourself; it is preferable to call the 
  17917. global routine NewTWindow instead. 
  17918.  
  17919.  
  17920.  
  17921. æKY TApplication.HandleActivateEvent
  17922. æD FUNCTION TApplication.HandleActivateEvent(VAR theEventInfo: EventInfo): TCommand;
  17923. æFi UMacApp.p
  17924. æT METHOD 
  17925. æC HandleActivateEvent handles activate and deactivate events, calling the window's 
  17926. Activate method with the parameters specified in the Toolbox event record for 
  17927. the activate event. This method returns NIL. The parameter theEventInfo is the 
  17928. information from the Toolbox event record for the activate event. MacApp calls 
  17929. this method from TApplication.DispatchEvent to handle activate events. You 
  17930. usually do not need to call this method yourself. 
  17931.  
  17932.  
  17933.  
  17934. æKY TApplication.HandleAlienEvent
  17935. æD FUNCTION TApplication.HandleAlienEvent(VAR theEventInfo: EventInfo): TCommand;
  17936. æFi UMacApp.p
  17937. æT METHOD 
  17938. æC HandleAlienEvent returns a TCommand object to handle "alien" events, which are 
  17939. network events and application-specific events. The parameter theEventInfo is 
  17940. the the Toolbox event record description of the event to be handled. 
  17941. HandleAlienEvent is called from TApplication.DispatchEvent when the event is not one 
  17942. normally handled by MacApp. You usually do not need to call this method yourself. 
  17943. HandleAlienEvent calls TEvtHandler.DoHandleEvent, which by default returns FALSE 
  17944. without passing the event record information back to its caller; you must 
  17945. override TEvtHandler.DoHandleEvent to implement useful behavior in HandleAlienEvent. 
  17946. Your override method should return NIL for events it cannot handle. 
  17947.  
  17948.  
  17949.  
  17950. æKY TApplication.HandleDiskEvent
  17951. æD FUNCTION TApplication.HandleDiskEvent(VAR theEventInfo: EventInfo): TCommand;
  17952. æFi UMacApp.p
  17953. æT METHOD 
  17954. æC HandleDiskEvent handles disk-inserted events and returns NIL. This method also 
  17955. calls the Toolbox routine DIBadMount if the high word of the event message is 
  17956. equal to any value besides noErr. The parameter theEventInfo is the information 
  17957. from the Toolbox event record describing the event. MacApp calls HandleDiskEvent 
  17958. from TApplication.DispatchEvent and TDebugApplication.DispatchEvent to handle 
  17959. an event of type diskEvt. You usually do not need to call this method yourself. 
  17960.  
  17961.  
  17962.  
  17963.  
  17964. æKY TApplication.HandleEvent
  17965. æD PROCEDURE TApplication.HandleEvent(VAR theEvent: EventRecord);
  17966. æFi UMacApp.p
  17967. æT METHOD 
  17968. æC HandleEvent does much of the work of the main event loop, dispatching events as 
  17969. they are passed to it by the system. The parameter theEvent is the information 
  17970. from the Toolbox event record describing the event. MacApp calls this method in 
  17971. the main event loop from TApplication.PollEvent, from TApplication.UpdateAllWindows to 
  17972. handle window update events, and from TWindow.HandleMouseDown to process pending 
  17973. window activations and deactivations. You usually do not need to call this method 
  17974. yourself, unless you need to immediately handle events of a type that is outside the 
  17975. scope of the main event loop, as is done by TWindow.HandleMouseDown. 
  17976.  
  17977.  
  17978.  
  17979. æKY TApplication.HandleFinderRequest
  17980. æD PROCEDURE TApplication.HandleFinderRequest;
  17981. æFi UMacApp.p
  17982. æT METHOD 
  17983. æC HandleFinderRequest gets information from the Finder about which files to open 
  17984. or print, and then opens or prints them. MacApp calls this method from 
  17985. TApplication.Run before processing any events. You usually do not need to call this 
  17986. method yourself. 
  17987.  
  17988.  
  17989.  
  17990. æKY TApplication.HandleKeyDownEvent
  17991. æD FUNCTION TApplication.HandleKeyDownEvent(VAR theEventInfo: EventInfo): TCommand;
  17992. æFi UMacApp.p
  17993. æT METHOD 
  17994. æC HandleKeyDownEvent processes keyboard events, returning the appropriate TCommand 
  17995. object to handle the keyboard event. If the Command key is pressed when this 
  17996. method receives the keyboard event, it returns gTarget.DoCommandKey; otherwise, 
  17997. it returns gTarget.DoKeyCommand. The parameter theEventInfo is the information 
  17998. from the Toolbox event record describing the event. MacApp calls this method 
  17999. from TApplication.DispatchEvent when it receives a keyboard or auto-key event. 
  18000. You usually do not need to call this method yourself. 
  18001.  
  18002.  
  18003.  
  18004. æKY TApplication.HandleMouseDown
  18005. æD FUNCTION TApplication.HandleMouseDown(VAR theEventInfo: EventInfo): TCommand;
  18006. æFi UMacApp.p
  18007. æT METHOD 
  18008. æC HandleMouseDown determines the location of the mouse-down event and calls the 
  18009. appropriate event handler. If the mouse-down event occurs in the menu bar or the 
  18010. window’s content area, HandleMouseDown returns the appropriate TCommand object 
  18011. to handle the command; otherwise, it returns NIL. If the mouse-down event is in 
  18012. a desk accessory, this method calls the Toolbox routine systemClick to handle 
  18013. the event and returns NIL. The parameter theEventInfo is the information from 
  18014. the Toolbox event record describing the mouse-down event that caused this method 
  18015. to be called. MacApp calls this method from TApplication.DispatchEvent when it 
  18016. receives a mouse-down event from the system. You usually do not need to call 
  18017. this method yourself. 
  18018.  
  18019.  
  18020.  
  18021. æKY TApplication.HandleMouseUp
  18022. æD FUNCTION TApplication.HandleMouseUp(VAR theEventInfo: EventInfo): TCommand;
  18023. æFi UMacApp.p
  18024. æT METHOD 
  18025. æC HandleMouseUp sets the value of gEventInfo.theClickCount to gClickCount and also 
  18026. sets the value of gLastUpTime. HandleMouseUp returns NIL. The parameter 
  18027. theEventInfo is the information from the Toolbox event record describing the mouse-up 
  18028. event. MacApp calls this method from TApplication.DispatchEvent when it 
  18029. receives a mouse-up event from the system. You usually do not need to call this 
  18030. method yourself. 
  18031.  
  18032.  
  18033.  
  18034. æKY TApplication.HandleSystemEvent
  18035. æD FUNCTION TApplication.HandleSystemEvent(VAR theEventInfo: EventInfo): TCommand;
  18036. æFi UMacApp.p
  18037. æT METHOD 
  18038. æC HandleSystemEvent handles system events, in particular suspend events, resume 
  18039. events, and mouse-moved events. It calls TApplication.RegainControl if control 
  18040. passes to the TApplication object from some other application; it calls 
  18041. TApplication.AboutToLoseControl if control switches to another application; or it 
  18042. calls TApplication.TrackCursor if a mouse-moved event occurs. The method returns NIL. 
  18043. The parameter theEventInfo is the information from the Toolbox event record 
  18044. describing the system event. MacApp calls this method from TApplication.DispatchEvent 
  18045. when it receives an event from the System. You usually do not need to call this 
  18046. method yourself. 
  18047.  
  18048.  
  18049.  
  18050. æKY TApplication.HandleUpdateEvent
  18051. æD FUNCTION TApplication.HandleUpdateEvent(VAR theEventInfo: EventInfo): TCommand;
  18052. æFi UMacApp.p
  18053. æT METHOD 
  18054. æC HandleUpdateEvent calls TWindow.Update for the specified window and returns NIL. 
  18055. The parameter theEventInfo is the information from the Toolbox event record 
  18056. describing the window update event. MacApp calls this method from 
  18057. TApplication.DispatchEvent when it receives an update event from the system. You 
  18058. usually do not need to call this method yourself. 
  18059.  
  18060.  
  18061.  
  18062. æKY TApplication.IApplication
  18063. æD PROCEDURE TApplication.IApplication(itsMainFileType: OSType);
  18064. æFi UMacApp.p
  18065. æT METHOD 
  18066. æC IApplication initializes the TApplication object, setting up the object’s fields 
  18067. so that the application can run. The itsMainFileType parameter is the 4-byte 
  18068. identifier specifying the file type that this application reads and writes. The 
  18069. file type is required here so that you need not override 
  18070. TApplication.SFGetParms to supply the type there. TApplication.SFGetParms is the only 
  18071. place the main file type is used; if your application can open more than one file type, 
  18072. you must override TApplication.SFGetParms. MacApp never calls IApplication; you must 
  18073. always call this method from the TYourApplication.IYourApplication method that 
  18074. you implement. 
  18075.  
  18076.  
  18077.  
  18078. æKY TApplication.IdentifySoftware
  18079. æD PROCEDURE TApplication.IdentifySoftware; OVERRIDE;
  18080. æFi UMacApp.p
  18081. æT METHOD 
  18082. æC IdentifySoftware writes version information for the UMacApp and UObject units to 
  18083. the Debug Transcript window. If the value of the qDebug flag is TRUE, this 
  18084. method also writes version information for the UDebug unit to the Debug Transcript 
  18085. window. IdentifySoftware is called from the MacApp debugger when the user 
  18086. chooses the Show Software Version command from the Debug menu. You usually do not 
  18087. need to call this method yourself. You can override it to add further 
  18088. information to the debug transcript. 
  18089.  
  18090.  
  18091.  
  18092. æKY TApplication.Idle
  18093. æD PROCEDURE TApplication.Idle(phase: IdlePhase);
  18094. æFi UMacApp.p
  18095. æT METHOD 
  18096. æC Idle calls the DoIdle method of each handler in the target and cohandler chains; 
  18097. it also displays the busy cursor when the application is temporarily unable to 
  18098. respond to user commands. The phase parameter has the value idleBegin, 
  18099. idleContinue, or idleEnd depending on whether the application has yet to begin its 
  18100. idle-time tasks, is processing them, or has completed them. MacApp calls Idle from 
  18101. TApplication.GetEvent and TApplication.PollEvent to allow objects to do 
  18102. idle-time processing. You usually do not need to override or call this method 
  18103. yourself. If you wish to execute other tasks at idle time you must override the 
  18104. appropriate event handler's DoIdle method. 
  18105.  
  18106.  
  18107.  
  18108. æKY TApplication.InModalMenuState
  18109. æD FUNCTION TApplication.InModalMenuState: BOOLEAN;
  18110. æFi UMacApp.p
  18111. æT METHOD 
  18112. æC InModalMenuState returns the value TRUE if the frontmost window does not allow 
  18113. access to other windows or to menu commands. MacApp calls this method when the 
  18114. user attempts to choose a menu either with the mouse or with a Command-key 
  18115. sequence. You usually do not need to call this method yourself, nor do you need to 
  18116. override it; if you need to prevent menu access while modal windows are active, 
  18117. you should override the window's AllowsMenuAccess method. 
  18118.  
  18119.  
  18120.  
  18121. æKY TApplication.InModalState
  18122. æD FUNCTION TApplication.InModalState: BOOLEAN;
  18123. æFi UMacApp.p
  18124. æT METHOD 
  18125. æC InModalState returns TRUE if the front window is modal. This method is the same 
  18126. as TApplication.InModalMenuState except that it allows menu access when the 
  18127. front window is modal. MacApp calls InModalState to determine whether the 
  18128. application is in a modal state; typically, this is when the user clicks outside the 
  18129. active window and outside the menu bar. This method is also called from 
  18130. TApplication.SetupTheMenus to determine whether to enable or disable the Apple menu. 
  18131. You usually do not need to call this method yourself; however, you can do so to 
  18132. determine whether the application is in a modal state. 
  18133.  
  18134.  
  18135.  
  18136. æKY TApplication.InstallCohandler
  18137. æD PROCEDURE TApplication.InstallCohandler(aCohandler: TEvtHandler; addIt: BOOLEAN);
  18138. æFi UMacApp.p
  18139. æT METHOD 
  18140. æC InstallCohandler adds a cohandler to or deletes a cohandler from the 
  18141. application's list of cohandlers. The aCohandler parameter is the event handler to be 
  18142. added or deleted. If the value of the addIt parameter is TRUE, the cohandler is 
  18143. added to the list; otherwise, it is deleted. MacApp never calls this method; you 
  18144. can use it to install and remove event handlers in the application's list of 
  18145. cohandlers.TApplication 
  18146.  
  18147.  
  18148.  
  18149. æKY TApplication.InvalidateCursorRgn
  18150. æD PROCEDURE TApplication.InvalidateCursorRgn;
  18151.  
  18152. æFi UMacApp.p
  18153. æT METHOD 
  18154. æC This method invalidates the cursor region; MultiFinder uses this information to 
  18155. determine that it should notify your application that the mouse has moved and 
  18156. some application-specific action must take place—for instance, a response to a 
  18157. user action that caused the mouse to move. When the application is not using 
  18158. MultiFinder, the invalid cursor region is used to give all subviews a chance to 
  18159. set the cursor. MacApp calls this method to cause the cursor region to be 
  18160. recomputed when resizing or displaying windows, when displaying dialog boxes, and when 
  18161. control is returned to the application from another layer in the MultiFinder 
  18162. environment. You can use this method to destroy the previous structure of the 
  18163. cursor region and set gCursorRgn to the empty region (0,0,0,0). 
  18164.  
  18165.  
  18166.  
  18167. æKY TApplication.InvalidateFocus
  18168. æD PROCEDURE TApplication.InvalidateFocus;
  18169. æFi UMacApp.p
  18170. æT METHOD 
  18171. æC InvalidateFocus calls TView.InvalidateFocus for the currently focused view and 
  18172. all of its subviews, then sets the value of gFocusedView to NIL. MacApp calls 
  18173. this method from various methods that manipulate views. You can use this method 
  18174. to "unfocus" the currently focused view. 
  18175.  
  18176.  
  18177.  
  18178. æKY TApplication.IsDeskAccessory
  18179. æD FUNCTION TApplication.IsDeskAccessory(aWmgrWindow: WindowPtr): BOOLEAN;
  18180. æFi UMacApp.p
  18181. æT METHOD 
  18182. æC IsDeskAccessory returns the value TRUE if the specified Window Manager window is 
  18183. a desk accessory. MacApp assumes that any window with a negative windowKind is 
  18184. a desk accessory. The aWMgrWindow parameter is a pointer to the Window Manager 
  18185. window to be tested. MacApp calls this method from several methods that 
  18186. manipulate windows, including TApplication.CloseWMgrWindow, 
  18187. TApplication.PostHandleEvent, and TApplication.WMgrToWindow. You usually do not need 
  18188. to call this method yourself, because in MacApp you most often work with references 
  18189. to TWindow objects rather than pointers to Window Manager windows. You can call this 
  18190. method, however, if you want to know whether a Window Manager window pointer 
  18191. represents a desk accessory. 
  18192.  
  18193.  
  18194.  
  18195. æKY TApplication.KeyEventToComponents
  18196. æD PROCEDURE TApplication.KeyEventToComponents(VAR info: EventInfo); OVERRIDE;
  18197. æFi UMacApp.p
  18198. æT METHOD 
  18199. æC KeyEventToComponents extracts the character components of a key event using 
  18200. techniques compatible with the Script Manager. The info parameter is the event 
  18201. record description of the event. TApplication.HandleKeyDownEvent calls this method 
  18202. to obtain the character and ASCII key code information. You usually do not need 
  18203. to call this method yourself. 
  18204.  
  18205.  
  18206.  
  18207. æKY TApplication.KindOfDocument
  18208. æD FUNCTION TApplication.KindOfDocument(itsCmdNumber: CmdNumber; 
  18209.   itsAppFilePtr: AppFilePtr): CmdNumber;
  18210.  
  18211. æFi UMacApp.p
  18212. æT METHOD 
  18213. æC KindOfDocument returns the command number to be passed to DoMakeDocument when 
  18214. creating a document; the command number indicates the type of document to create. 
  18215. The default method returns itsCmdNumber. The itsCmdNumber parameter can be a 
  18216. command number passed by DoMenuCommand or a command constant. Possible command 
  18217. constant values used by KindOfDocument include cFinderNew, cFinderPrint, or 
  18218. cFinderOpen. The command number is used in the 'cmnu' resource in the resource 
  18219. description file; you typically define a constant to represent that number in both 
  18220. the resource description file and in the appropriate interface or 
  18221. implementation file of the application. The itsAppFilePtr parameter is a pointer to an 
  18222. AppFile record or NIL. The reference itsAppFilePtr^.fileType specifies the 
  18223. 4-character document file type used when opening existing files; when creating a new 
  18224. document, the itsAppFilePtr parameter is NIL. MacApp calls this method to create 
  18225. TDocument objects used when opening new or old files and when printing from the 
  18226. Finder. You usually do not need to call this method yourself; however, you must 
  18227. override it if your application uses more than one kind of document. Your 
  18228. implementation of this method uses the itsAppFilePtr parameter to determine what 
  18229. kind of document object should be created. The command number you return is 
  18230. normally the same as that returned if the New or Open menu command was chosen. (In 
  18231. applications with multiple document types, you usually have different New or 
  18232. Open menu commands for different document types.) By using different command 
  18233. numbers for different kinds of documents, your application's DoMakeDocument method 
  18234. can make different kinds of documents according to the command number it 
  18235. receives. 
  18236.  
  18237.  
  18238.  
  18239. æKY TApplication.LaunchClipboard
  18240. æD PROCEDURE TApplication.LaunchClipboard;
  18241. æFi UMacApp.p
  18242. æT METHOD 
  18243. æC LaunchClipboard creates the view used as the Clipboard and places the current 
  18244. contents of the desk scrap in it. TApplication.Run calls this method before the 
  18245. main event loop. You usually do not need to call this method yourself. 
  18246.  
  18247.  
  18248.  
  18249. æKY TApplication.MainEventLoop
  18250. æD PROCEDURE TApplication.MainEventLoop;
  18251. æFi UMacApp.p
  18252. æT METHOD 
  18253. æC MainEventLoop is the main event loop of the application. It repeatedly calls 
  18254. TApplication.UnloadAllSegments and the global routine PollEvent, dispatching 
  18255. user-generated events to appropriate handlers until the user quits the application 
  18256. MacApp calls MainEventLoop from TApplication.Run. You usually do not need to 
  18257. override this method or call it yourself. 
  18258.  
  18259.  
  18260.  
  18261. æKY TApplication.MakeClipboardWindow
  18262. æD FUNCTION TApplication.MakeClipboardWindow: TWindow;
  18263. æFi UMacApp.p
  18264. æT METHOD 
  18265. æC MakeClipboardWindow creates the Clipboard window and associated views. MacApp 
  18266. calls MakeClipboardWindow from TApplication.IApplication. You usually do not need 
  18267. to call this method yourself. 
  18268.  
  18269.  
  18270.  
  18271. æKY TApplication.MakeViewForAlienClipboard
  18272. æD FUNCTION TApplication.MakeViewForAlienClipboard: TView;
  18273. æFi UMacApp.p
  18274. æT METHOD 
  18275. æC MakeViewForAlienClipboard creates a view (gClipOrphanage) used to display data 
  18276. that is in the public desk scrap when your application is launched or when 
  18277. control is returned to your application from a desk accessory or another 
  18278. application. The default method creates a view capable of displaying TEXT or PICT 
  18279. data; you can override this method to create views that display other types of data. 
  18280. MacApp calls your OVERRIDE version of MakeViewForAlienClipboard from 
  18281. TApplication.ReadFromDeskScrap to create a view that can display data types particular 
  18282. to your application. Your override method should call INHERITED 
  18283. MakeViewForAlienClipboard to display PICT or TEXT data. You can call this method to 
  18284. create a clipboard view capable of displaying data particular to your application, or 
  18285. call its inherited method to display PICT or TEXT data. 
  18286.  
  18287.  
  18288.  
  18289. æKY TApplication.MenuEvent
  18290. æD FUNCTION TApplication.MenuEvent(menuItem: LONGINT): TCommand;
  18291. æFi UMacApp.p
  18292. æT METHOD 
  18293. æC MenuEvent calls gTarget.DoMenuCommand and returns a command object according to 
  18294. the value of the menuItem parameter. The menuItem parameter is a LONGINT value 
  18295. specifying the menu number and the item number. The high word of this value 
  18296. specifies the number of the menu that contains the item chosen and the low word 
  18297. specifies the number of the item chosen from the menu. MacApp calls MenuEvent 
  18298. from TApplication.DoCommandKey or TApplication.HandleMouseDown when the user 
  18299. chooses a menu command. You usually do not have to call this method yourself. 
  18300.  
  18301.  
  18302.  
  18303. æKY TApplication.OpenDeskAccessory
  18304. æD PROCEDURE TApplication.OpenDeskAccessory(deskAccName: Str255);
  18305. æFi UMacApp.p
  18306. æT METHOD 
  18307. æC OpenDeskAccessory attempts to open the specified desk accessory. The deskAccName 
  18308. parameter is the string naming the desk accessory to be opened. MacApp calls 
  18309. OpenDeskAccessory from TApplication.MenuEvent when the user chooses a desk 
  18310. accessory from the Apple menu. You usually do not need to call this method yourself. 
  18311.  
  18312.  
  18313.  
  18314.  
  18315. æKY TApplication.OpenNew
  18316. æD PROCEDURE TApplication.OpenNew(itsCmdNumber: CmdNumber);
  18317. æFi UMacApp.p
  18318. æT METHOD 
  18319. æC OpenNew creates a new blank document and the views, including windows, necessary 
  18320. to render it on the screen. The itsCmdNumber parameter specifies the kind of 
  18321. document to be created. The command number is used in the 'cmnu' resource in the 
  18322. resource description file; you typically define a constant to represent that 
  18323. number in both the resource description file and in the appropriate interface or 
  18324. implementation file of the application. MacApp calls OpenNew when the 
  18325. application is opened or when the user chooses the New menu item. You usually do not 
  18326. need to call this method yourself unless you want to implement a nonstandard way 
  18327. of creating a new document. If you do not want to create a new document when 
  18328. the user opens the application, set the value of the fLaunchWithNewDocument field 
  18329. to FALSE in your TYourApplication.IYourApplication method after it calls 
  18330. TApplication.IApplication, which sets this field to TRUE. 
  18331.  
  18332.  
  18333.  
  18334. æKY TApplication.OpenOld
  18335. æD PROCEDURE TApplication.OpenOld(itsOpenCmd: CmdNumber; anAppFile: AppFile);
  18336. æFi UMacApp.p
  18337. æT METHOD 
  18338. æC OpenOld opens an existing document and creates the views, including windows, 
  18339. necessary to render it on the screen. The itsOpenCmd is the command number that 
  18340. specifies whether the document was opened from the Finder, from the File menu 
  18341. with the Open menu command, or for printing only. If the user double-clicks on the 
  18342. document in the Finder, then itsOpenCmd equals cFinderOpen; if the document is 
  18343. opened from the File menu, then itsOpenCmd equals cOpen; and if the document 
  18344. is opened from the Finder for printing only, then itsOpenCmd equals 
  18345. cFinderPrint. The anAppFile parameter specifies the file to be read when opening an 
  18346. existing file. MacApp calls OpenOld when the TApplication object opens an existing 
  18347. document. You usually do not need to call this method yourself. 
  18348.  
  18349.  
  18350.  
  18351. æKY TApplication.PerformCommand
  18352. æD PROCEDURE TApplication.PerformCommand(command: TCommand); OVERRIDE;
  18353. æFi UMacApp.p
  18354. æT METHOD 
  18355. æC PerformCommand carries out different actions depending on whether the command 
  18356. passed to it in the command parameter is a simple or complex command. 
  18357. PerformCommand executes simple commands by calling the command’s DoIt method; if the 
  18358. command’s fFreeOnCompletion field has the value TRUE, this method frees the command 
  18359. after it is completed. PerformCommand executes complex commands by committing 
  18360. the last complex command and calling the new command object's DoIt method. If 
  18361. DoIt succeeds, then PerformCommand also updates the document’s fChangeCount 
  18362. field. If the command object’s fFreeOnCompletion field has the value TRUE, the 
  18363. command is freed upon completion of PerformCommand. The command parameter is the 
  18364. TCommand object created to perform the command. The command parameter can pass 
  18365. either simple or complex commands to this method. PerformCommand is called by the 
  18366. TApplication methods HandleEvent and PollEvent. You usually do not need to call 
  18367. this method yourself. 
  18368.  
  18369.  
  18370.  
  18371. æKY TApplication.PollEvent
  18372. æD PROCEDURE TApplication.PollEvent(allowApplicationToSleep: BOOLEAN);
  18373.  
  18374. æFi UMacApp.p
  18375. æT METHOD 
  18376. æC PollEvent dispatches pending events, performs queued commands, and calls the 
  18377. DoIdle method of each handler in the target and cohandler chains. The 
  18378. allowApplicationToSleep parameter, if set to TRUE (kAllowApplicationToSleep), 
  18379. specifies that, if no events are pending, the application is suspended - that is, it 
  18380. will not idle - for the time determined by a composite of the fIdleFreq fields of all 
  18381. event handlers in the active chain and in the cohandler chain. If the 
  18382. allowApplicationToSleep parameter is FALSE, the application can idle any time that 
  18383. there are no events in the queue. PollEvent is called by TApplication.MainEventLoop. 
  18384. You do not normally call or override either MainEventLoop or PollEvent 
  18385. yourself; however you could call PollEvent during a lengthy operation to give 
  18386. processor time to other applications running in the MultiFinder environment. 
  18387.  
  18388.  
  18389.  
  18390. æKY TApplication.PostCommand
  18391. æD PROCEDURE TApplication.PostCommand(command: TCommand); OVERRIDE;
  18392. æFi UMacApp.p
  18393. æT METHOD 
  18394. æC PostCommand posts the specified command to a command queue for later execution. 
  18395. The command parameter is the TCommand object to be posted to the queue. You 
  18396. call this method to post a command to a command queue. 
  18397.  
  18398.  
  18399.  
  18400. æKY TApplication.PostHandleEvent
  18401. æD PROCEDURE TApplication.PostHandleEvent(VAR theEventInfo: EventInfo);
  18402. æFi UMacApp.p
  18403. æT METHOD 
  18404. æC PostHandleEvent performs certain housekeeping functions after MacApp handles an 
  18405. event in TApplication.HandleEvent. If the menu bar needs to be redrawn, then 
  18406. PostHandleEvent does so. PostHandleEvent also determines if control is about to 
  18407. pass to another application or a desk accessory; if so, it calls 
  18408. AboutToLoseControl. This method also calls RegainControl when control passes back to 
  18409. the application. The parameter theEventInfo is the event record for the event being 
  18410. handled. MacApp calls PostHandleEvent from HandleEvent. You usually do not need to 
  18411. call this method yourself. 
  18412.  
  18413.  
  18414.  
  18415. æKY TApplication.PrintDocument
  18416. æD FUNCTION TApplication.PrintDocument(anAppFile: AppFile): BOOLEAN;
  18417. æFi UMacApp.p
  18418. æT METHOD 
  18419. æC When printing multiple documents from the Finder, PrintDocument returns the 
  18420. value TRUE as long as the user does not cancel printing. The anAppFile parameter 
  18421. specifies the file to be printed next, according to the method 
  18422. TApplication.HandleFinderRequest. PrintDocument is called by 
  18423. TApplication.HandleFinderRequest 
  18424. when the user prints documents in the Finder. You usually do not need to call this 
  18425. method yourself. 
  18426.  
  18427.  
  18428.  
  18429. æKY TApplication.ReadFromDeskScrap
  18430. æD PROCEDURE TApplication.ReadFromDeskScrap;
  18431. æFi UMacApp.p
  18432. æT METHOD 
  18433. æC ReadFromDeskScrap installs the contents of the desk scrap in the Clipboard view. 
  18434. MacApp calls ReadFromDeskScrap when launching the application and when the 
  18435. desk scrap changes. You usually do not need to call ReadFromDeskScrap yourself; it 
  18436. is preferable to call TApplication.CheckDeskScrap. 
  18437.  
  18438.  
  18439.  
  18440. æKY TApplication.RegainControl
  18441. æD PROCEDURE TApplication.RegainControl(checkClipboard: BOOLEAN);
  18442. æFi UMacApp.p
  18443. æT METHOD 
  18444. æC RegainControl activates the busy cursor mechanism and, if requested, installs 
  18445. the desk scrap in the current clipboard view. If the checkClipboard parameter has 
  18446. the value TRUE and the desk scrap has changed, this method calls 
  18447. TApplication.CheckDeskScrap to install the desk scrap in the current clipboard view. 
  18448. RegainControl is called when control passes back to the application from a desk 
  18449. accessory or another layer in the MultiFinder environment. 
  18450.  
  18451.  
  18452.  
  18453. æKY TApplication.ReportEvent
  18454. æD PROCEDURE TApplication.ReportEvent(VAR theEvent: EventRecord);
  18455. æFi UMacApp.p
  18456. æT METHOD 
  18457. æC ReportEvent displays information about an event in the Debug Transcript window. 
  18458. The parameter theEvent is the event that this method reports. ReportEvent is 
  18459. called only in applications compiled with debugging code included. In these 
  18460. applications, this method is called by TApplication.HandleEvent whenever an event is 
  18461. dispatched. You usually do not need to call this method yourself. 
  18462.  
  18463.  
  18464.  
  18465. æKY TApplication.Run
  18466. æD PROCEDURE TApplication.Run;
  18467. æFi UMacApp.p
  18468. æT METHOD 
  18469. æC Run sets up and maintains the application's runtime environment. When the 
  18470. application is opened normally, Run creates the Clipboard view, calls 
  18471. HandleFinderRequest and then calls MainEventLoop; when the application is opened only 
  18472. to print from the Finder, Run loads the segment containing the printing code, calls 
  18473. TApplication.HandleFinderRequest to do the printing, and then calls Close. If the 
  18474. user is quitting the application or switching to another layer in the 
  18475. MultiFinder environment, Run calls the TApplication method AboutToLoseControl. In 
  18476. between calls to HandleFinderRequest and MainEventLoop, Run attempts to maximize 
  18477. available memory by calling the global routine UnloadAllSegments. MacApp does not 
  18478. call Run. You must call Run to begin your application’s main processing. 
  18479.  
  18480.  
  18481.  
  18482. æKY TApplication.SelectWMgrWindow
  18483. æD PROCEDURE TApplication.SelectWMgrWindow(aWMgrWindow: WindowPtr);
  18484. æFi UMacApp.p
  18485. æT METHOD 
  18486. æC SelectWMgrWindow makes the specified Window Manager window the active window. It 
  18487. removes highlighting from the previously active window, makes the new active 
  18488. window the frontmost window, highlights the new active window, and generates the 
  18489. appropriate activate events. The aWMgrWindow parameter is a pointer to the 
  18490. WindowManager window associated with a TWindow object. MacApp calls 
  18491. SelectWMgrWindow from the methods TWindow.Select and TStdPrintHandler.DoPrintIdling to 
  18492. activate the Window Manager window associated with a TWindow object or to bring a 
  18493. print dialog window to the front. You usually do not need to call SelectWMgrWindow 
  18494. yourself; it is preferable to call TWindow.Select to activate the TWindow 
  18495. object associated with the Window Manager window. 
  18496.  
  18497.  
  18498.  
  18499. æKY TApplication.SetClipView
  18500. æD PROCEDURE TApplication.SetClipView(clipView: TView);
  18501. æFi UMacApp.p
  18502. æT METHOD 
  18503. æC SetClipView makes the specified view the Clipboard view. The clipView parameter 
  18504. is the view this method sets as gClipView. SetClipView is called by several 
  18505. methods that set the view to be used by the Clipboard. You can use this method in 
  18506. a similar fashion. 
  18507.  
  18508.  
  18509.  
  18510. æKY TApplication.SetTarget
  18511. æD PROCEDURE TApplication.SetTarget(newTarget: TEvtHandler);
  18512. æFi UMacApp.p
  18513. æT METHOD 
  18514. æC SetTarget sets the value of gTarget to the specified TEvtHandler object. The 
  18515. newTarget parameter is the object that is to be the head of the target chain. 
  18516. SetTarget is called by several methods that activate or free windows, objects, or 
  18517. views. You can use this method in similar fashion. 
  18518.  
  18519.  
  18520.  
  18521. æKY TApplication.SetUndoText
  18522. æD PROCEDURE TApplication.SetUndoText(cmdDone: BOOLEAN; aCmdNumber: CmdNumber);
  18523. æFi UMacApp.p
  18524. æT METHOD 
  18525. æC SetUndoText sets the text in the Undo menu item to Undo or Redo, followed by the 
  18526. name of the command. If the value of the cmdDone parameter is TRUE, the text 
  18527. reads Undo; otherwise, it reads Redo. The aCmdNumber parameter indicates the 
  18528. command that follows the Undo or Redo text in the menu item. SetUndoText is called 
  18529. by TApplication.SetupTheMenus. You usually do not need to call this method 
  18530. yourself. 
  18531.  
  18532.  
  18533.  
  18534. æKY TApplication.SetupTheMenus
  18535. æD PROCEDURE TApplication.SetupTheMenus;
  18536. æFi UMacApp.p
  18537. æT METHOD 
  18538. æC SetupTheMenus initiates the process of enabling and checking menu items. 
  18539. SetupTheMenus is called by several methods that can change the status of menu items. 
  18540. You usually do not need to call this method yourself. 
  18541.  
  18542.  
  18543.  
  18544. æKY TApplication.SFGetParms
  18545. æD PROCEDURE TApplication.SFGetParms(itsCmdNumber: CmdNumber; VAR dlgID: INTEGER; 
  18546.   VAR where: Point; VAR fileFilter, dlgHook, filterProc: ProcPtr; typeList: HTypeList);
  18547. æFi UMacApp.p
  18548. æT METHOD 
  18549. æC SFGetParms returns all the parameters used as arguments to the Toolbox procedure 
  18550. SFGetFile. The itsCmdNumber parameter is the command number of the command 
  18551. that caused SFGetParms to be called. The command number is used in the 'cmnu' 
  18552. resource in the resource description file; you typically define a constant to 
  18553. represent that number in both the resource description file and in the appropriate 
  18554. interface or implementation file of the application. The dlgID parameter is the 
  18555. resource ID of the dialog template used to compute the location of the Standard 
  18556. File dialog box; when the method returns, its default value is equal to 
  18557. getDlgID. (The value of the constant getDlgID is equal to the resource ID of the 
  18558. standard SFGetFile dialog box.) The where parameter specifies the location of the 
  18559. Standard File dialog box in global coordinates. When SFGetParms returns, the 
  18560. default value of the where parameter is (100,100). The fileFilter parameter is a 
  18561. pointer to a procedure that allows only files of a specified type to be 
  18562. displayed; when SFGetParms returns, the default value of the fileFilter parameter is 
  18563. equal to NIL. The dlgHook parameter is a pointer to a function that you write if 
  18564. you want to use your own dialog box instead of the standard SFGetFile dialog 
  18565. box, or if you want to handle any of the standard items in the SFGetFile dialog 
  18566. box in a nonstandard way; when SFGetParms returns, the default value of the 
  18567. dlgHook parameter is equal to NIL. The filterProc parameter is a pointer to a 
  18568. procedure that you write if you want to impose event filtering beyond that provided 
  18569. by the Toolbox routine ModalDialog; when SFGetParms returns, the default value 
  18570. of the filterProc parameter is equal to NIL. The typeList parameter is a handle 
  18571. to a list of main file types supported by the application. When you call 
  18572. SFGetParms, the typeList parameter must be a valid handle to a zero-length block; 
  18573. SFGetParms sets the handle size and fills in the value stored in the global 
  18574. variable gMainFileType. SFGetParms is called by the TApplication methods 
  18575. CanOpenDocument and ChooseDocument. You can override it to modify the behavior of the 
  18576. Standard File package; for example, to supply an extended type list or to implement 
  18577. your own filter procedure. 
  18578.  
  18579.  
  18580.  
  18581. æKY TApplication.ShowError
  18582. æD PROCEDURE TApplication.ShowError(error: OSErr; message: LONGINT);
  18583. æFi UMacApp.p
  18584. æT METHOD 
  18585. æC ShowError displays an alert box having the specified error number and message. 
  18586. The error parameter identifies the type of error that occurred. The message 
  18587. parameter specifies the error message to be displayed. MacApp calls ShowError to 
  18588. display certain standard messages in response to error conditions. You usually do 
  18589. not need to call ShowError yourself; if you wish to display an error to the 
  18590. user you can use the global routine ErrorAlert, which looks up the text string 
  18591. associated with an OSErr code and displays the text in an alert box. 
  18592.  
  18593.  
  18594.  
  18595. æKY TApplication.SpaceIsLow
  18596. æD PROCEDURE TApplication.SpaceIsLow;
  18597. æFi UMacApp.p
  18598. æT METHOD 
  18599. æC SpaceIsLow displays an alert box informing the user that memory space is low. 
  18600. MacApp calls this method when memory space is low, at intervals of 
  18601. kLowSpaceInterval ticks. You usually do not need to call this method yourself; you can 
  18602. override it, however, if you wish to take more appropriate action. 
  18603.  
  18604.  
  18605.  
  18606. æKY TApplication.SwapClipViews
  18607. æD PROCEDURE TApplication.SwapClipViews;
  18608. æFi UMacApp.p
  18609. æT METHOD 
  18610. æC SwapClipViews exchanges the contents of the "Undo Clipboard" view for those of 
  18611. the current clipboard view. SwapClipView is called when executing Undo or Redo 
  18612. methods. You usually do not need to call this method yourself. 
  18613.  
  18614.  
  18615.  
  18616. æKY TApplication.TrackCursor
  18617. æD FUNCTION TApplication.TrackCursor: BOOLEAN;
  18618. æFi UMacApp.p
  18619. æT METHOD 
  18620. æC TrackCursor returns TRUE if the cursor has been set by a view; if not, this 
  18621. method sets the cursor to the arrow cursor and returns FALSE. TrackCursor is called 
  18622. by the TApplication methods HandleSystemEvent, PollEvent, and Idle. You 
  18623. usually do not need to call this method yourself. 
  18624.  
  18625.  
  18626.  
  18627. æKY TApplication.TrackMouse
  18628. æD FUNCTION TApplication.TrackMouse(globalMouse, hysteresis: Point; 
  18629.   theCommand: TCommand): TCommand;
  18630. æFi UMacApp.p
  18631. æT METHOD 
  18632. æC TrackMouse tracks the movement of the mouse pointer after a mouse-down event and 
  18633. returns a TCommand object that handles the user’s actions. The globalMouse 
  18634. parameter is the location of the mouse-down event in global QuickDraw™ 
  18635. coordinates. The hysteresis parameter is a point that represents the horizontal and 
  18636. vertical distance the mouse can travel between clicks and still be considered to be 
  18637. at the same location. MacApp uses this parameter to determine whether a double 
  18638. click has occurred or if a control has moved. The parameter theCommand indicates 
  18639. the command object that is tracking the mouse. MacApp calls TrackMouse from 
  18640. TApplication.HandleMouseDown. You usually do not need to call this method 
  18641. yourself. 
  18642.  
  18643.  
  18644.  
  18645. æKY TApplication.UpdateAllWindows
  18646. æD PROCEDURE TApplication.UpdateAllWindows;
  18647. æFi UMacApp.p
  18648. æT METHOD 
  18649. æC UpdateAllWindows processes all update events in the queue. MacApp calls 
  18650. UpdateAllWindows to handle all pending update events before calling the Standard File 
  18651. package or posing a print job dialog box. You can use this method in a similar fashion. 
  18652.  
  18653.  
  18654.  
  18655. æKY TApplication.WMgrToWindow
  18656. æD FUNCTION TApplication.WMgrToWindow(aWMgrWindow: WindowPtr): TWindow;
  18657. æFi UMacApp.p
  18658. æT METHOD 
  18659. æC WMgrToWindow returns the TWindow object that represents the specified Window 
  18660. Manager window; it returns NIL if there is no window object. The aWMgrWindow 
  18661. parameter is a pointer to the Window Manager window. WMgrToWindow is called by 
  18662. several methods that directly manipulate windows. You can call WMgrToWindow to 
  18663. obtain the TWindow object associated with a particular window record. 
  18664.  
  18665.  
  18666.  
  18667. æKY TAssociation.EachEntryDo
  18668. æD PROCEDURE TAssociation.EachEntryDo(PROCEDURE  DoToEntry(theEntry: TEntry));
  18669. æFi UAssociation.p
  18670. æT METHOD 
  18671. æC EachEntryDo performs the procedure DoToEntry on each entry in the TAssociation 
  18672. object. DoToEntry is a procedure that you define and pass to EachEntryDo. The 
  18673. procedure you define can have any name, just as variables that you pass as 
  18674. arguments can have any name. The procedure passed in DoToEntry must take a single 
  18675. parameter of type TEntry. EachEntryDo iterates over all entries in the 
  18676. TAssociation object, binding each one to theEntry and executing the specified 
  18677. procedure. MacApp calls EachEntryDo when it must perform some operation on every 
  18678. entry in a TAssociation object. You can use it for similar purposes. 
  18679.  
  18680.  
  18681.  
  18682. æKY TAssociation.EntryWithKey
  18683. æD FUNCTION TAssociation.EntryWithKey(keyStr: Str255): TEntry;
  18684. æFi UAssociation.p
  18685. æT METHOD 
  18686. æC EntryWithKey searches the entries in the TAssociation object for the first entry 
  18687. whose key is the same as the specified keyStr parameter. If the method finds 
  18688. such an entry, then it returns that TEntry object. If EntryWithKey fails to find 
  18689. such an entry, then it returns NIL. The keyStr parameter is the key that 
  18690. EntryWithKey must find. MacApp calls EntryWithKey from several methods that maintain 
  18691. data structures incorporating TAssociation objects. You can use this method to 
  18692. find particular TEntry objects in TAssociation objects of your own. 
  18693.  
  18694.  
  18695.  
  18696. æKY TAssociation.EntryWithValue
  18697. æD FUNCTION TAssociation.EntryWithValue(valueStr: Str255): TEntry;
  18698. æFi UAssociation.p
  18699. æT METHOD 
  18700. æC EntryWithValue searches the entries in the TAssociation object for the first 
  18701. entry whose value is the same as the specified valueStr parameter. If 
  18702. EntryWithValue finds such an entry, then it returns that TEntry object; otherwise, it 
  18703. returns NIL. The valueStr parameter is the value that EntryWithValue must find. 
  18704. MacApp calls EntryWithValue from several methods that maintain data structures 
  18705. incorporating TAssociation objects. You can use this method to find particular 
  18706. TEntry objects in TAssociation objects of your own. 
  18707.  
  18708.  
  18709.  
  18710. æKY TAssociation.Fields
  18711. æD PROCEDURE TAssociation.Fields(PROCEDURE DoToField(fieldName: Str255; 
  18712.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  18713. æFi UAssociation.p
  18714. æT METHOD 
  18715. æC Fields reports the contents of each field of the TAssociation object to the 
  18716. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  18717. the contents of each field. Fields iterates over all the fields of the 
  18718. TAssociation object, performing DoToField on each one. The fieldName parameter is the 
  18719. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  18720. fieldType parameter uses a predefined constant to tell Fields what type of 
  18721. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  18722. You must override this method in your subclasses if you want the Inspector to 
  18723. display your fields. Your override must call INHERITED Fields as its last 
  18724. action to ensure that the inherited fields are also displayed. 
  18725.  
  18726.  
  18727.  
  18728. æKY TAssociation.FirstEntryThat
  18729. æD FUNCTION TAssociation.FirstEntryThat
  18730.   (FUNCTION TestEntry(theEntry: TEntry): BOOLEAN): TEntry; 
  18731. æFi UAssociation.p
  18732. æT METHOD 
  18733. æC FirstEntryThat searches the TAssociation object for the first entry that 
  18734. satisfies the specified test. If FirstEntryThat finds such an entry, then it returns 
  18735. that TEntry object; otherwise, it returns NIL. TestEntry is a function that you 
  18736. define for testing entries. This function can have any name, just as variables 
  18737. that you pass as parameters can have any name, and must take one parameter of 
  18738. type TEntry. The function must return a Boolean value that should be TRUE for 
  18739. the entry you want to find and FALSE otherwise. FirstEntryThat iterates over the 
  18740. entries in the TAssociation object, binding each TEntry object to TEntry, until 
  18741. the TestEntry function returns TRUE or all entries have been examined and NIL 
  18742. is returned. If the TestEntry function returns TRUE, FirstEntryThat returns 
  18743. that TEntry object. MacApp calls FirstEntryThat from methods that search for 
  18744. TEntry objects with specified values. You can use FirstEntryThat when you need to 
  18745. search TAssociation objects for entries that have some particular characteristic. 
  18746.  
  18747.  
  18748.  
  18749.  
  18750. æKY TAssociation.Free
  18751. æD PROCEDURE TAssociation.Free; OVERRIDE;
  18752. æFi UAssociation.p
  18753. æT METHOD 
  18754. æC Free releases the memory used by the TAssociation object and all its entries. 
  18755. This method is called as an inherited method by the Free methods of 
  18756. TAssociation’s subclasses. You can call Free to release the memory used by a 
  18757. TAssociation 
  18758. object when you no longer need that object. 
  18759.  
  18760.  
  18761.  
  18762. æKY TAssociation.IAssociation
  18763. æD PROCEDURE TAssociation.IAssociation;
  18764. æFi UAssociation.p
  18765. æT METHOD 
  18766. æC IAssociation initializes the fields of the TAssociation object, creating a 
  18767. TEntriesList object and assigning it to the field fEntries. This method calls the 
  18768. MacApp failure handler if it cannot create the TEntriesList object. MacApp calls 
  18769. IAssociation to initialize TAssociation objects that it creates. You must call 
  18770. this method when you create instances of your own TAssociation subclasses. 
  18771.  
  18772.  
  18773.  
  18774. æKY TAssociation.InsertEntry
  18775. æD PROCEDURE TAssociation.InsertEntry(keyStr, valueStr: Str255);
  18776. æFi UAssociation.p
  18777. æT METHOD 
  18778. æC InsertEntry adds a TEntry object to the TAssociation object’s list of entries. 
  18779. The keyStr parameter is the key under which the new entry is stored, and 
  18780. valueStr is the value associated with that key. MacApp calls InsertEntry when adding 
  18781. entries to its TAssociation objects. You can use it for similar purposes. 
  18782.  
  18783.  
  18784.  
  18785. æKY TAssociation.KeyAt
  18786. æD FUNCTION TAssociation.KeyAt(valueStr: Str255; VAR keyStr: Str255): BOOLEAN;
  18787. æFi UAssociation.p
  18788. æT METHOD 
  18789. æC KeyAt finds the key associated with the specified value and returns it in 
  18790. keyStr. The valueStr parameter is the value that KeyAt must find. When KeyAt returns, 
  18791. the keyStr parameter contains the corresponding key, or the empty string if 
  18792. KeyAt found no such value. The function returns the value TRUE if an associated 
  18793. string was found, or FALSE if no string was found. MacApp does not call KeyAt. 
  18794. You can call KeyAt when you need to find in a TAssociation object the key that 
  18795. is associated with a specified value. 
  18796.  
  18797.  
  18798.  
  18799. æKY TAssociation.RemoveKeyAt
  18800. æD PROCEDURE TAssociation.RemoveKeyAt(valueStr: Str255);
  18801. æFi UAssociation.p
  18802. æT METHOD 
  18803. æC RemoveKeyAt searches for an entry in the TAssociation object with the specified 
  18804. value. If it finds such an entry, it deletes that entry from the TAssociation 
  18805. object’s list. The valueStr parameter specifies the value that RemoveKeyAt must 
  18806. find. If the method cannot find that value, it does not change the TAssociation 
  18807. object’s list. MacApp does not call RemoveKeyAt. You can use RemoveKeyAt to 
  18808. delete entries with a specified value from TAssociation objects. 
  18809.  
  18810.  
  18811.  
  18812. æKY TAssociation.RemoveValueAt
  18813. æD PROCEDURE TAssociation.RemoveValueAt(keyStr: Str255);
  18814. æFi UAssociation.p
  18815. æT METHOD 
  18816. æC RemoveValueAt searches the TAssociation object for an entry stored with the 
  18817. specified key. If it finds such an entry, it deletes that entry from the 
  18818. TAssociation object’s list. The keyStr parameter specifies the key that RemoveValueAt 
  18819. must find. If the method cannot find that key, it does not change the TAssociation 
  18820. object’s list. MacApp does not call RemoveValueAt. You can call RemoveValueAt 
  18821. to delete entries with a specified key from TAssociation objects. 
  18822.  
  18823.  
  18824.  
  18825. æKY TAssociation.ValueAt
  18826. æD FUNCTION TAssociation.ValueAt(keyStr: Str255; VAR valueStr: Str255): BOOLEAN;
  18827.  
  18828. æFi UAssociation.p
  18829. æT METHOD 
  18830. æC ValueAt searches the TAssociation object for an entry stored with the specified 
  18831. key. If ValueAt finds such an entry, it returns TRUE as the function result and 
  18832. returns the associated value in the valueStr parameter; otherwise it returns 
  18833. the empty string and a result of FALSE. The keyStr parameter is the key that 
  18834. ValueAt must find. When ValueAt returns, the valueStr parameter contains the 
  18835. corresponding value, or the empty string if ValueAt found no key value. The function 
  18836. returns the value TRUE if an associated key was found, or FALSE if no key was 
  18837. found. You can use ValueAt to find the value associated with a specified key in 
  18838. a TAssociation object. 
  18839.  
  18840.  
  18841.  
  18842. æKY TButton.Fields
  18843. æD PROCEDURE TButton.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  18844.   fieldType: INTEGER)); OVERRIDE;
  18845. æFi UDialog.p
  18846. æT METHOD 
  18847. æC Fields reports the contents of each field of the TButton object to the MacApp 
  18848. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  18849. contents of each field. Fields iterates over all the fields of the TButton 
  18850. object, performing DoToField on each one. The fieldName parameter is the name of the 
  18851. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  18852. parameter uses a predefined constant to tell Fields what type of information 
  18853. to look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  18854. override this method in your subclasses if you want the Inspector to display 
  18855. your fields. Your override must call INHERITED Fields as its last action to 
  18856. ensure that the inherited fields are also displayed. 
  18857.  
  18858.  
  18859.  
  18860. æKY TButton.IButton
  18861. æD PROCEDURE TButton.IButton(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  18862.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsLabel: Str255);
  18863. æFi UDialog.p
  18864. æT METHOD 
  18865. æC IButton initializes a TButton object and associates it with a superview. The 
  18866. fDefChoice field is set to mButtonHit. The itsSuperView parameter is the view 
  18867. containing this button. The itsLocation parameter is the location of the button 
  18868. described in the superview's view coordinates. The itsSize parameter is the size 
  18869. of the control expressed in pixels. The itsHSizeDet and itsVSizeDet parameters 
  18870. determine how the view's horizontal and vertical dimensions are calculated, 
  18871. respectively. Possible values are sizeSuperView (subview to be the same size as 
  18872. superview), sizeRelSuperView (subview size changes an equal amount relative to the 
  18873. superview's size), sizePage (view to be the size of one page), sizeFillPages 
  18874. (view grows to fill an exact number of pages), sizeVariable (view size 
  18875. fluctuates according to application-specific criteria), or sizeFixed (no special 
  18876. handling of size issues). The itsLabel parameter is the string that is the button's 
  18877. label. You call this method when you are creating a button procedurally, rather 
  18878. than creating it from a 'view' resource. 
  18879.  
  18880.  
  18881.  
  18882. æKY TButton.IRes
  18883. æD PROCEDURE TButton.IRes(itsDocument: TDocument; itsSuperView: TView; 
  18884.   VAR itsParams: Ptr); OVERRIDE;
  18885. æFi UDialog.p
  18886. æT METHOD 
  18887. æC IRes initializes a TButton object from a 'view' resource template. The 
  18888. fDefChoice field is set to mButtonHit. The itsDocument parameter specifies the document 
  18889. affected by the button’s action. The itsSuperView parameter specifies the view 
  18890. in which this button appears. The itsParams parameter is a pointer to the 
  18891. portion of the 'view' resource data used to initialize this view. When the IRes 
  18892. method finishes initializing the view, the method moves the pointer to the end of 
  18893. this data. MacApp calls this method for each of the views created from a 'view' 
  18894. resource template, usually in response to a NewTemplateWindow or a 
  18895. DoCreateViews call. You never need to call IRes yourself. 
  18896.  
  18897.  
  18898.  
  18899. æKY TButton.WRes
  18900. æD PROCEDURE TButton.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  18901. æFi UDialog.p
  18902. æT METHOD 
  18903. æC WRes writes the TButton portion of the view’s resource template to the location 
  18904. specified by the itsParams parameter. The parameter theResource is a handle to 
  18905. the view’s resource template. The parameter itsParams is a pointer to the 
  18906. TButton section of the view’s resource template. WRes is the inverse of the IRes 
  18907. method, and is used only by programs that write 'view' resources; for example, 
  18908. ViewEdit uses this method to create new 'view' resources from views that are 
  18909. active on the screen. You rarely need to call this method yourself. You must 
  18910. override this method in your subclasses to create your own 'view' resources. Your 
  18911. override should check the size of the space remaining in the template past the end 
  18912. of the previously-written resource data; if there is not enough space to write 
  18913. your data into the file, your override should call the global routine 
  18914. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  18915. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  18916. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  18917. You need not be concerned about making the 'view' resource handle too big, 
  18918. because MacApp reclaims unused space by returning a new value for itsParams when the 
  18919. WRes method completes. 
  18920.  
  18921.  
  18922.  
  18923. æKY TButton.WriteRes
  18924. æD PROCEDURE TButton.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  18925. æFi UDialog.p
  18926. æT METHOD 
  18927. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('butn') and 
  18928. class name ('TButton') for the ‘view’ resource template, and then calls WRes to 
  18929. actually write the resource. The parameter theResource is a handle to the 
  18930. view’s resource template. The parameter itsParams is a pointer to the parameters 
  18931. MacApp uses to create the new resource. MacApp calls this method to write a 
  18932. TButton object as part of a 'view' resource; you can use it in a similar fashion. You 
  18933. can override this method to provide your own unique class name or signature. 
  18934.  
  18935.  
  18936.  
  18937. æKY TCellSelectCommand.ComputeAnchorCell
  18938. æD PROCEDURE TCellSelectCommand.ComputeAnchorCell(VAR clickedCell: GridCell);
  18939. æFi UGridView.p
  18940. æT METHOD 
  18941. æC ComputeAnchorCell calculates the first cell clicked in a selection that the user 
  18942. made. The clickedCell parameter stores the coordinates of the cell the user 
  18943. clicked in the fAnchorCell field. This method does not modify the value of 
  18944. clickedCell; the use of a VAR parameter is not necessary, and will probably be 
  18945. changed in a future version of MacApp. When the user selects one or more cells in a 
  18946. TGridView view, ComputeAnchorCell is called by the TrackMouse method of 
  18947. TCellSelectCommand or TRCSelectCommand. It may also be called by the ComputeAnchorCell 
  18948. methods of TColumnSelectCommand, TRowSelectCommand, and TRCSelectCommand. You 
  18949. can call ComputeAnchorCell to determine the first cell in a user selection in a 
  18950. TGridView view. However, you usually will not need to call it yourself because 
  18951. MacApp intercepts mouse commands and calls this method for you when 
  18952. appropriate. 
  18953.  
  18954.  
  18955.  
  18956. æKY TCellSelectCommand.ComputeNewSelection
  18957. æD PROCEDURE TCellSelectCommand.ComputeNewSelection(VAR clickedCell: GridCell);
  18958. æFi UGridView.p
  18959. æT METHOD 
  18960. æC ComputeNewSelection stores the user's new selection in a TGridView view as a 
  18961. rectangle in the TGridView variable fThisSelection. The clickedCell parameter 
  18962. returns the coordinates of the cell the user clicked, within the limits of the 
  18963. TGridView view. ComputeNewSelection is called by the TrackMouse methods of 
  18964. TCellSelectCommand and TRCSelectCommand when the user selects one or more cells in a 
  18965. TGridView view. It is also called by the ComputeNewSelection methods of 
  18966. TCellSelectCommand's subclasses—TRCSelectCommand,TRowSelectCommand, and 
  18967. TColumnSelectCommand. You can call ComputeNewSelection to determine user selections in 
  18968. a TGridView view. However, you usually do not need to call it yourself because MacApp 
  18969. intercepts mouse commands and calls this method for you when appropriate. 
  18970.  
  18971.  
  18972.  
  18973. æKY TCellSelectCommand.DoIt
  18974. æD PROCEDURE TCellSelectCommand.DoIt; OVERRIDE;
  18975. æFi UGridView.p
  18976. æT METHOD 
  18977. æC DoIt calls the appropriate methods for making a single- or multiple-cell 
  18978. selection in a TGridView view. MacApp calls DoIt when the user selects one or more 
  18979. cells in a TGridView view. You almost never call the DoIt method yourself. 
  18980.  
  18981.  
  18982.  
  18983. æKY TCellSelectCommand.Fields
  18984. æD PROCEDURE TCellSelectCommand.Fields (PROCEDURE DoToField  (fieldName: Str255; 
  18985.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  18986. æFi UGridView.p
  18987. æT METHOD 
  18988. æC Fields reports the contents of each field of the TCellSelectCommand object to 
  18989. the MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  18990. report the contents of each field. Fields iterates over all the fields of the 
  18991. TCellSelectCommand object, performing DoToField on each one. The fieldName 
  18992. parameter is the name of the field. The fieldAddr parameter is the field’s location in 
  18993. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  18994. type of information to look for in a field. MacApp calls Fields from the 
  18995. MacApp Inspector. You must override this method in your subclasses if you want the 
  18996. Inspector to display your fields. Your override must call INHERITED Fields as 
  18997. its last action to ensure that the inherited fields are also displayed. 
  18998.  
  18999.  
  19000.  
  19001. æKY TCellSelectCommand.Free
  19002. æD PROCEDURE TCellSelectCommand.Free; OVERRIDE;
  19003. æFi UGridView.p
  19004. æT METHOD 
  19005. æC Free releases the memory used by the selection and then calls INHERITED Free to 
  19006. dispose of memory used by the command object and dependent structures. MacApp 
  19007. calls Free when changing the current selection in a TGridView view. You usually 
  19008. do not need to call this method yourself. 
  19009.  
  19010.  
  19011.  
  19012. æKY TCellSelectCommand.HighlightNewSelection
  19013. æD PROCEDURE TCellSelectCommand.HighlightNewSelection;
  19014. æFi UGridView.p
  19015. æT METHOD 
  19016. æC HighlightNewSelection provides visual feedback to the user by deselecting the 
  19017. old selection and highlighting the cells in the new selection. You rarely call 
  19018. this method yourself—TApplication.TrackMouse and TRCSelectCommand.TrackMouse call 
  19019. TCellSelectCommand.HighlightNewSelection as needed when MacApp intercepts 
  19020. mouse-down events. 
  19021.  
  19022.  
  19023.  
  19024. æKY TCellSelectCommand.ICellSelectCommand
  19025. æD PROCEDURE TCellSelectCommand.ICellSelectCommand(itsView: TGridView; 
  19026.   theShiftKey,theCmdKey: BOOLEAN);
  19027. æFi UGridView.p
  19028. æT METHOD 
  19029. æC ICellSelectCommand initializes the command object and associates it with a view. 
  19030. The itsView parameter is the view associated with the command object. The 
  19031. parameter theShiftKey is TRUE if the Shift key is currently pressed. The parameter 
  19032. theCmdKey is TRUE if the Command key is currently pressed. ICommand is called 
  19033. when the user selects one or more cells in a TGridView view. You can call this 
  19034. method when you want to initialize a new TCellSelectCommand object. You rarely 
  19035. need to call this method yourself, however; MacApp intercepts mouse commands and 
  19036. calls ICellSelectCommand when appropriate. 
  19037.  
  19038.  
  19039.  
  19040. æKY TCellSelectCommand.TrackFeedback
  19041. æD PROCEDURE TCellSelectCommand.TrackFeedback (anchorPoint, nextPoint: VPoint;
  19042.   turnItOn, mouseDidMove: BOOLEAN); OVERRIDE;
  19043. æFi UGridView.p
  19044. æT METHOD 
  19045. æC TrackFeedback provides onscreen feedback for the user while the mouse is being 
  19046. tracked (that is, while the mouse button is pressed and a mouse-tracker object 
  19047. exists). It is an empty method; user feedback for TCellSelectCommand objects is 
  19048. implemented in the TrackMouse and HighlightNewSelection methods of this class. 
  19049. Because it is an empty method, TrackFeedback ignores its parameters. If you 
  19050. were to write your own version of this method, you could use them as the other 
  19051. TrackFeedback methods do: The anchorPoint parameter is the position of the mouse 
  19052. pointer, in view coordinates, when the mouse button was pressed. The nextPoint 
  19053. parameter is the mouse pointer’s current position, described in view 
  19054. coordinates. The value of the turnItOn parameter is TRUE if the feedback is to be 
  19055. enabled. The value of the mouseDidMove parameter is TRUE if the mouse moved more than 
  19056. the hysteresis value since the last time TrackFeedback was called. (MacApp uses 
  19057. the hysteresis value to determine if multiple mouse clicks are close enough on 
  19058. the screen to be considered part of a double or triple click.) You usually do 
  19059. not need to call this method yourself; however, you can override it to provide 
  19060. other kinds of feedback while tracking the mouse. (For further information, see 
  19061. the discussion of mouse trackers in the MacApp 2.0 Cookbook.) 
  19062.  
  19063.  
  19064.  
  19065. æKY TCellSelectCommand.TrackMouse
  19066. æD FUNCTION TCellSelectCommand.TrackMouse (aTrackPhase: TrackPhase; VAR anchorPoint, 
  19067.   previousPoint, nextPoint: VPoint;  mouseDidMove: BOOLEAN): TCommand; OVERRIDE;
  19068. æFi UGridView.p
  19069. æT METHOD 
  19070. æC This method tracks the mouse and sets the selection upon receiving the mouse-up 
  19071. event when the user makes a selection in a TGridView view. In general, this 
  19072. method allows you to carry out any actions (other than feedback or mouse 
  19073. constraint) that depend on the movement of the mouse or on the track phase. This 
  19074. method returns the mouse tracker that will be used in subsequent calls. Although 
  19075. applications may sometimes return a different mouse-tracker object, TrackMouse 
  19076. usually returns SELF. The aTrackPhase parameter describes the current phase of the 
  19077. mouse-tracking process. MacApp sets its value to trackPress when the mouse 
  19078. button is first pressed. When the mouse has moved more than the hysteresis value 
  19079. since the last time TrackFeedback was called, MacApp sets the value of the 
  19080. aTrackPhase parameter to trackMove. When the mouse button is released, MacApp sets 
  19081. aTrackPhase to trackRelease. When aTrackPhase is set to trackPress, all three 
  19082. points (anchorPoint, previousPoint, and nextPoint) have the same value. When 
  19083. aTrackPhase is set to trackRelease, the nextPoint parameter contains the coordinates 
  19084. of the location of the mouse-up event. The anchorPoint parameter is the 
  19085. position of the mouse pointer, in view coordinates, when the mouse button was first 
  19086. pressed. If you change this value, the new value is passed to you in the 
  19087. parameter aTrackPhase the next time TrackMouse is called. The previousPoint parameter 
  19088. is the position, in view coordinates, of the mouse pointer the last time 
  19089. TrackMouse was called. The nextPoint parameter is the current position of the mouse 
  19090. pointer, in view coordinates. Although you can change the value of nextPoint 
  19091. yourself, it is preferable to use TCommand.TrackConstrain to limit mouse movement. 
  19092. The value of nextPoint at the time TrackMouse exits will be passed to you as 
  19093. the value of previousPoint the next time TrackMouse is called. MacApp sets the 
  19094. value of the mouseDidMove parameter to TRUE if the mouse moved since the last 
  19095. time TCommand.TrackFeedback was called. However, SELF.TrackConstrain may set the 
  19096. mouse coordinates back to values as if no movement had occurred; thus, the mouse 
  19097. has not necessarily moved the first time TrackMouse is called with aTrackPhase 
  19098. set to trackMove. Test the value of mouseDidMove to determine whether you 
  19099. should consider the mouse to have moved. The mouseDidMove parameter will have the 
  19100. value TRUE if aTrackPhase has a value of either trackPress or trackRelease; 
  19101. otherwise, its value is TRUE if nextPoint and previousPoint are not equal. You 
  19102. never call TCellSelectCommand.TrackMouse yourself; rather, TApplication.TrackMouse 
  19103. calls it when the mouse button is first pressed, as the mouse moves, and when 
  19104. the mouse button is released. You often override this method to take 
  19105. application-specific action. (For further information on mouse trackers, see the 
  19106. discussion of mouse operations in the MacApp 2.0 Cookbook.) 
  19107.  
  19108.  
  19109.  
  19110. æKY TCheckBox.DoChoice
  19111. æD PROCEDURE TCheckBox.DoChoice(origView: TView; itsChoice: INTEGER); OVERRIDE;
  19112. æFi UDialog.p
  19113. æT METHOD 
  19114. æC DoChoice toggles the check box and sends the mCheckBoxHit message to its 
  19115. superview. The origView parameter is the original view that received the event. The 
  19116. itsChoice parameter is an integer that specifies whether the user clicked a 
  19117. button, a check box, a text string, or another control. This method is part of the 
  19118. command-handling mechanism in MacApp; it is called from DoCommandKey, 
  19119. DoKeyCommand, and DoMouseCommand. Rather than calling this method when you want to 
  19120. toggle a check box, use one of the TCheckBox methods SetState, Toggle, or ToggleIf. 
  19121.  
  19122.  
  19123.  
  19124. æKY TCheckBox.Fields
  19125. æD PROCEDURE TCheckBox.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  19126.   fieldType: INTEGER)); OVERRIDE;
  19127. æFi UDialog.p
  19128. æT METHOD 
  19129. æC Fields reports the contents of each field of the TCheckBox object to the MacApp 
  19130. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  19131. contents of each field. Fields iterates over all the fields of the TCheckBox 
  19132. object, performing DoToField on each one. The fieldName parameter is the name of 
  19133. the field. The fieldAddr parameter is the field’s location in memory. The 
  19134. fieldType parameter uses a predefined constant to tell Fields what type of 
  19135. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  19136. You must override this method in your subclasses if you want the Inspector to 
  19137. display your fields. Your override must call INHERITED Fields as its last action to 
  19138. ensure that the inherited fields are also displayed. 
  19139.  
  19140.  
  19141.  
  19142. æKY TCheckBox.ICheckBox
  19143. æD PROCEDURE TCheckBox.ICheckBox(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  19144.   itsHSizeDet,itsVSizeDet: SizeDeterminer; itsLabel: Str255; isTurnedOn: BOOLEAN);
  19145. æFi UDialog.p
  19146. æT METHOD 
  19147. æC ICheckBox initializes a check box control and installs it in the given 
  19148. superview. The fDefChoice field is set to mCheckBoxHit. The itsSuperView parameter is 
  19149. the view in which the check box appears. The itsLocation parameter is the 
  19150. location of the control, described in the view coordinates of itsSuperView. The 
  19151. itsSize parameter is the size of the control expressed in pixels. The itsHSizeDet and 
  19152. itsVSizeDet parameters determine how the view's horizontal and vertical 
  19153. dimensions are calculated, respectively. Possible values are: sizeSuperView (subview 
  19154. is the same size as superview), sizeRelSuperView (subview size changes an equal 
  19155. amount relative to the superview's size), sizePage (view to be the size of one 
  19156. page), sizeFillPages (view grows to fill an exact number of pages), 
  19157. sizeVariable (view size fluctuates according to application-specific criteria), or 
  19158. sizeFixed (no special handling of size issues). The itsLabel parameter is a string 
  19159. that is the label of the check box. If the value of isTurnedOn is TRUE, the 
  19160. control is initialized to be on. You call ICheckBox to initialize a check box that 
  19161. was created procedurally. 
  19162.  
  19163.  
  19164.  
  19165. æKY TCheckBox.IRes
  19166. æD PROCEDURE TCheckBox.IRes(itsDocument: TDocument; itsSuperView: TView; 
  19167.   VAR itsParams: Ptr); OVERRIDE;
  19168. æFi UDialog.p
  19169. æT METHOD 
  19170. æC IRes initializes a TCheckBox object from a 'view' resource template. The 
  19171. fDefChoice field is set to mCheckBoxHit. The itsDocument parameter is ignored; 
  19172. methods that call TCheckBox.IRes pass NIL in this parameter to avoid putting TCtlMgr 
  19173. controls in a document’s view list. The itsSuperView parameter specifies the 
  19174. view in which this check box appears. The itsParams parameter is a pointer to the 
  19175. portion of the 'view' resource data used to initialize this view. When the IRes 
  19176. method finishes initializing the view, the method moves the pointer to the end 
  19177. of this data. MacApp calls this method for each of the views created from a 
  19178. 'view' resource template, usually in response to a NewTemplateWindow or a 
  19179. DoCreateViews call. You never need to call IRes yourself. 
  19180.  
  19181.  
  19182.  
  19183. æKY TCheckBox.IsOn
  19184. æD FUNCTION TCheckBox.IsOn: BOOLEAN;
  19185. æFi UDialog.p
  19186. æT METHOD 
  19187. æC This method returns the value TRUE if the check box is currently on. IsOn is 
  19188. called from the methods TCheckBox.IRes and TCheckBox.WRes when MacApp creates and 
  19189. initializes a TCheckBox object. IsOn is also called by TCheckBox.Toggle and 
  19190. TCheckBox.ToggleIf when setting the value of a TCheckBox object. You can call IsOn 
  19191. to find out the current value of a TCheckBox control. 
  19192.  
  19193.  
  19194.  
  19195. æKY TCheckBox.SetState
  19196. æD PROCEDURE TCheckBox.SetState(state, redraw: BOOLEAN);
  19197. æFi UDialog.p
  19198. æT METHOD 
  19199. æC This method turns the check box on or off, depending on the value of the state 
  19200. parameter, and redraws the check box if requested. The value of the state 
  19201. parameter sets the control's appearance; setting state to TRUE fills a check box or 
  19202. radio button with the appropriate mark; setting state to FALSE clears it. If the 
  19203. value of the redraw parameter is TRUE, the control is immediately redrawn with 
  19204. the current value; otherwise, it is not, even though the new value may affect 
  19205. its appearance. You can set redraw to FALSE when you know the control will 
  19206. eventually be redrawn and you want to avoid drawing it twice, which makes the 
  19207. screen appear to flicker or flash. SetState is called by TCheckBox.ICheckBox when 
  19208. initializing a TCheckBox object. You can call it to change the state of a 
  19209. TCheckBox control. 
  19210.  
  19211.  
  19212.  
  19213. æKY TCheckBox.Toggle
  19214. æD PROCEDURE TCheckBox.Toggle(redraw: BOOLEAN);
  19215. æFi UDialog.p
  19216. æT METHOD 
  19217. æC This method turns the check box on or off. If the value of the redraw parameter 
  19218. is TRUE, the control is immediately redrawn with the current value; otherwise, 
  19219. it is not, even though the new value may affect its appearance. You can set 
  19220. redraw to FALSE when you know the control will eventually be redrawn and you want 
  19221. to avoid drawing it twice, which makes the screen appear to flicker or flash. 
  19222. Toggle is called by TCheckBox.DoChoice to change the value of a TCheckBox object 
  19223. in response to the user's choice. You can call this method to set the state of 
  19224. a TCheckBox object. 
  19225.  
  19226.  
  19227.  
  19228. æKY TCheckBox.ToggleIf
  19229. æD PROCEDURE TCheckBox.ToggleIf(matchState, redraw: BOOLEAN);
  19230. æFi UDialog.p
  19231. æT METHOD 
  19232. æC ToggleIf toggles the value of a TRadio button if thecontrol's current state 
  19233. equals the value of the matchState parameter. The matchState parameter specifies 
  19234. the state the control must match to be toggled. If the value of the matchState 
  19235. parameter is TRUE, the control must be on to be toggled. If the value of the 
  19236. matchState parameter is FALSE, the control must be off to be toggled. If the value 
  19237. of the redraw parameter is TRUE, the control is redrawn with the current value; 
  19238. otherwise, it is not, even though the new value may affect its appearance. You 
  19239. can set redraw to False when you know the control will eventually be redrawn 
  19240. and you want to avoid drawing it twice, which makes the screen appear to flicker 
  19241. or flash. MacApp does not call this method; it is included for your 
  19242. convenience. You can call ToggleIf when you wish to conditionally toggle the state 
  19243. of a TCheckBox control. 
  19244.  
  19245.  
  19246.  
  19247. æKY TCheckBox.WRes
  19248. æD PROCEDURE TCheckBox.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  19249. æFi UDialog.p
  19250. æT METHOD 
  19251. æC WRes writes the TCheckBox portion of the view’s resource template to the 
  19252. location specified by the itsParams parameter. The parameter theResource is a handle 
  19253. to the view’s resource template. The parameter itsParams is a pointer to the 
  19254. TCheckBox section of the view’s resource template. WRes is the inverse of the IRes 
  19255. method, and is used only by programs that write 'view' resources; for example, 
  19256. ViewEdit uses this method to create new 'view' resources from views that are 
  19257. active on the screen. You rarely need to call this method yourself. You must 
  19258. override this method in your subclasses to create your own 'view' resources. Your 
  19259. override should check the size of the space remaining in the template past the 
  19260. end of the previously-written resource data; if there is not enough space to 
  19261. write your data into the file, your override should call the global routine 
  19262. ExpandPtr, passing as arguments the current values of theResource, itsParams, and 
  19263. the size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  19264. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  19265. greater. You need not be concerned about making the 'view' resource handle too big, 
  19266. because MacApp reclaims unused space by returning a new value for itsParams when 
  19267. the WRes method completes. 
  19268.  
  19269.  
  19270.  
  19271. æKY TCheckBox.WriteRes
  19272. æD PROCEDURE TCheckBox.WriteRes(theResource: ViewRsrcHndl; 
  19273.   VAR itsParams: Ptr); OVERRIDE;
  19274. æFi UDialog.p
  19275. æT METHOD 
  19276. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('chkb') and 
  19277. class name ('TCheckBox') for the ‘view’ resource template, and then calls WRes 
  19278. to actually write the resource. The parameter theResource is a handle to the 
  19279. view’s resource template. The parameter itsParams is a pointer to the parameters 
  19280. MacApp uses to create the new resource. MacApp calls this method to write a 
  19281. TCheckBox object as part of a 'view' resource; you can use it in a similar fashion. 
  19282. You can override this method to provide your own unique class name or 
  19283. signature. 
  19284.  
  19285.  
  19286.  
  19287. æKY TClassesByID.Compare
  19288. æD FUNCTION TClassesByID.Compare(item1, item2: TObject): INTEGER; OVERRIDE;
  19289. æFm UInspector.inc1.p
  19290. æT METHOD 
  19291. æC Compare ranks TList objects by their ObjClassID numbers. The parameters item1 
  19292. and item2 are the objects that Compare evaluates. Compare returns one of the 
  19293. constants kItem1LessThanItem2, kItem1EqualItem2, or kItem1GreaterThanItem2, 
  19294. according to whether the ObjClassID of item1 is less than, equal to, or greater than 
  19295. the ObjClassID of item2. This method is internal to the Inspector; you cannot 
  19296. call it yourself or override it. 
  19297.  
  19298.  
  19299.  
  19300. æKY TClassesByID.Fields
  19301. æD PROCEDURE TClassesByID.Fields(PROCEDURE DoToField(fieldName: Str255; 
  19302.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE; 
  19303. æFm UInspector.inc1.p
  19304. æT METHOD 
  19305. æC Fields reports the contents of each field of the TClassesByID object to the 
  19306. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  19307. the contents of each field. Fields iterates over all the fields of the 
  19308. TClassesByID object, performing DoToField on each one. The fieldName parameter is the 
  19309. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  19310. fieldType parameter uses a predefined constant to tell Fields what type of 
  19311. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  19312. This method is internal to the Inspector; you cannot call it yourself or 
  19313. override it. 
  19314.  
  19315.  
  19316.  
  19317. æKY TClassesByID.IClassesByID
  19318. æD PROCEDURE TClassesByID.IClassesByID;
  19319.  
  19320. æFm UInspector.inc1.p
  19321. æT METHOD 
  19322. æC IClassesByID initializes a TClassesByID object. MacApp calls this method when 
  19323. initializing the Inspector. This method is internal to the Inspector; you cannot 
  19324. call it yourself or override it. 
  19325.  
  19326.  
  19327.  
  19328. æKY TClassesByName.Compare
  19329. æD FUNCTION TClassesByName.Compare(item1, item2: TObject): INTEGER; OVERRIDE;
  19330. æFm UInspector.inc1.p
  19331. æT METHOD 
  19332. æC Compare ranks TList objects by their class names. Compare returns one of the 
  19333. constants kItem1LessThanItem2, kItem1EqualItem2, or kItem1GreaterThanItem2, 
  19334. according to whether the class name of item1 is less than, equal to, or greater than 
  19335. the class name of item2. This method is internal to the MacApp Inspector; you 
  19336. cannot call it yourself or override it. 
  19337.  
  19338.  
  19339.  
  19340. æKY TClassesByName.Fields
  19341. æD PROCEDURE TClassesByName.Fields(PROCEDURE DoToField(fieldName: Str255; 
  19342.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  19343.  
  19344. æFm UInspector.inc1.p
  19345. æT METHOD 
  19346. æC Fields reports the contents of each field of the TClassesByName object to the 
  19347. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  19348. the contents of each field. Fields iterates over all the fields of the 
  19349. TClassesByName object, performing DoToField on each one. The fieldName parameter is 
  19350. the name of the field. The fieldAddr parameter is the field’s location in memory. 
  19351. The fieldType parameter uses a predefined constant to tell Fields what type of 
  19352. information to look for in a field. MacApp calls Fields from the MacApp 
  19353. Inspector. This method is internal to the Inspector; you cannot call it yourself or 
  19354. override it. 
  19355.  
  19356.  
  19357.  
  19358. æKY TClassesByName.IClassesByName
  19359. æD PROCEDURE TClassesByName.IClassesByName;
  19360.  
  19361. æFm UInspector.inc1.p
  19362. æT METHOD 
  19363. æC IClassesByName initializes a TClassesByName object. MacApp calls this method 
  19364. when initializing the Inspector. This method is internal to the MacApp Inspector; 
  19365. you cannot call it yourself or override it. 
  19366.  
  19367.  
  19368.  
  19369. æKY TClassListView.DrawItem
  19370. æD PROCEDURE TClassListView.DrawItem(itemNumber: INTEGER; basePoint: Point); OVERRIDE;
  19371. æFm UInspector.inc1.p
  19372. æT METHOD 
  19373. æC DrawItem draws the class name of the item occupying a specific position in the 
  19374. class list. The itemNumber parameter specifies the position in the list occupied 
  19375. by the item to be drawn. The basePoint parameter is the pen’s starting 
  19376. position, expressed in global coordinates. DrawItem is called by TListView.Draw once 
  19377. for each item in a class list when it is drawing that list. This method is 
  19378. internal to the Inspector; you cannot call it yourself or override it. 
  19379.  
  19380.  
  19381.  
  19382. æKY TClassListView.Fields
  19383. æD PROCEDURE TClassListView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  19384.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  19385. æFm UInspector.inc1.p
  19386. æT METHOD 
  19387. æC Fields reports the contents of each field of the TClassListView object to the 
  19388. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  19389. the contents of each field. Fields iterates over all the fields of the 
  19390. TClassListView object, performing DoToField on each one. The fieldName parameter is 
  19391. the name of the field. The fieldAddr parameter is the field’s location in memory. 
  19392. The fieldType parameter uses a predefined constant to tell Fields what type of 
  19393. information to look for in a field. MacApp calls Fields from the MacApp 
  19394. Inspector. This method is internal to the Inspector; you cannot call it yourself or 
  19395. override it. 
  19396.  
  19397.  
  19398.  
  19399. æKY TClassListView.IClassListView
  19400. æD PROCEDURE TClassListView.IClassListView(itsWindow: TInspectWindow; 
  19401.   itsLocation: VPoint; itsSize: VPoint);
  19402. æFm UInspector.inc1.p
  19403. æT METHOD 
  19404. æC IClassListView initializes a scrolling TClassListView list and installs it in a 
  19405. window. The itsWindow parameter is the window in which the class list is 
  19406. displayed. The itsLocation parameter is the location of the upper-left corner of the 
  19407. list expressed in the window's local view coordinates. The itsSize parameter is 
  19408. the size of the list expressed in pixels. IClassListView is called by 
  19409. TInspectWindow.IInspectWindow in the course of initializing an Inspector window. This 
  19410. method is internal to the MacApp Inspector; you cannot call it yourself or 
  19411. override it. 
  19412.  
  19413.  
  19414.  
  19415. æKY TClassListView.IRes
  19416. æD PROCEDURE TClassListView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  19417.   VAR itsParams: Ptr); OVERRIDE;
  19418. æFm UInspector.inc1.p
  19419. æT METHOD 
  19420. æC IRes initializes a TClassListView object from a 'view' resource template. The 
  19421. itsDocument parameter specifies the document associated with the TClassListView 
  19422. object. The itsSuperView parameter specifies the superview in which this view is 
  19423. to be installed. The itsParams parameter is a pointer to the portion of the 
  19424. 'view' resource data used to initialize this view. When the IRes method finishes 
  19425. initializing the view, the method moves the pointer to the end of this data. 
  19426. MacApp calls this method for each of the views created from a 'view' resource 
  19427. template, usually in response to a NewTemplateWindow or a DoCreateViews call. This 
  19428. method is internal to the Inspector; you cannot call it yourself or override it. 
  19429.  
  19430.  
  19431.  
  19432. æKY TClassListView.SelectItem
  19433. æD PROCEDURE TClassListView.SelectItem(itemNumber: INTEGER); OVERRIDE;
  19434. æFm UInspector.inc1.p
  19435. æT METHOD 
  19436. æC SelectItem selects a specified TObjectList element and then calls INHERITED 
  19437. SelectItem. INHERITED SelectItem is empty; when overridden, it can do something to 
  19438. the new selection. The itemNumber parameter is the selected item’s position in 
  19439. the TClassListView list. Items in a TClassListView list are numbered 
  19440. consecutively from the beginning of the list, starting with 1. This method is internal 
  19441. to the Inspector; you cannot call it yourself or override it. 
  19442.  
  19443.  
  19444.  
  19445. æKY TCloseWindowCommand.DoIt
  19446. æD PROCEDURE TCloseWindowCommand.DoIt; OVERRIDE;
  19447. æFi UMacApp.p
  19448. æT METHOD 
  19449. æC DoIt closes the window associated with this command. The window is that 
  19450. associated with the fView field; this field is initialized by TCommand.ICommand. 
  19451. MacApp calls this method when the user chooses the Close item from the application's 
  19452. File menu. You never need to call DoIt yourself. 
  19453.  
  19454.  
  19455.  
  19456. æKY TCloseWindowCommand.Fields
  19457. æD PROCEDURE TCloseWindowCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  19458.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  19459.  
  19460. æFi UMacApp.p
  19461. æT METHOD 
  19462. æC Fields reports the contents of each field of the TCloseWindowCommand object to 
  19463. the MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  19464. report the contents of each field. Fields iterates over all the fields of the 
  19465. TCloseWindowCommand object, performing DoToField on each one. The fieldName 
  19466. parameter is the name of the field. The fieldAddr parameter is the field’s location 
  19467. in memory. The fieldType parameter uses a predefined constant to tell Fields 
  19468. what type of information to look for in a field. MacApp calls Fields from the 
  19469. MacApp Inspector. You must override this method in your subclasses if you want the 
  19470. Inspector to display your fields. Your override must call INHERITED Fields as 
  19471. its last action to ensure that the inherited fields are also displayed. 
  19472.  
  19473.  
  19474.  
  19475. æKY TCloseWindowCommand.ICloseWindowCommand
  19476. æD PROCEDURE TCloseWindowCommand.ICloseWindowCommand(itsCmdNumber: CmdNumber;
  19477.   itsWindow: TWindow);
  19478.  
  19479. æFi UMacApp.p
  19480. æT METHOD 
  19481. æC ICloseWindowCommand initializes the object and associates it with a command 
  19482. number. The itsCmdNumber parameter is the command number associated with a 
  19483. particular menu command—in this case, the Close command, which is normally found in 
  19484. an application's File menu. The command number is used in the 'cmnu' resource in 
  19485. the resource description file; you will typically define a constant to represent 
  19486. that number in both the resource description file and in the appropriate 
  19487. interface or implementation file of the application. The itsWindow parameter 
  19488. specifies the window afffected by the action of this command; it is the window 
  19489. associated with the fView field initialized in TCommand.ICommand. MacApp calls this 
  19490. method when the user chooses the Close item from the File menu. You never need to 
  19491. call ICloseWindowCommand yourself. 
  19492.  
  19493.  
  19494.  
  19495. æKY TCluster.DoChoice
  19496. æD PROCEDURE TCluster.DoChoice(origView: TView; itsChoice: INTEGER); OVERRIDE;
  19497. æFi UDialog.p
  19498. æT METHOD 
  19499. æC DoChoice sets the state of a cluster of radio buttons. When it receives an 
  19500. mRadioHit message, this method turns off the TRadio buttons that were not selected 
  19501. and turns on the new selection. The origView parameter is the original view that 
  19502. received the mRadioHit message. The parameter itsChoice is an integer that 
  19503. specifies whether the user clicked a button, a check box, a text string, or 
  19504. another control. MacApp calls this method in response to a mouse-down event occurring 
  19505. in one of the cluster's subviews. 
  19506.  
  19507.  
  19508.  
  19509. æKY TCluster.Draw
  19510. æD PROCEDURE TCluster.Draw(area: Rect); OVERRIDE;
  19511. æFi UDialog.p
  19512. æT METHOD 
  19513. æC This method draws the frame and label text for a cluster of radio buttons. The 
  19514. area parameter is a QuickDraw rectangle, described in local coordinates, that 
  19515. defines the part of the cluster that needs to be redrawn. You use this parameter 
  19516. to optimize drawing speed. MacApp calls this method in response to an update 
  19517. event occurring in one of the cluster’s subviews. You usually do not need to call 
  19518. this method yourself. 
  19519.  
  19520.  
  19521.  
  19522. æKY TCluster.Fields
  19523. æD PROCEDURE TCluster.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  19524.   fieldType: INTEGER)); OVERRIDE;
  19525. æFi UDialog.p
  19526. æT METHOD 
  19527. æC Fields reports the contents of each field of the TCluster object to the MacApp 
  19528. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  19529. contents of each field. Fields iterates over all the fields of the TCluster 
  19530. object, performing DoToField on each one. The fieldName parameter is the name of 
  19531. the field. The fieldAddr parameter is the field’s location in memory. The 
  19532. fieldType parameter uses a predefined constant to tell Fields what type of information 
  19533. to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  19534. must override this method in your subclasses if you want the Inspector to display 
  19535. your fields. Your override must call INHERITED Fields as its last action to 
  19536. ensure that the inherited fields are also displayed. 
  19537.  
  19538.  
  19539.  
  19540. æKY TCluster.Free
  19541. æD PROCEDURE TCluster.Free; OVERRIDE;
  19542. æFi UDialog.p
  19543. æT METHOD 
  19544. æC Free releases the memory used by the TCluster label and then calls INHERITED 
  19545. Free to release memory used by dependent structures. MacApp calls Free when a 
  19546. dialog box is closed. You usually do not need to call this method yourself. 
  19547.  
  19548.  
  19549.  
  19550. æKY TCluster.GetLabel
  19551. æD PROCEDURE TCluster.GetLabel(VAR theLabel: Str255);
  19552. æFi UDialog.p
  19553. æT METHOD 
  19554. æC GetLabel returns the cluster's current label by retrieving the text string at 
  19555. the address referenced by the fDataHandle field; GetLabel then stores it in 
  19556. theLabel. The parameter theLabel is used to return the desired string. GetLabel is 
  19557. called by TCluster.WRes when writing the TCluster portion of a 'view' resource 
  19558. template. You can call it to get a TCluster object's label. 
  19559.  
  19560.  
  19561.  
  19562. æKY TCluster.ICluster
  19563. æD PROCEDURE TCluster.ICluster(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  19564.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsRsrcID, itsIndex: INTEGER);
  19565. æFi UDialog.p
  19566. æT METHOD 
  19567. æC ICluster initializes the cluster and installs it in the given superview. The 
  19568. fDefChoice field is set to mClusterHit. The itsSuperView parameter is the view in 
  19569. which the cluster appears. The itsLocation parameter is the location of the 
  19570. cluster in view coordinates. The itsSize parameter is the size of the cluster in 
  19571. pixels. The itsHSizeDet and itsVSizeDet parameters determine how the view's 
  19572. horizontal and vertical dimensions are calculated, respectively. Possible values 
  19573. are sizeSuperView (subview is the same size as superview), sizeRelSuperView 
  19574. (subview size changes an equal amount relative to the superview's size), sizePage 
  19575. (view to be the size of one page), sizeFillPages (view grows to fill an exact 
  19576. number of pages), sizeVariable (view size fluctuates according to 
  19577. application-specific criteria), or sizeFixed (no special handling of size issues). 
  19578. The itsRsrcID parameter is the integer that MacApp uses to refer to the view's 
  19579. resource. The parameter itsIndex is the integer specifying which string will be 
  19580. returned from the string list. You call this method when you want a cluster in your 
  19581. dialog box. 
  19582.  
  19583.  
  19584.  
  19585. æKY TCluster.IRes
  19586. æD PROCEDURE TCluster.IRes(itsDocument: TDocument; itsSuperView: TView; 
  19587.   VAR itsParams: Ptr); OVERRIDE;
  19588. æFi UDialog.p
  19589. æT METHOD 
  19590. æC IRes initializes a TCluster object from a 'view' resource template. The 
  19591. fDefChoice field is set to mClusterHit. The itsDocument parameter specifies the 
  19592. document affected by the cluster’s action. The itsSuperView parameter specifies the 
  19593. view in which this cluster appears. The itsParams parameter is a pointer to the 
  19594. portion of the 'view' resource data used to initialize this view. When the IRes 
  19595. method finishes initializing the view, the method moves the pointer to the end 
  19596. of this data. MacApp calls this method for each of the views created from a 
  19597. 'view' resource template, usually in response to a NewTemplateWindow or a 
  19598. DoCreateViews call. You never need to call IRes yourself. 
  19599.  
  19600.  
  19601.  
  19602. æKY TCluster.ReleaseLabel
  19603. æD PROCEDURE TCluster.ReleaseLabel;
  19604. æFi UDialog.p
  19605. æT METHOD 
  19606. æC This method disposes of the handle to the cluster's label string. ReleaseLabel 
  19607. is called by TCluster.SetLabel to dispose of the old label before setting a new 
  19608. one; it is also called by TCluster.Free. You usually do not need to call this method. 
  19609.  
  19610.  
  19611.  
  19612. æKY TCluster.ReportCurrent
  19613. æD FUNCTION TCluster.ReportCurrent: IDType;
  19614. æFi UDialog.p
  19615. æT METHOD 
  19616. æC ReportCurrent returns the fIdentifier of the currently selected radio button in 
  19617. a cluster. MacApp does not call this method; it is included for your 
  19618. convenience. You can call this method to determine which radio button is currently 
  19619. selected. 
  19620.  
  19621.  
  19622.  
  19623. æKY TCluster.SetLabel
  19624. æD PROCEDURE TCluster.SetLabel(theLabel: Str255; redraw: BOOLEAN);
  19625. æFi UDialog.p
  19626. æT METHOD 
  19627. æC This method sets the cluster's label to the given string, forcing the view to be 
  19628. redrawn if requested. The parameter theLabel is the string designated as the 
  19629. cluster's label. If you set the value of the redraw parameter to TRUE, the 
  19630. cluster label is immediately redrawn to reflect its new value. If the value of the 
  19631. redraw parameter is FALSE, then the cluster label is not redrawn even though the 
  19632. new value may affect its appearance. You can set redraw to FALSE when you know 
  19633. the cluster label will be redrawn eventually and you wish to avoid drawing it 
  19634. twice, which makes the screen appear to flicker. 
  19635.  
  19636.  
  19637.  
  19638. æKY TCluster.WRes
  19639. æD PROCEDURE TCluster.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  19640. æFi UDialog.p
  19641. æT METHOD 
  19642. æC WRes writes the TCluster portion of the view’s resource template to the location 
  19643. specified by the itsParams parameter. The parameter theResource is a handle to 
  19644. the view’s resource template. The parameter itsParams is a pointer to the 
  19645. TCluster section of the view’s resource template. WRes is the inverse of the IRes 
  19646. method, and is used only by programs that write 'view' resources; for example, 
  19647. ViewEdit uses this method to create new 'view' resources from views that are 
  19648. active on the screen. You rarely need to call this method yourself. You must 
  19649. override this method in your subclasses to create your own 'view' resources. Your 
  19650. override should check the size of the space remaining in the template past the 
  19651. end of the previously-written resource data; if there is not enough space to 
  19652. write your data into the file, your override should call the global routine 
  19653. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  19654. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  19655. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  19656. You need not be concerned about making the 'view' resource handle too big, 
  19657. because MacApp reclaims unused space by returning a new value for itsParams when 
  19658. the WRes method completes. 
  19659.  
  19660.  
  19661.  
  19662. æKY TCluster.WriteRes
  19663. æD PROCEDURE TCluster.WriteRes(theResource: ViewRsrcHndl; 
  19664.   VAR itsParams: Ptr); OVERRIDE;
  19665. æFi UDialog.p
  19666. æT METHOD 
  19667. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('clus') and 
  19668. class name ('TCluster') for the ‘view’ resource template, and then calls WRes to 
  19669. actually write the resource. The parameter theResource is a handle to the 
  19670. view’s resource template. The parameter itsParams is a pointer to the parameters 
  19671. MacApp uses to create the new resource. MacApp calls this method to write a 
  19672. TCluster object as part of a 'view' resource; you can use it in a similar fashion. 
  19673. You can override this method to provide your own unique class name or signature. 
  19674.  
  19675.  
  19676.  
  19677.  
  19678. æKY TColumnSelectCommand.ComputeAnchorCell
  19679. æD PROCEDURE TColumnSelectCommand.ComputeAnchorCell
  19680.   (VAR clickedCell: GridCell); OVERRIDE;
  19681. æFi UGridView.p
  19682. æT METHOD 
  19683. æC ComputeAnchorCell tracks the mouse and recalculates the first cell in a 
  19684. selection that the user made while pressing the Shift key. The clickedCell parameter 
  19685. is a variable that ComputeAnchorCell uses internally. ComputeAnchorCell is called 
  19686. by TRCSelectCommand.TrackMouse when the user first selects a column of cells 
  19687. in a TGridView object. You can call ComputeAnchorCell to determine the first 
  19688. cell in a user selection in a TGridView view. However, you usually do not need to 
  19689. call it yourself because MacApp intercepts mouse commands and calls this method 
  19690. for you as needed.
  19691.  
  19692.  
  19693.  
  19694. æKY TColumnSelectCommand.ComputeNewSelection
  19695. æD PROCEDURE TColumnSelectCommand.ComputeNewSelection
  19696.   (VAR clickedCell: GridCell); OVERRIDE;
  19697. æFi UGridView.p
  19698. æT METHOD 
  19699. æC ComputeNewSelection first determines whether the user's selection of cells in a 
  19700. TGridView view is valid, and whether it is a single- or multiple-cell 
  19701. selection. If the selection is valid, ComputeNewSelection stores the selection as a 
  19702. rectangle in the TGridView variable fSelections. The clickedCell parameter is a 
  19703. variable that ComputeNewSelection uses internally. ComputeNewSelection is called 
  19704. repeatedly by TRCSelectCommand.TrackMouse as the user moves the mouse to select 
  19705. one or more columns of cells in a TGridView object. You usually do not need to 
  19706. call this method yourself unless you override TGridView methods to implement 
  19707. other means of selection. 
  19708.  
  19709.  
  19710.  
  19711. æKY TColumnSelectCommand.Fields
  19712. æD PROCEDURE TColumnSelectCommand.Fields (PROCEDURE DoToField  (fieldName: Str255; 
  19713.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  19714. æFi UGridView.p
  19715. æT METHOD 
  19716. æC Fields reports the contents of each field of the TColumnSelectCommand object to 
  19717. the MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  19718. report the contents of each field. Fields iterates over all the fields of the 
  19719. TColumnSelectCommand object, performing DoToField on each one. The fieldName 
  19720. parameter is the name of the field. The fieldAddr parameter is the field’s 
  19721. location in memory. The fieldType parameter uses a predefined constant to tell Fields 
  19722. what type of information to look for in a field. MacApp calls Fields from the 
  19723. MacApp Inspector. You must override this method in your subclasses if you want 
  19724. the Inspector to display your fields. Your override must call INHERITED Fields 
  19725. as its last action to ensure that the inherited fields are also displayed. 
  19726.  
  19727.  
  19728.  
  19729. æKY TColumnSelectCommand.IColumnSelectCommand
  19730. æD PROCEDURE TColumnSelectCommand.IColumnSelectCommand(itsView: TGridView; 
  19731.   theShiftKey, theCmdKey: BOOLEAN);
  19732. æFi UGridView.p
  19733. æT METHOD 
  19734. æC IColumnSelectCommand initializes a command object and associates it with a 
  19735. TGridView object. The itsView parameter is the view associated with the command 
  19736. object. The parameter theShiftKey is TRUE while the Shift key is pressed. The 
  19737. parameter theCmdKey is TRUE while the Command key is pressed. MacApp does not call 
  19738. this method; it is included for your convenience. You can use it to initialize 
  19739. TColumnSelectCommand objects. 
  19740.  
  19741.  
  19742.  
  19743. æKY TCommand.AutoScroll
  19744. æD PROCEDURE TCommand.AutoScroll(deltaH, deltaV: VCoordinate);
  19745.  
  19746. æFi UMacApp.p
  19747. æT METHOD 
  19748. æC AutoScroll implements automatic scrolling in the view that fScroller references. 
  19749. The deltaH and deltaV parameters specify the amounts by which to offset the 
  19750. coordinates of the scroller view in the view coordinate space. The deltaH 
  19751. parameter specifies the horizontal offset and the deltaV parameter specifies the 
  19752. vertical offset. MacApp calls AutoScroll when the mouse is being tracked and has 
  19753. strayed outside of the scroller. You rarely call AutoScroll yourself. AutoScroll 
  19754. accomplishes its task by calling TScroller.ScrollBy; you must override ScrollBy 
  19755. if the scroll bar units are not the same as the scroller’s translation units. 
  19756.  
  19757.  
  19758.  
  19759. æKY TCommand.Commit
  19760. æD PROCEDURE TCommand.Commit;
  19761. æFi UMacApp.p
  19762. æT METHOD 
  19763. æC Commit does whatever is needed to make the effects of a command permanent. It is 
  19764. an empty method; you must supply all code necessary to implement Commit for 
  19765. your command object. MacApp uses Commit to implement filtered commands—commands 
  19766. that do not change the document object until this method is called. For example, 
  19767. you might wish to implement certain Undo and Redo methods in this way. The 
  19768. Commit method is also used with commands that cannot free items until the command 
  19769. can no longer be undone. You rarely call the Commit method yourself; rather, it 
  19770. is called by TApplication.CommitLastCommand when the command can no longer be 
  19771. undone or redone—for example, when the user chooses a new undoable command, 
  19772. closes the document associated with the command, or quits the application. It is 
  19773. not called if the command was left undone—that is, in the same state as after 
  19774. UndoIt is invoked. 
  19775.  
  19776.  
  19777.  
  19778. æKY TCommand.DoIt
  19779. æD PROCEDURE TCommand.DoIt;
  19780. æFi UMacApp.p
  19781. æT METHOD 
  19782. æC The procedure TCommand.DoIt is an empty method; you must always override it, 
  19783. supplying the code to do the action of the command. You almost never call the DoIt 
  19784. method yourself; TApplication.PerformCommand calls DoIt when the user 
  19785. initially chooses the command. The only likely exception to this rule is that your 
  19786. RedoIt method may also call DoIt. 
  19787.  
  19788.  
  19789.  
  19790. æKY TCommand.Fields
  19791. æD PROCEDURE TCommand.Fields(PROCEDURE  DoToField(fieldName: Str255; fieldAddr: Ptr; 
  19792.   fieldType: INTEGER)); OVERRIDE;
  19793. æFi UMacApp.p
  19794. æT METHOD 
  19795. æC Fields reports the contents of each field of the TCommand object to the MacApp 
  19796. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  19797. contents of each field. Fields iterates over all the fields of the TCommand 
  19798. object, performing DoToField on each one. The fieldName parameter is the name of 
  19799. the field. The fieldAddr parameter is the field’s location in memory. The 
  19800. fieldType parameter uses a predefined constant to tell Fields what type of information 
  19801. to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  19802. must override this method in your subclasses if you want the Inspector to display 
  19803. your fields. Your override must call INHERITED Fields as its last action to 
  19804. ensure that the inherited fields are also displayed. 
  19805.  
  19806.  
  19807.  
  19808. æKY TCommand.ICommand
  19809. æD PROCEDURE TCommand.ICommand(itsCmdNumber: CmdNumber; itsDocument: TDocument; 
  19810.   itsView: TView; itsScroller: TScroller);
  19811. æFi UMacApp.p
  19812. æT METHOD 
  19813. æC ICommand initializes the fields of a TCommand object. The itsCmdNumber parameter 
  19814. specifies which menu command the user chose. The itsDocument parameter is a 
  19815. reference to the document associated with the command object. The itsView 
  19816. parameter is a reference to the view associated with the command object, and the 
  19817. itsScroller parameter is a reference to the scroller associated with the command 
  19818. object. If your document does not require automatic scrolling, you can call 
  19819. ICommand with itsView and itsScroller set to NIL. Methods of the subclasses of 
  19820. TCommand call ICommand as an inherited method to initialize the base fields of a new 
  19821. command object. You can use this method in a similar fashion; your 
  19822. TYourCommand.IYourCommand method calls it as an inherited method to initialize the 
  19823. fields your conmmand object inherits from the TCommand class. 
  19824.  
  19825.  
  19826.  
  19827. æKY TCommand.IsDoneTracking
  19828. æD FUNCTION TCommand.IsDoneTracking: BOOLEAN;
  19829. æFi UMacApp.p
  19830. æT METHOD 
  19831. æC IsDoneTracking indicates whether the command object is finished tracking the 
  19832. mouse. (The command object is also finished tracking if TrackMouse returns NIL). 
  19833. The default method returns the result of fView.IsDoneTracking. You usually do 
  19834. not need to call this method, although you still must deal with queued events if 
  19835. you change the criteria for returning a value of TRUE. 
  19836.  
  19837.  
  19838.  
  19839. æKY TCommand.IsReadyToExecute
  19840. æD FUNCTION TCommand.IsReadyToExecute: BOOLEAN;
  19841. æFi UMacApp.p
  19842. æT METHOD 
  19843. æC IsReadyToExecute returns a value of TRUE when the command is ready to be 
  19844. executed. The default method returns the value of the fReadyToExecute field. MacApp 
  19845. calls this method from TApplication.GetNextCommand as part of its 
  19846. command-handling mechanism. You probably will not need to call this method. You can 
  19847. override IsReadyToExecute to base the execution of the command on more sophisticated 
  19848. criteria. 
  19849.  
  19850.  
  19851.  
  19852. æKY TCommand.RedoIt
  19853. æD PROCEDURE TCommand.RedoIt;
  19854. æFi UMacApp.p
  19855. æT METHOD 
  19856. æC RedoIt is an empty method; you must always override it, supplying the code to 
  19857. redo the action of the DoIt command. You may implement RedoIt by restoring the 
  19858. document to its previous state—its state when DoIt was originally invoked—and 
  19859. then simply calling DoIt again. Thus, your implementation of RedoIt may carry out 
  19860. a variety of actions, such as changing the selection, restoring text, restoring 
  19861. styles, and then call TCommand.DoIt. You almost never call RedoIt yourself; 
  19862. TApplication.DoMenuCommand calls your RedoIt method when the user chooses the 
  19863. Undo/Redo menu item an even number of times. 
  19864.  
  19865.  
  19866.  
  19867. æKY TCommand.TrackConstrain
  19868. æD PROCEDURE TCommand.TrackConstrain(anchorPoint, previousPoint: VPoint; 
  19869.   VAR nextPoint: VPoint);
  19870. æFi UMacApp.p
  19871. æT METHOD 
  19872. æC TrackConstrain is an empty method; you must override it, providing code to 
  19873. constrain mouse movement in any way your application requires. This method is used 
  19874. only by mouse trackers. The anchorPoint parameter is the location of the mouse 
  19875. pointer, in view coordinates, when the mouse button was clicked in the view. The 
  19876. previousPoint parameter represents the location of the mouse when it was last 
  19877. tracked. The nextPoint parameter is the current location of the mouse, in view 
  19878. coordinates. Your override version of this method constrains the mouse by 
  19879. changing the value of nextPoint appropriately. You usually do not call this method 
  19880. yourself—instead, MacApp sends a message to TApplication.TrackMouse as the mouse 
  19881. moves, and TrackMouse calls TCommand.TrackConstrain. When TrackConstrain’s 
  19882. fConstrainsMouse field is TRUE, mouse movement is constrained. The default value 
  19883. of fConstrainsMouse is FALSE. (For further information on mouse trackers, see 
  19884. the discussion of mouse operations in the MacApp 2.0 Cookbook.) 
  19885.  
  19886.  
  19887.  
  19888. æKY TCommand.TrackFeedback
  19889. æD PROCEDURE TCommand.TrackFeedback(anchorPoint, nextPoint: VPoint; turnItOn, 
  19890.   mouseDidMove: BOOLEAN);
  19891. æFi UMacApp.p
  19892. æT METHOD 
  19893. æC TrackFeedback provides onscreen feedback for the user while the mouse is being 
  19894. tracked (that is, while the mouse button is pressed and a mouse-tracker object 
  19895. exists). The default version provides “rubber band” feedback: a dotted-line box 
  19896. between the mouse pointer's position when the mouse button was first pressed 
  19897. and its current position. The anchorPoint parameter is the position, in view 
  19898. coordinates, of the mouse pointer when the mouse button was pressed. The nextPoint 
  19899. parameter is the mouse pointer's current position, described in view 
  19900. coordinates. The value of the turnItOn parameter is TRUE if the feedback is to be 
  19901. turned on. The value of the mouseDidMove parameter is TRUE if the mouse moved more 
  19902. than the hysteresis value since the last time TrackFeedback was called. (MacApp 
  19903. uses the hysteresis value, supplied by TApplication.TrackMouse, to determine if 
  19904. multiple mouse clicks are close enough on the screen to be considered part of a 
  19905. double or triple click.) You rarely call this method 
  19906. yourself—TApplication.TrackMouse calls TCommand.TrackFeedback as needed when MacApp 
  19907. intercepts mouse-down events. However, you can override this method to provide other 
  19908. kinds of feedback while tracking the mouse. (For further discussion of mouse trackers, 
  19909. see the discussion of mouse operations in the MacApp 2.0 Cookbook.) 
  19910.  
  19911.  
  19912.  
  19913. æKY TCommand.TrackMouse
  19914. æD FUNCTION TCommand.TrackMouse(aTrackPhase: TrackPhase; VAR anchorPoint, 
  19915.   previousPoint, nextPoint: VPoint; mouseDidMove: BOOLEAN): TCommand;
  19916. æFi UMacApp.p
  19917. æT METHOD 
  19918. æC TrackMouse allows you to carry out any actions (other than feedback or mouse 
  19919. constraint) that depend on the movement of the mouse or on the track phase. 
  19920. Although applications may sometimes return a different mouse-tracker object, 
  19921. TrackMouse usually returns SELF. The aTrackPhase parameter describes the current phase 
  19922. of the mouse-tracking process. MacApp sets its value to trackPress when the 
  19923. mouse button is first pressed. When the mouse has moved more than the hysteresis 
  19924. value since the last time TrackFeedback was called, MacApp sets the value of the 
  19925. aTrackPhase parameter to trackMove. When the mouse button is released, MacApp 
  19926. sets aTrackPhase to trackRelease. When aTrackPhase is set to trackPress, all 
  19927. three points (anchorPoint, previousPoint, and nextPoint) have the same value. 
  19928. When aTrackPhase is set to trackRelease, the nextPoint parameter contains the 
  19929. coordinates of the location of the mouse-up event. The anchorPoint parameter is the 
  19930. position of the mouse pointer, in view coordinates, when the mouse button was 
  19931. first pressed. If you change this value, the new value is passed to you in the 
  19932. parameter aTrackPhase the next time TrackMouse is called. The previousPoint 
  19933. parameter is the position, in view coordinates, of the mouse pointer the last time 
  19934. TrackMouse was called. The nextPoint parameter is the current position of the 
  19935. mouse pointer, in view coordinates. Although you can change the value of 
  19936. nextPoint yourself, it is preferable to use TCommand.TrackConstrain to limit mouse 
  19937. movement. The value of nextPoint at the time TrackMouse exits will be passed to 
  19938. you as the value of previousPoint the next time TrackMouse is called. MacApp 
  19939. sets the value of the mouseDidMove parameter to TRUE if the mouse moved since the 
  19940. last time TCommand.TrackFeedback was called. However, SELF.TrackConstrain may 
  19941. set the mouse coordinates back to values as if no movement had occurred; thus, 
  19942. the mouse has not necessarily moved the first time TrackMouse is called with 
  19943. aTrackPhase set to trackMove. Test the value of mouseDidMove to determine whether 
  19944. you should consider the mouse to have moved. The mouseDidMove parameter will 
  19945. have the value TRUE if aTrackPhase has a value of either trackPress or 
  19946. trackRelease; otherwise, its value is TRUE if nextPoint and previousPoint are not equal. 
  19947. You never call TCommand.TrackMouse yourself; rather, TApplication.TrackMouse 
  19948. calls it when the mouse button is first pressed, as the mouse moves, and when the 
  19949. mouse button is released. You often override this method to take 
  19950. application-specific action. (For further information on mouse trackers, see the 
  19951. discussion of mouse operations in the MacApp 2.0 Cookbook.) 
  19952.  
  19953.  
  19954.  
  19955. æKY TCommand.UndoIt
  19956. æD PROCEDURE TCommand.UndoIt;
  19957. æFi UMacApp.p
  19958. æT METHOD 
  19959. æC UndoIt, when overridden, reverses the action of the command DoIt and is an empty 
  19960. method; you must always override it, supplying the code to undo the action of 
  19961. DoIt. You usually do not call UndoIt yourself; TApplication.DoMenuCommand calls 
  19962. UndoIt when the user chooses the Undo menu item an odd number of times. 
  19963.  
  19964.  
  19965.  
  19966. æKY TCommandList.Compare
  19967. æD FUNCTION TCommandList.Compare(item1, item2: TObject): INTEGER; OVERRIDE;
  19968.  
  19969.  
  19970. æFi UMacApp.p
  19971. æT METHOD 
  19972. æC The Compare method compares the fPriority field of two command objects in a 
  19973. list. Compare returns one of the constants kItem1LessThanItem2, kItem1EqualItem2, 
  19974. or kItem1GreaterThanItem2, according to whether the value of the fPriority field 
  19975. of item1 is less than, equal to, or greater than the value of the fPriority 
  19976. field of item2. MacApp calls TCommandList.Compare from TCommandList.Insert to 
  19977. determine the position in which to place a new command when inserting it in the 
  19978. command queue. You usually do not need to call this method yourself. 
  19979.  
  19980.  
  19981.  
  19982. æKY TCommandList.Fields
  19983. æD PROCEDURE TCommandList.Fields(PROCEDURE DoToField(fieldName: Str255; 
  19984.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  19985.  
  19986. æFi UMacApp.p
  19987. æT METHOD 
  19988. æC Fields reports the contents of each field of the TCommandList object to the 
  19989. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  19990. the contents of each field. Fields iterates over all the fields of the 
  19991. TCommandList object, performing DoToField on each one. The fieldName parameter is the 
  19992. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  19993. fieldType parameter uses a predefined constant to tell Fields what type of 
  19994. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  19995. You must override this method in your subclasses if you want the Inspector to 
  19996. display your fields. Your override must call INHERITED Fields as its last 
  19997. action to ensure that the inherited fields are also displayed. 
  19998.  
  19999.  
  20000.  
  20001. æKY TCommandList.ICommandList
  20002. æD PROCEDURE TCommandList.ICommandList;
  20003. æFi UMacApp.p
  20004. æT METHOD 
  20005. æC ICommandList initializes a TCommandList object. MacApp calls ICommandList when 
  20006. initializing the command-handling mechanism. You usually do not need to call 
  20007. this method yourself. 
  20008.  
  20009.  
  20010.  
  20011. æKY TCommandList.Insert
  20012. æD PROCEDURE TCommandList.Insert(item: TObject); OVERRIDE;
  20013.  
  20014. æFi UMacApp.p
  20015. æT METHOD 
  20016. æC The Insert method inserts a command object in the command queue, positioning the 
  20017. object based on the value of its fPriority field. Commands are ranked from 
  20018. highest to lowest priority; new commands are inserted in the list after the last 
  20019. item having equal priority. Thus, commands are executed with regard to priority 
  20020. and the arrival sequence within Compare ordering. This method guarantees 
  20021. insertion even under low-memory conditions because it allocates temporary memory 
  20022. rather than permanent memory. The item parameter is the command object to be 
  20023. inserted in the list. Insert is internal to the command-handling mechanism in MacApp; 
  20024. you usually do not need to call or override it yourself. This method overrides 
  20025. TSortedList.Insert because the command queue is not guaranteed to be in sorted 
  20026. order, as the TSortedList version of Insert assumes it to be. 
  20027.  
  20028.  
  20029.  
  20030. æKY TControl.ComputeSize
  20031. æD PROCEDURE TControl.ComputeSize(VAR newSize: VPoint); OVERRIDE;
  20032. æFi UMacApp.p
  20033. æT METHOD 
  20034. æC ComputeSize adjusts the size of a TView object. This override adjusts the 
  20035. control's insets appropriately using the result returned by TView.ComputeSize as a 
  20036. starting value. The newSize parameter is the size, in view coordinates, of the 
  20037. new view. The newSize parameter is set by the method TView.ComputeSize. 
  20038. ComputeSize is called when the view or superview containing the control changes size. 
  20039. This method may also be called as a result of a change in the size of the 
  20040. control's label. You usually do not need to call this method yourself. 
  20041.  
  20042.  
  20043.  
  20044. æKY TControl.ContainsMouse
  20045. æD FUNCTION TControl.ContainsMouse(theMouse: VPoint): BOOLEAN; OVERRIDE;
  20046. æFi UMacApp.p
  20047. æT METHOD 
  20048. æC ContainsMouse returns TRUE only if the mouse pointer is in the control’s active 
  20049. area. The parameter theMouse is the position of the mouse in view coordinates. 
  20050. ContainsMouse is called by TControl.TrackMouse during the trackMove and 
  20051. trackRelease phases. If ContainsMouse returns the value TRUE during the trackMove 
  20052. phase, the control is highlighted and redrawn to reflect the effects of tracking 
  20053. the mouse while it is in the control's active area. If ContainsMouse also returns 
  20054. the value TRUE during the trackRelease phase, TControl.TrackMouse calls 
  20055. SELF.DoChoice to handle the mouse up event in the control's active area. You can call 
  20056. ContainsMouse yourself to find out if the mouse pointer is within the 
  20057. boundaries of a view. 
  20058.  
  20059.  
  20060.  
  20061. æKY TControl.ControlArea
  20062. æD PROCEDURE TControl.ControlArea(VAR theArea: Rect);
  20063. æFi UMacApp.p
  20064. æT METHOD 
  20065. æC ControlArea returns the view's active control area as a QuickDraw rectangle. The 
  20066. parameter theArea is the rectangle defining the control's active area. 
  20067. ControlArea is called by MacApp when it requires the location of a control's active 
  20068. area. Situations in which this information is required include tracking the mouse 
  20069. when it is in a control (TControl.ContainsMouse), drawing or highlighting 
  20070. controls (TPopup.CalcLabelRect, TPopup.CalcMenuRect, TControl.Dim, TCluster.Draw, 
  20071. TIcon.Draw, TPattern.Draw, TPicture.Draw, TPopup.Draw, TStaticText.Draw, 
  20072. TControl.Hilite), initializing controls (TButton.IRes, TCheckBox.IRes, TRadio.IRes, 
  20073. TScrollBar.IRes), and drawing certain text views (TEditText.RestartEdit, 
  20074. TEditText.SetText, TStaticText.SetText). You can call ControlArea yourself to 
  20075. determine the location of a control's active area. 
  20076.  
  20077.  
  20078.  
  20079. æKY TControl.Dim
  20080. æD PROCEDURE TControl.Dim;
  20081. æFi UMacApp.p
  20082. æT METHOD 
  20083. æC Dim creates the control’s dim effect by painting a gray pattern over the 
  20084. control; it can be overridden to change the way the dim effect is drawn for a control. 
  20085. Dim is called by TControl.Draw when the value of fDimmed is TRUE. Rather than 
  20086. calling this method yourself, you should call TControl.DimState to draw a 
  20087. control's dim effect when the control is disabled; DimState changes the control's 
  20088. dim state only when necessary to match the state you specify, and allows you to 
  20089. specify whether the control is to be redrawn immediately. 
  20090.  
  20091.  
  20092.  
  20093. æKY TControl.DimState
  20094. æD PROCEDURE TControl.DimState(state, redraw: BOOLEAN);
  20095. æFi UMacApp.p
  20096. æT METHOD 
  20097. æC DimState sets the state of a control's appearance on the screen, redrawing it if 
  20098. requested; this method implements logic to change the control's dim state only 
  20099. when necessary to match the state you specify. You can set the state parameter 
  20100. to TRUE to dim the control. You can set the redraw parameter to TRUE if the 
  20101. change in appearance is to be redrawn immediately. You can set redraw to FALSE 
  20102. when you know the control will be redrawn eventually and you wish to avoid 
  20103. drawing it twice, which makes the screen appear to flicker. MacApp never calls 
  20104. DimState; it is included for your convenience. You can use this method to set a 
  20105. control's dim state and redraw it on request. 
  20106.  
  20107.  
  20108.  
  20109. æKY TControl.DoMouseCommand
  20110. æD FUNCTION TControl.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  20111.   VAR hysteresis: Point): TCommand; OVERRIDE;
  20112. æFi UMacApp.p
  20113. æT METHOD 
  20114. æC DoMouseCommand returns a TControlTracker object to track the mouse in the active 
  20115. area of a TControl view. The parameter theMouse is the mouse pointer’s current 
  20116. location, described in view coordinates. The info parameter is the event 
  20117. record of the mouse-down event that caused DoMouseCommand to be called. The 
  20118. hysteresis parameter is a point that represents the horizontal and vertical distance 
  20119. the mouse can travel between clicks and still be considered to be at the same 
  20120. location. MacApp uses this parameter to determine whether a double click has 
  20121. occurred or if a control has moved. DoMouseCommand is called by 
  20122. TView.HandleMouseDown when MacApp receives a mouse-down event in a TControl object. 
  20123. You usually do not need to call this method yourself. 
  20124.  
  20125.  
  20126.  
  20127. æKY TControl.Draw
  20128. æD PROCEDURE TControl.Draw(area: Rect); OVERRIDE;
  20129. æFi UMacApp.p
  20130. æT METHOD 
  20131. æC This method draws the control’s adornment, calls its Dim method if the value of 
  20132. the control’s fDimmed field is TRUE, and calls its Hilite method if the value 
  20133. of the control’s fHilite field is TRUE. The area parameter is a QuickDraw 
  20134. rectangle, described in local coordinates, that defines the part of the control that 
  20135. needs to be redrawn. You use this parameter to optimize drawing speed. Draw is 
  20136. called as an inherited method in the Draw methods of the following subclasses 
  20137. of TControl: TCluster, TEditText, TStaticText, TIcon, TPattern, TPopup, and 
  20138. TPicture. You can do the same in your methods that draw TControl objects, or 
  20139. whenever you need the services that this particular Draw method provides. 
  20140.  
  20141.  
  20142.  
  20143. æKY TControl.Fields
  20144. æD PROCEDURE TControl.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  20145.   fieldType: INTEGER)); OVERRIDE;
  20146. æFi UMacApp.p
  20147. æT METHOD 
  20148. æC Fields reports the contents of each field of the TControl object to the MacApp 
  20149. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  20150. contents of each field. Fields iterates over all the fields of the TControl 
  20151. object, performing DoToField on each one. The fieldName parameter is the name of 
  20152. the field. The fieldAddr parameter is the field’s location in memory. The 
  20153. fieldType parameter uses a predefined constant to tell Fields what type of information 
  20154. to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  20155. must override this method in your subclasses if you want the Inspector to display 
  20156. your fields. Your override must call INHERITED Fields as its last action to 
  20157. ensure that the inherited fields are also displayed. 
  20158.  
  20159.  
  20160.  
  20161. æKY TControl.Flash
  20162. æD PROCEDURE TControl.Flash;
  20163. æFi UMacApp.p
  20164. æT METHOD 
  20165. æC This method flashes the control by calling HiliteState twice. Flash is called by 
  20166. TDialogView.DismissDialog when the user clicks the control that dismisses the 
  20167. dialog box. You can call it to make TControl controls flash. 
  20168.  
  20169.  
  20170.  
  20171. æKY TControl.Focus
  20172. æD FUNCTION TControl.Focus: BOOLEAN; OVERRIDE;
  20173. æFi UMacApp.p
  20174. æT METHOD 
  20175. æC This overridden version of Focus first checks that the view has been focused by 
  20176. TView.Focus, then sets the current port’s text style and returns the value 
  20177. TRUE. Focus returns the value FALSE if the view is not focused. MacApp calls Focus 
  20178. prior to doing almost anything to a control or a view, including calling 
  20179. methods that affect the controls themselves (remember, controls are actually views); 
  20180. tracking the mouse in a control; and validating, drawing and resizing views. 
  20181. You should call focus in any TControl method (except Draw) that draws in the 
  20182. view. You should not change the behavior of Focus. 
  20183.  
  20184.  
  20185.  
  20186. æKY TControl.Hilite
  20187. æD PROCEDURE TControl.Hilite;
  20188. æFi UMacApp.p
  20189. æT METHOD 
  20190. æC Hilite creates the control’s highlighting effect. Since this method is 
  20191. responsible for both highlighting and unhighlighting, it can examine the fHilite field 
  20192. to see whether it should highlight or unhighlight. The standard behavior is to 
  20193. simply invert the control, but you can override this method to change the way 
  20194. highlighting is drawn. Hilite is called from TControl.HiliteState to highlight or 
  20195. unhighlight the control, and from TControl.Draw when the value of the 
  20196. control’s fHilite field is TRUE. Rather than calling Hilite when you wish to highlight 
  20197. or unhighlight a control, it is preferable to call HiliteState. The HiliteState 
  20198. method changes the control's highlight state only when necessary to match the 
  20199. state you specify, and allows you to specify whether the control is to be 
  20200. redrawn immediately. 
  20201.  
  20202.  
  20203.  
  20204. æKY TControl.HiliteState
  20205. æD PROCEDURE TControl.HiliteState(state, redraw: BOOLEAN);
  20206. æFi UMacApp.p
  20207. æT METHOD 
  20208. æC This method sets the highlight state and appearance of the control. You can set 
  20209. the state parameter to TRUE if you want to highlight the control. You can set 
  20210. the value of the redraw parameter to TRUE if you want the change in the 
  20211. control's appearance to be redrawn immediately. You can set redraw to FALSE when you 
  20212. know the control will be redrawn eventually and you wish to avoid drawing it 
  20213. twice, which makes the screen appear to flicker or flash. TControl.TrackMouse calls 
  20214. HiliteState to highlight the control when the user clicks it. You can call 
  20215. this method to highlight or dim a control. 
  20216.  
  20217.  
  20218.  
  20219. æKY TControl.IControl
  20220. æD PROCEDURE TControl.IControl(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  20221.   itsHSizeDet, itsVSizeDet: SizeDeterminer);
  20222. æFi UMacApp.p
  20223. æT METHOD 
  20224. æC IControl initializes a TControl object and associates it with its superview. The 
  20225. itsSuperView parameter is the superview of the view associated with the 
  20226. control. The itsLocation parameter is the location of the control in local view 
  20227. coordinates. The itsSize parameter is the size of the control in pixels. The 
  20228. itsHSizeDet and itsVSizeDet parameters determine how the view's horizontal and 
  20229. vertical dimensions are calculated, respectively. Possible values are sizeSuperView 
  20230. (subview is the same size as superview), sizeRelSuperView (subview size changes 
  20231. an equal amount relative to the superview's size), sizePage (view is to be the 
  20232. size of one page), sizeFillPages (view grows to fill an exact number of pages), 
  20233. sizeVariable (view size fluctuates according to application-specific criteria), 
  20234. or sizeFixed (no special handling of size issues). IControl is called by the 
  20235. initialization method of each of TControl's immediate subclasses. You can use it 
  20236. to initialize TControl objects. 
  20237.  
  20238.  
  20239.  
  20240. æKY TControl.Inset
  20241. æD PROCEDURE TControl.Inset(dh, dv: INTEGER; redraw: BOOLEAN);
  20242. æFi UMacApp.p
  20243. æT METHOD 
  20244. æC Inset decreases the active area of the control by the number of pixels you 
  20245. specify. The dh parameter is the horizontal inset in pixels. The dv parameter is the 
  20246. vertical inset in pixels. If the value of the redraw parameter is TRUE, then 
  20247. the control is immediately redrawn with its new insets. If the value of the 
  20248. redraw parameter is FALSE, then the control is not redrawn, even though the new 
  20249. insets may affect its appearance. You can set redraw to FALSE when you know the 
  20250. control will be redrawn eventually and you wish to avoid drawing it twice, which 
  20251. makes the screen appear to flicker. TEditText.IEditText calls Inset when 
  20252. initializing a new TEditText object. You can call this method when you want to 
  20253. decrease the active area of the control (for example, when your control has a large 
  20254. border). This method performs the same task as TControl.SetInset, but uses a 
  20255. different set of parameters. You can use either method to set the active area of 
  20256. the control, depending on how you want to accomplish that task. Inset accepts 
  20257. change values as its parameters; SetInset accepts a rectangle that is used to 
  20258. define the new active area. 
  20259.  
  20260.  
  20261.  
  20262. æKY TControl.InstallColor
  20263. æD PROCEDURE TControl.InstallColor(theColor: RGBColor; redraw: BOOLEAN);
  20264. æFi UMacApp.p
  20265. æT METHOD 
  20266. æC This method sets the color of the control’s text to the color you specify. The 
  20267. color and other information about the control’s text is stored in the fTextStyle 
  20268. field. The parameter theColor is the color in which the text is to be drawn. 
  20269. If the value of the redraw parameter is TRUE, the control is redrawn immediately 
  20270. with its new text color. If the value of the redraw parameter is FALSE, then 
  20271. the control is not redrawn, even though the new text color may affect its 
  20272. appearance. You can set redraw to FALSE when you know the control will be redrawn 
  20273. eventually and you wish to avoid drawing it twice, which makes the screen appear 
  20274. to flicker. MacApp does not call this method; it is provided for your 
  20275. convenience. You can call this method to set the color of the control's text. 
  20276.  
  20277.  
  20278.  
  20279. æKY TControl.InstallTextStyle
  20280. æD PROCEDURE TControl.InstallTextStyle(theTextStyle: TextStyle; redraw: BOOLEAN);
  20281. æFi UMacApp.p
  20282. æT METHOD 
  20283. æC This method sets the text style of the control to the text style you specify. 
  20284. The parameter theTextStyle is the control's text style. If the value of the 
  20285. redraw parameter is TRUE, the control is redrawn immediately with its new text 
  20286. style. If the value of the redraw parameter is FALSE, then the control is not 
  20287. redrawn, even though the new text style may affect its appearance. You can set redraw 
  20288. to FALSE when you know the control will be redrawn eventually and you wish to 
  20289. avoid drawing it twice, which makes the screen appear to flicker. MacApp does 
  20290. not call this method; it is provided for your convenience. You can use it to set 
  20291. the font, style, size and color of the control's label. 
  20292.  
  20293.  
  20294.  
  20295. æKY TControl.IRes
  20296. æD PROCEDURE TControl.IRes(itsDocument: TDocument; itsSuperView: TView; 
  20297.   VAR itsParams: Ptr);
  20298. æFi UMacApp.p
  20299. æT METHOD 
  20300. æC IRes initializes a TControl object from a 'view' resource template. The 
  20301. fDefChoice field is set to mOKHit. The itsDocument parameter specifies the document 
  20302. affected by the control’s action. The itsSuperView parameter specifies the view in 
  20303. which this control appears. The itsParams parameter is a pointer to the 
  20304. portion of the 'view' resource data used to initialize this view. When the IRes 
  20305. method finishes initializing the view, the method moves the pointer to the end of 
  20306. this data. MacApp calls this method for each of the views created from a 'view' 
  20307. resource template, usually in response to a NewTemplateWindow or a DoCreateViews 
  20308. call. You never need to call IRes yourself. 
  20309.  
  20310.  
  20311.  
  20312. æKY TControl.IsDimmed
  20313. æD FUNCTION TControl.IsDimmed: BOOLEAN;
  20314.  
  20315. æFi UMacApp.p
  20316. æT METHOD 
  20317. æC This method returns the value TRUE if the control is currently dimmed. The 
  20318. IsDimmed method is called by TControl.IRes and TControl.WRes to obtain an initial 
  20319. dim state for new TControl objects. You can use this method in a similar fashion. 
  20320.  
  20321.  
  20322.  
  20323.  
  20324. æKY TControl.Resize
  20325. æD PROCEDURE TControl.Resize(width, height: VCoordinate; 
  20326.   invalidate: BOOLEAN); OVERRIDE;
  20327. æFi UMacApp.p
  20328. æT METHOD 
  20329. æC This method resizes the TControl view, redrawing if requested. This method 
  20330. overrides TView.Resize, which redraws only the part of the view that has changed 
  20331. size; the override redraws the entire TControl view. The width parameter is the 
  20332. view’s new horizontal dimension, expressed in local view coordinates. The height 
  20333. parameter is the view’s new vertical dimension, expressed in local view 
  20334. coordinates. If you set the value of the invalidate parameter to TRUE, the entire view 
  20335. is invalidated, forcing it to be redrawn in the update process. When you know 
  20336. the view will be redrawn eventually and wish to avoid drawing it twice—which 
  20337. makes the screen appear to flash—you can set the invalidate parameter to FALSE. 
  20338. MacApp calls Resize when something happens that may affect the size of the view 
  20339. containing the control. Resize is called by TView.SuperViewChangedSize whenever 
  20340. any superview of the control’s view changes size. Resize is also called by 
  20341. TControl.Inset and TControl.SetInset because changing the appearance of a control 
  20342. may necessitate resizing its view. Also, TCtlMgr.Resize and TEditText.Resize 
  20343. both accomplish their respective tasks in part by calling INHERITED Resize. You 
  20344. can use Resize in a similar fashion. 
  20345.  
  20346.  
  20347.  
  20348. æKY TControl.SetInset
  20349. æD PROCEDURE TControl.SetInset(newInset: Rect; redraw: BOOLEAN);
  20350. æFi UMacApp.p
  20351. æT METHOD 
  20352. æC This method sets the control’s inset to that specified by the dimensions of the 
  20353. rectangle it accepts as a parameter. The newInset parameter is a rectangle 
  20354. defining the new active area of the control. If the value of the redraw parameter 
  20355. is TRUE, the control is redrawn immediately with its new insets. If the value of 
  20356. the redraw parameter is FALSE, then the control is not redrawn, even though 
  20357. the new insets may affect its appearance. You can set redraw to FALSE when you 
  20358. know the control will be redrawn eventually and you wish to avoid drawing it 
  20359. twice, which makes the screen appear to flicker. You can call this method when you 
  20360. want to decrease the active area of the control (for example, when your control 
  20361. has a large border). This method performs the same task as TControl.Inset, but 
  20362. uses a different set of parameters. You can use either method to set the 
  20363. active area of the control, depending on how you want to accomplish that task. Inset 
  20364. accepts change values as its parameters; SetInset accepts a rectangle that is 
  20365. used to define the new active area. 
  20366.  
  20367.  
  20368.  
  20369. æKY TControl.TrackFeedback
  20370. æD PROCEDURE TControl.TrackFeedback(anchorPoint, nextPoint: VPoint; turnItOn, 
  20371.   mouseDidMove: BOOLEAN); OVERRIDE;
  20372.  
  20373.  
  20374. æFi UMacApp.p
  20375. æT METHOD 
  20376. æC TrackFeedback is overriden to be an empty method. This blocks the default 
  20377. behavior of TView.TrackFeedback and allows TControl.TrackMouse to provide the default 
  20378. behavior for controls. Because it is an empty method, TrackFeedback ignores 
  20379. its parameters. If you were to write your own version of this method, you could 
  20380. use them as the other TrackFeedback methods do: The anchorPoint parameter is the 
  20381. position of the mouse pointer, in view coordinates, when the mouse button was 
  20382. pressed. The nextPoint parameter is the mouse pointer’s current position, 
  20383. described in view coordinates. The value of the turnItOn parameter must be TRUE if 
  20384. the feedback is to be enabled. The value of the mouseDidMove parameter must be 
  20385. TRUE if the mouse moved more than the hysteresis value since the last time 
  20386. TrackFeedback was called. (MacApp uses the hysteresis value to determine if multiple 
  20387. mouse clicks are close enough on the screen to be considered part of a double 
  20388. or triple click.) MacApp does not call TControl.TrackFeedback, because mouse 
  20389. tracking for controls is implemented in the TControl.TrackMouse method. 
  20390.  
  20391.  
  20392.  
  20393. æKY TControl.TrackMouse
  20394. æD PROCEDURE TControl.TrackMouse(aTrackPhase: TrackPhase; VAR anchorPoint,  
  20395.   previousPoint, nextPoint: VPoint;  mouseDidMove: BOOLEAN); OVERRIDE;
  20396. æFi UMacApp.p
  20397. æT METHOD 
  20398. æC TrackMouse carries out any mouse-tracking activity required by the control, 
  20399. other than that implemented in TrackConstrain and TrackFeedback. The default 
  20400. TrackMouse method highlights the control when the user clicks the control, 
  20401. unhighlights the control when the user clicks elsewhere, and calls DoChoice when the 
  20402. user releases the mouse button. The aTrackPhase parameter describes the current 
  20403. phase of the mouse-tracking process. MacApp sets its value to trackPress when the 
  20404. mouse button is first pressed. When the mouse has moved more than the 
  20405. hysteresis value since the last time TrackFeedback was called, MacApp sets aTrackPhase 
  20406. to trackMove. When the mouse button is released, MacApp sets aTrackPhase to 
  20407. trackRelease. When aTrackPhase is set to trackPress, all three points (anchorPoint, 
  20408. previousPoint, and nextPoint) have the same value. When aTrackPhase is set to 
  20409. trackRelease, the nextPoint parameter specifies the coordinate of the location 
  20410. of the mouse-up event. The anchorPoint parameter is the position of the mouse 
  20411. pointer, in view coordinates, when the mouse button was pressed. If you change 
  20412. this value, the new value is passed to you the next time TrackMouse is called. 
  20413. The previousPoint parameter is the position, in view coordinates, of the mouse 
  20414. pointer the last time TrackMouse method was called. The nextPoint parameter is 
  20415. the current position of the mouse pointer, in view coordinates. Although you can 
  20416. change the value of nextPoint yourself, it is preferable to use 
  20417. TCommand.TrackConstrain to limit mouse movement. The value of nextPoint at the time 
  20418. TrackMouse exits is passed to you as the value of previousPoint the next time 
  20419. TrackMouse is called. The mouseDidMove parameter is set to TRUE if the mouse moved 
  20420. since the last time TControl.TrackFeedback was called. However, SELF.TrackConstrain 
  20421. may set the mouse coordinates back to values as if no movement had occurred; 
  20422. thus, you should not necessarily consider the mouse to have moved the first time 
  20423. TrackMouse is called with aTrackPhase set to trackMove. Instead, test the value 
  20424. of mouseDidMove to determine whether you should consider the mouse to have 
  20425. moved. The mouseDidMove parameter has the value TRUE if aTrackPhase has a value of 
  20426. either trackPress or trackRelease; otherwise, it has the value TRUE if 
  20427. nextPoint and previousPoint are not equal. You never call TControl.TrackMouse yourself; 
  20428. rather, TApplication.TrackMouse calls it when the mouse button is first 
  20429. pressed, as the mouse moves, and when the mouse button is released. You often 
  20430. override this method to take application-specific action. (For further discussion of 
  20431. mouse trackers, see the section on handling mouse events in the MacApp 2.0 
  20432. Cookbook.) 
  20433.  
  20434.  
  20435.  
  20436. æKY TControl.Validate
  20437. æD FUNCTION TControl.Validate: LONGINT;
  20438. æFi UMacApp.p
  20439. æT METHOD 
  20440. æC Validate allows subclasses of TControl to inherit a method that returns noErr if 
  20441. the control’s contents are valid. Validation generally applies to controls 
  20442. that accept keyboard entry, but it is not necessarily restricted as such. This 
  20443. method’s default behavior is to return noErr; you must override it to implement 
  20444. any special validation criteria your control may require. MacApp calls this 
  20445. method as an inherited method from TEditText.Validate to obtain an initial value for 
  20446. its result before performing other tests. You can use this method or your 
  20447. override version of it in a similar fashion. 
  20448.  
  20449.  
  20450.  
  20451. æKY TControl.WRes
  20452. æD PROCEDURE TControl.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  20453. æFi UMacApp.p
  20454. æT METHOD 
  20455. æC WRes writes the TControl portion of the view’s resource template to the location 
  20456. specified by the itsParams parameter. The parameter theResource is a handle to 
  20457. the view’s resource template. The parameter itsParams is a pointer to the 
  20458. TControl section of the view’s resource template. WRes is the inverse of the IRes 
  20459. method, and is used only by programs that write 'view' resources; for example, 
  20460. ViewEdit uses this method to create new 'view' resources from views that are 
  20461. active on the screen. You rarely need to call this method yourself. You must 
  20462. override this method in your subclasses to create your own 'view' resources. Your 
  20463. override should check the size of the space remaining in the template past the 
  20464. end of the previously-written resource data; if there is not enough space to 
  20465. write your data into the file, your override should call the global routine 
  20466. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  20467. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  20468. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  20469. You need not be concerned about making the 'view' resource handle too big, 
  20470. because MacApp reclaims unused space by returning a new value for itsParams when 
  20471. the WRes method completes. 
  20472.  
  20473.  
  20474.  
  20475. æKY TControl.WriteRes
  20476. æD PROCEDURE TControl.WriteRes(theResource: ViewRsrcHndl; 
  20477.   VAR itsParams: Ptr); OVERRIDE;
  20478. æFi UMacApp.p
  20479. æT METHOD 
  20480. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('cntl') and 
  20481. class name ('TControl') for the 'view' resource template, and then calls WRes to 
  20482. actually write the resource. The parameter theResource is a handle to the 
  20483. view’s resource template. The parameter itsParams is a pointer to the parameters 
  20484. MacApp uses to create the new resource. MacApp calls this method to write a 
  20485. TControl object as part of a 'view' resource; you can use it in a similar fashion. 
  20486. You can override this method to provide your own unique class name or signature. 
  20487.  
  20488.  
  20489.  
  20490.  
  20491. æKY TControlTracker.Fields
  20492. æD PROCEDURE TControlTracker.Fields(PROCEDURE DoToField(fieldName: Str255; 
  20493.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  20494. æFi UMacApp.p
  20495. æT METHOD 
  20496. æC Fields reports the contents of each field of the TControlTracker object to the 
  20497. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  20498. report the contents of each field. Fields iterates over all the fields of the 
  20499. TControlTracker object, performing DoToField on each one. The fieldName parameter is 
  20500. the name of the field. The fieldAddr parameter is the field’s location in 
  20501. memory. The fieldType parameter uses a predefined constant to tell Fields what type 
  20502. of information to look for in a field. MacApp calls Fields from the MacApp 
  20503. Inspector. You must override this method in your subclasses if you want the 
  20504. Inspector to display your fields. Your override must call INHERITED Fields as its last 
  20505. action to ensure that the inherited fields are also displayed. 
  20506.  
  20507.  
  20508.  
  20509. æKY TControlTracker.IControlTracker
  20510. æD PROCEDURE TControlTracker.IControlTracker(theControl: TControl);
  20511.  
  20512. æFi UMacApp.p
  20513. æT METHOD 
  20514. æC IControlTracker initializes the fields of a TControlTracker command object. The 
  20515. main characteristic of a TControlTracker object is implemented in this method 
  20516. by setting the values of two fields inherited from the TNoChangesCommand class. 
  20517. The inherited field TNoChangesCommand.fTrackNonMovement is set to TRUE and the 
  20518. inherited field TNoChangesCommand.fViewConstrain is set to FALSE. This 
  20519. particular combination of instance variables causes TControlTracker objects to always 
  20520. track the mouse—whether it moves or not—without constraining it to the control's 
  20521. view. As a result, TControlTracker objects easily implement automatic 
  20522. highlighting of controls whenever the mouse pointer should stray within the control's 
  20523. active area. The parameter theControl is the control associated with the command 
  20524. object. MacApp calls IControlTracker when a new mouse tracker is created. You 
  20525. can call this method when you want to initialize a newly-created instance of 
  20526. TControlTracker. Your override version of this method must include all code 
  20527. needed to initialize fields that are unique to your command object. 
  20528.  
  20529.  
  20530.  
  20531. æKY TCtlMgr.BeInPort
  20532. æD PROCEDURE TCtlMgr.BeInPort(itsPort: GrafPtr); OVERRIDE;
  20533. æFi UMacApp.p
  20534. æT METHOD 
  20535. æC BeInPort associates the control with a specified grafPort. The itsPort parameter 
  20536. is a pointer to the grafPort associated with the control. If no Control 
  20537. Manager control is associated with the TCtlMgr object, BeInPort sets the grafPort to 
  20538. gWorkPort. BeInPort is called by TView.AddSubView to associate the current 
  20539. grafPort with the graphics operations being performed in the new subview (such as 
  20540. drawing the control). It is also called by TView.BeInPort when a control is 
  20541. added to a TView subview. You can use this method in a similar fashion. 
  20542.  
  20543.  
  20544.  
  20545. æKY TCtlMgr.CreateCMgrControl
  20546. æD PROCEDURE TCtlMgr.CreateCMgrControl(itsBounds: Rect; itsTitle: Str255; itsValue, 
  20547.   itsMin, itsMax, itsProcID: INTEGER);
  20548. æFi UMacApp.p
  20549. æT METHOD 
  20550. æC CreateCMgrControl creates a new control that behaves like one governed by the 
  20551. Macintosh Control Manager. The itsBounds parameter is the rectangle defining the 
  20552. control's active area in the local coordinates of the grafPort currently 
  20553. associated with the control; for information on setting an appropriate value for the 
  20554. itsBounds parameter, see the discussion of the Toolbox function NewControl in 
  20555. Inside Macintosh, Volume 1. The itsTitle parameter is a string containing the 
  20556. name that appears on the control itself. The itsValue parameter is the initial 
  20557. value of the control setting. The itsMin parameter is the minimum allowable value 
  20558. of the control setting. The itsMax parameter is the maximum allowable value of 
  20559. the control setting. The itsProcID parameter is a unique integer identifying 
  20560. the procedure that implements the control's function, as defined in the Control 
  20561. Manager chapter of Inside Macintosh, Volume 1. CreateCMgrControl is a utility 
  20562. method that is called by the IRes methods of the TCtlMgr subclasses TButton, 
  20563. TCheckBox, TRadio, and TScrollBar when initializing their respective control 
  20564. objects. It is also called by TCtlMgr.ICtlMgr when initializing a new TCtlMgr 
  20565. object. You usually do not need to call it yourself. 
  20566.  
  20567.  
  20568.  
  20569. æKY TCtlMgr.DimState
  20570. æD PROCEDURE TCtlMgr.DimState(state, redraw: BOOLEAN); OVERRIDE;
  20571. æFi UMacApp.p
  20572. æT METHOD 
  20573. æC DimState is overridden to set the state of a control's appearance on the screen, 
  20574. redrawing the control if requested. You can set the state parameter to TRUE to 
  20575. dim the control; this method does nothing if the state parameter matches the 
  20576. value of the control's fDimmed field. You can set the redraw parameter to TRUE 
  20577. if the change in appearance is to be redrawn immediately. You can set redraw to 
  20578. FALSE when you know the control will be redrawn eventually and you wish to 
  20579. avoid drawing it twice, which makes the screen appear to flicker. MacApp never 
  20580. calls DimState; it is included for your convenience. You can use this method to set 
  20581. a control's dim state and redraw it on request. 
  20582.  
  20583.  
  20584.  
  20585. æKY TCtlMgr.DoMouseCommand
  20586. æD FUNCTION TCtlMgr.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  20587.   VAR hysteresis: Point): TCommand; OVERRIDE;
  20588. æFi UMacApp.p
  20589. æT METHOD 
  20590. æC DoMouseCommand performs the appropriate actions to process a mouse click in a 
  20591. TCtlMgr view. This method tracks the mouse while it is in the control and calls 
  20592. DoChoice to allow any of the control’s superviews to respond to the choice code. 
  20593. The default version of this method returns NIL. The parameter theMouse is the 
  20594. mouse pointer’s current location, described in view coordinates. The info 
  20595. parameter is the event record of the mouse-down event that caused DoMouseCommand to 
  20596. be called. The hysteresis parameter is a point that represents the horizontal 
  20597. and vertical distance the mouse can travel between clicks and still be 
  20598. considered to be at the same location. MacApp uses this parameter to determine whether 
  20599. a double click has occurred or if a control has moved. DoMouseCommand is called 
  20600. by TView.HandleMouseDown when the user clicks in the active area of a TControl 
  20601. object. You usually do not need to call this method yourself. 
  20602.  
  20603.  
  20604.  
  20605. æKY TCtlMgr.Draw
  20606. æD PROCEDURE TCtlMgr.Draw(area: Rect); OVERRIDE;
  20607. æFi UMacApp.p
  20608. æT METHOD 
  20609. æC This method draws the image of a TCtlMgr object on the screen if the control is 
  20610. visible. If the current configuration has a 128K ROM (version $75, used in the 
  20611. Macintosh 512K enhanced computer and later Macintosh models) or a newer ROM, 
  20612. this method uses the Control Manager routine Draw1Control to draw the control; if 
  20613. the current configuration has a 64K ROM, this method draws the control by 
  20614. setting the value of the contrlVis field to 0 and calling the Control Manager 
  20615. routine ShowControl. The contrlOwner field associated with the control is 
  20616. temporarily set to the current port in case the control is being printed. The area 
  20617. parameter is a QuickDraw rectangle, described in local coordinates, that defines the 
  20618. part of the control that needs to be redrawn. You use this parameter to 
  20619. optimize drawing speed. Draw is called as an inherited method by the Draw methods of 
  20620. TScrollBar and TSScrollBar. You usually do not need to call Draw yourself. 
  20621.  
  20622.  
  20623.  
  20624. æKY TCtlMgr.Fields
  20625. æD PROCEDURE TCtlMgr.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  20626.   fieldType: INTEGER)); OVERRIDE;
  20627. æFi UMacApp.p
  20628. æT METHOD 
  20629. æC Fields reports the contents of each field of the TCtlMgr object to the MacApp 
  20630. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  20631. contents of each field. Fields iterates over all the fields of the TCtlMgr 
  20632. object, performing DoToField on each one. The fieldName parameter is the name of the 
  20633. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  20634. parameter uses a predefined constant to tell Fields what type of information 
  20635. to look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  20636. override this method in your subclasses if you want the Inspector to display 
  20637. your fields. Your override must call INHERITED Fields as its last action to 
  20638. ensure that the inherited fields are also displayed. 
  20639.  
  20640.  
  20641.  
  20642. æKY TCtlMgr.Free
  20643. æD PROCEDURE TCtlMgr.Free; OVERRIDE;
  20644. æFi UMacApp.p
  20645. æT METHOD 
  20646. æC Free releases the memory used by the TCtlMgr object and then calls INHERITED 
  20647. Free. MacApp calls Free when a control is closed. You usually do not need to call 
  20648. this method yourself. 
  20649.  
  20650.  
  20651.  
  20652. æKY TCtlMgr.GetLongMax
  20653. æD FUNCTION TCtlMgr.GetLongMax: VCoordinate;
  20654.  
  20655.  
  20656. æFi UMacApp.p
  20657. æT METHOD 
  20658. æC GetLongMax returns a numeric value that represents the control’s maximum 
  20659. allowable value, described in view coordinate units. MacApp does not call this method; 
  20660. however, you can call it to obtain a TCtlMgr control's maximum value. It is 
  20661. preferable to call this method, which returns a 32-bit value, rather than 
  20662. TCtlMgr.GetMax. 
  20663.  
  20664.  
  20665.  
  20666. æKY TCtlMgr.GetLongMin
  20667. æD FUNCTION TCtlMgr.GetLongMin: VCoordinate;
  20668.  
  20669. æFi UMacApp.p
  20670. æT METHOD 
  20671. æC GetLongMin returns a numeric value that represents the control’s minimum 
  20672. allowable value, described in view coordinate units. MacApp does not call this method; 
  20673. however, you can call it to obtain a TCtlMgr control's minimum value. It is 
  20674. preferable to call this method, which returns a 32-bit value, rather than 
  20675. TCtlMgr.GetMin. 
  20676.  
  20677.  
  20678.  
  20679. æKY TCtlMgr.GetLongVal
  20680. æD FUNCTION TCtlMgr.GetLongVal: VCoordinate;
  20681.  
  20682. æFi UMacApp.p
  20683. æT METHOD 
  20684. æC GetLongVal returns a numeric value that represents the control’s current value, 
  20685. described in view coordinate units. MacApp calls GetLongVal to get the current 
  20686. setting of a TCheckBox or TRadio control; you also can call it to obtain a 
  20687. TCtlMgr control's current setting. It is preferable to call this method, which 
  20688. returns a 32-bit value, rather than TCtlMgr.GetVal. 
  20689.  
  20690.  
  20691.  
  20692. æKY TCtlMgr.GetMax
  20693. æD FUNCTION TCtlMgr.GetMax: INTEGER;
  20694. æFi UMacApp.p
  20695. æT METHOD 
  20696. æC GetMax returns the maximum allowable value of the control referenced by the 
  20697. fCMgrControl field. GetMax is called by TScrollBar.DoMouseCommand and 
  20698. TSScrollBar.DoMouseCommand. Rather than calling GetMax to obtain a TCtlMgr control's 
  20699. maximum value, it is preferable that you use the method TCtlMgr.GetLongMax, which 
  20700. returns a 32-bit value. 
  20701.  
  20702.  
  20703.  
  20704. æKY TCtlMgr.GetMin
  20705. æD FUNCTION TCtlMgr.GetMin: INTEGER;
  20706. æFi UMacApp.p
  20707. æT METHOD 
  20708. æC GetMin returns minimum allowable value of the control referenced by the 
  20709. fCMgrControl field. Rather than calling GetMin to obtain a TCtlMgr control's minimum 
  20710. value, it is preferable that you use the method TCtlMgr.GetLongMin, which returns 
  20711. a 32-bit value. 
  20712.  
  20713.  
  20714.  
  20715. æKY TCtlMgr.GetText
  20716. æD PROCEDURE TCtlMgr.GetText(VAR theText: Str255);
  20717. æFi UMacApp.p
  20718. æT METHOD 
  20719. æC GetText retrieves the current text to be drawn as the control’s label. When this 
  20720. method returns, the parameter theText stores the text string that this method 
  20721. retrieves. MacApp calls GetText from the WRes methods of TButton, TCheckBox, 
  20722. and TRadio when writing the 'view' resource template that can be used to create 
  20723. these objects. You can call this method to get a TCtlMgr control’s label text. 
  20724.  
  20725.  
  20726.  
  20727. æKY TCtlMgr.GetVal
  20728. æD FUNCTION TCtlMgr.GetVal: INTEGER;
  20729. æFi UMacApp.p
  20730. æT METHOD 
  20731. æC GetVal returns the current value of the control referenced by the fCMgrControl 
  20732. field. GetVal is called by TScrollBar.DoMouseCommand, 
  20733. TSScrollBar.DoMouseCommand, TCheckBox.IsOn, and TRadio.IsOn.Rather than calling GetVal 
  20734. to obtain a TCtlMgr control's current value, it is preferable that you use the method 
  20735. TCtlMgr.GetLongVal, which returns a 32-bit value. 
  20736.  
  20737.  
  20738.  
  20739. æKY TCtlMgr.HiliteState
  20740. æD PROCEDURE TCtlMgr.HiliteState(state, redraw: BOOLEAN); OVERRIDE;
  20741. æFi UMacApp.p
  20742. æT METHOD 
  20743. æC HiliteState highlights the control by calling the Control Manager routine 
  20744. HiliteControl. This has the effect of highlighting the control when the user clicks 
  20745. in the control. The value of the state parameter is TRUE if the control is 
  20746. highlighted. The value of the redraw parameter is TRUE if the change in appearance 
  20747. is to be redrawn immediately. 
  20748.  
  20749.  
  20750.  
  20751. æKY TCtlMgr.ICtlMgr
  20752. æD PROCEDURE TCtlMgr.ICtlMgr(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  20753.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsTitle: Str255; itsVal, itsMin, itsMax, 
  20754.   itsProcID: INTEGER);
  20755. æFi UMacApp.p
  20756. æT METHOD 
  20757. æC ICtlMgr initializes a TCtlMgr object and associates it with its superview. It 
  20758. calls IControl to initialize its inherited data, and then calls CreateCMgrControl 
  20759. to create the Control Manager control. The itsSuperView parameter is the view 
  20760. that contains the control. The itsLocation parameter is the location of the 
  20761. control in local view coordinates. The itsSize parameter is the size of the 
  20762. control in pixels. The itsHSizeDet and itsVSizeDet parameters determine how the 
  20763. view's horizontal and vertical dimensions are calculated, respectively. Possible 
  20764. values are sizeSuperView (subview is the same size as superview), sizeRelSuperView 
  20765. (subview size changes an equal amount relative to the superview's size), 
  20766. sizePage (view is to be the size of one page), sizeFillPages (view grows to fill an 
  20767. exact number of pages), sizeVariable (view size fluctuates according to 
  20768. application-specific criteria), or sizeFixed (no special handling of size issues). The 
  20769. itsTitle parameter is a string containing the name that appears on the control 
  20770. itself. The itsVal parameter is the initial value of the control setting. The 
  20771. itsMin parameter is the minimum allowable value of the control setting. The 
  20772. itsMax parameter is the maximum allowable value of the control setting. The 
  20773. itsProcID parameter is a unique integer identifying the procedure that implements 
  20774. this control's function. ICtlMgr is called by the initialization methods of each 
  20775. of TCtlMgr's immediate subclasses. You can use it to initialize TCtlMgr objects. 
  20776.  
  20777.  
  20778.  
  20779.  
  20780. æKY TCtlMgr.IRes
  20781. æD PROCEDURE TCtlMgr.IRes(itsDocument: TDocument; itsSuperView: TView; 
  20782.   VAR itsParams: Ptr);
  20783.  
  20784. æFi UMacApp.p
  20785. æT METHOD 
  20786. æC IRes initializes a TCtlMgr object from a 'view' resource template. The 
  20787. fDefChoice field is set to mOKHit. The itsDocument parameter specifies the document 
  20788. associated with this control. The itsSuperView parameter specifies the view in 
  20789. which this control appears. The itsParams parameter is a pointer to the portion of 
  20790. the 'view' resource data used to initialize this view. When the IRes method 
  20791. finishes initializing the view, the method moves the pointer to the end of this 
  20792. data. MacApp calls this method for each of the views created from a 'view' 
  20793. resource template, usually in response to a NewTemplateWindow or a DoCreateViews 
  20794. call. You never need to call IRes yourself. 
  20795.  
  20796.  
  20797.  
  20798. æKY TCtlMgr.IsCMgrVisible
  20799. æD FUNCTION TCtlMgr.IsCMgrVisible: BOOLEAN;
  20800. æFi UMacApp.p
  20801. æT METHOD 
  20802. æC IsCMgrVisible returns the value TRUE if the TCtlMgr control is visible. 
  20803. IsCMgrVisible is called by several methods, generally to determine whether they should 
  20804. redraw the control. These methods are TCtlMgr.Draw, TSScrollBar.Draw, 
  20805. TScroller.Resize, and TCtlMgr.WhileFocused. You can use it in a similar fashion. 
  20806.  
  20807.  
  20808.  
  20809. æKY TCtlMgr.Resize
  20810. æD PROCEDURE TCtlMgr.Resize(width, height: VCoordinate; invalidate: BOOLEAN); OVERRIDE;
  20811. æFi UMacApp.p
  20812. æT METHOD 
  20813. æC This method resizes a TCtlMgr view, redrawing it if requested. The width 
  20814. parameter is the view’s new horizontal dimension, expressed in local view coordinates. 
  20815. The height parameter is the view’s new vertical dimension, expressed in local 
  20816. view coordinates. If you set the value of the invalidate parameter to TRUE, the 
  20817. view is invalidated, forcing it to be redrawn in the update process. When you 
  20818. know the view will be redrawn eventually and wish to avoid drawing it 
  20819. twice—which makes the screen appear to flash—you can set the invalidate parameter to 
  20820. FALSE. MacApp calls Resize from TScroller.AdjustScrollBars to change the size of 
  20821. the scroll bars associated with a scroller. You can call it to resize any 
  20822. TCtlMgr view, such as buttons, check boxes, or radio buttons. 
  20823.  
  20824.  
  20825.  
  20826. æKY TCtlMgr.SetCMgrVisibility
  20827. æD PROCEDURE TCtlMgr.SetCMgrVisibility(beVisible: BOOLEAN);
  20828. æFi UMacApp.p
  20829. æT METHOD 
  20830. æC SetCMgrVisibility sets the visibility of the control according to the value of 
  20831. the beVisible parameter; this method sets the value of the contrlVis field of 
  20832. the control specified by fCMgrControl - it does not redraw the control. If the 
  20833. value of the beVisible parameter is TRUE, SetCMgrVisibility sets contrlVis to 
  20834. 255; otherwise, it sets contrlVis to 0. SetCMgrVisibility is called by 
  20835. TCtlMgr.CreateCMgrControl, TSScrollBar.IRes, and TSScrollBar.ISScrollBar, when 
  20836. creating or initializing a TCtlMgr control. SetCMgrVisibility is also called by 
  20837. TCtlMgr.BeInPort, TSScrollBar.BeInPort, TCtlMgr.Draw, TScroller.Resize, and 
  20838. TCtlMgr.WhileFocused when performing graphics operations on the control or its port. 
  20839. You can use it in a similar fashion. 
  20840.  
  20841.  
  20842.  
  20843. æKY TCtlMgr.SetLongMax
  20844. æD PROCEDURE TCtlMgr.SetLongMax(itsMax: VCoordinate; redraw: BOOLEAN);
  20845.  
  20846. æFi UMacApp.p
  20847. æT METHOD 
  20848. æC SetLongMax sets the control’s maximum allowable value and adjusts the value of 
  20849. the fBitsToShift field; this method also redraws the control if requested to do 
  20850. so. It scales the value of itsMax to a 16-bit value and then sets the fLongMax 
  20851. field to the value of itsMax. The itsMax parameter is the maximum value to 
  20852. which the control can be set. If the value of the redraw parameter is TRUE, then 
  20853. the control is immediately redrawn to reflect its new maximum. If the value of 
  20854. the redraw parameter is FALSE, then the control is not redrawn, even though the 
  20855. new value may affect its appearance. You can set redraw to FALSE when you know 
  20856. the control will be redrawn eventually and you wish to avoid drawing it twice, 
  20857. which makes the screen appear to flicker. SetLongMax is called by 
  20858. TScrollBar.SetLongValues and by TScroller.SetScrollLimits. You can call SetLongMax to 
  20859. set the maximum value of any control that has a 32-bit range. 
  20860.  
  20861.  
  20862.  
  20863. æKY TCtlMgr.SetLongMin
  20864. æD PROCEDURE TCtlMgr.SetLongMin(itsMin: VCoordinate; redraw: BOOLEAN);
  20865.  
  20866. æFi UMacApp.p
  20867. æT METHOD 
  20868. æC SetLongMin sets the control’s minimum allowable value; this method also redraws 
  20869. the control if requested to do so. It scales itsMin to a 16-bit value and then 
  20870. sets fLongMin to that value. The itsMin parameter is the minimum value to which 
  20871. the control can be set. If the value of the redraw parameter is TRUE, then the 
  20872. control is immediately redrawn to reflect its new value. If the value of the 
  20873. redraw parameter is FALSE, then the control is not redrawn, even though the new 
  20874. minimum may affect its appearance. You can set redraw to FALSE when you know 
  20875. the control will be redrawn eventually and you wish to avoid drawing it twice, 
  20876. which makes the screen appear to flicker. SetLongMin is called by 
  20877. TScrollBar.SetLongValues. You can call SetLongMin to set the minimum value of any 
  20878. control that has a 32-bit range; before calling SetLongMin you should first call 
  20879. SetLongMax to allow that method to adjust the value of the fBitsToShift field. 
  20880.  
  20881.  
  20882.  
  20883. æKY TCtlMgr.SetLongVal
  20884. æD PROCEDURE TCtlMgr.SetLongVal(itsVal: VCoordinate; redraw: BOOLEAN);
  20885.  
  20886. æFi UMacApp.p
  20887. æT METHOD 
  20888. æC This method sets the control’s current value in view coordinates, redrawing the 
  20889. control if requested. It scales itsVal to a 16-bit value and then sets fLongVal 
  20890. to that value. The itsVal parameter specifies the control's new value. If the 
  20891. value of the redraw parameter is TRUE, then the control will be redrawn to 
  20892. reflect its new value. If the value of the redraw parameter is FALSE, then the 
  20893. control will not be redrawn even though the new value may affect its appearance. 
  20894. You can set redraw to FALSE when you know the control will be redrawn eventually 
  20895. and you wish to avoid drawing it twice, which makes the screen appear to 
  20896. flicker. SetLongVal is called by the TScrollBar methods DeltaValue, DoMouseCommand, 
  20897. and SetLongValues to set scroll bar values. It is also called by 
  20898. TSScrollBar.DoMouseCommand. You can call SetLongVal to set the current value of any 
  20899. control that has a 32-bit range; before calling SetLongVal you should first call 
  20900. SetLongMax to allow it to adjust the value of the fBitsToShift field. 
  20901.  
  20902.  
  20903.  
  20904. æKY TCtlMgr.SetLongValues
  20905. æD PROCEDURE TCtlMgr.SetLongValues(itsVal, itsMin, itsMax: VCoordinate; 
  20906.   redraw: BOOLEAN);
  20907.  
  20908. æFi UMacApp.p
  20909. æT METHOD 
  20910. æC SetLongValues is a shorthand way of calling SetLongMax, SetLongMin, and 
  20911. SetLongVal to set the control’s current values; this method also redraws the control 
  20912. if requested. The method scales the values of the itsVal, itsMin, and itsMax 
  20913. parameters to 16-bit values and then sets fLongVal, fLongMin, and fLongMax, 
  20914. respectively, to those values. The itsVal parameter is the control's current value. 
  20915. The itsMin parameter is the minimum value to which the control can be set, 
  20916. expressed in view coordinates. The itsMax parameter is the maximum value to which the 
  20917. control can be set, expressed in view coordinates. If the value of the redraw 
  20918. parameter is TRUE, then the scroll bar is immediately redrawn to reflect its 
  20919. new value. If the value of the redraw parameter is FALSE, then the scroll bar is 
  20920. not redrawn, even though the new value may affect its appearance. You can set 
  20921. redraw to FALSE when you know the control will be redrawn eventually and you 
  20922. wish to avoid drawing it twice, which makes the screen appear to flicker. 
  20923. SetLongValues is called by TCtlMgr.CreateCMgrControl. Instead of calling SetLongVal, 
  20924. SetLongMax, and SetLongMin, you can call SetLongValues to set the current, 
  20925. maximum, and minimum values of any control having a 32-bit range. Note that you need 
  20926. not call SetLongMax before calling SetLongValues because it calls SetLongMax for you. 
  20927.  
  20928.  
  20929.  
  20930. æKY TCtlMgr.SetMax
  20931. æD PROCEDURE TCtlMgr.SetMax(itsMax: INTEGER; redraw: BOOLEAN);
  20932. æFi UMacApp.p
  20933. æT METHOD 
  20934. æC SetMax sets a TCtlMgr control's maximum allowable value, redrawing the control 
  20935. if requested. The itsMax parameter is the maximum value to which the control can 
  20936. be set. If you set the redraw parameter to TRUE, the control is immediately 
  20937. redrawn to reflect the new value. If you set the value of the redraw parameter to 
  20938. FALSE, then the control is not redrawn, even though the new maximum may affect 
  20939. its appearance. You can set redraw to FALSE when you know the control will be 
  20940. redrawn eventually and you wish to avoid drawing it twice, which makes the 
  20941. screen appear to flicker. SetMax is called by TScrollBar.SetLongMax to set the 
  20942. scroll limits. You can call this method to set the maximum value of a TCtlMgr control. 
  20943.  
  20944.  
  20945.  
  20946. æKY TCtlMgr.SetMin
  20947. æD PROCEDURE TCtlMgr.SetMin(itsMin: INTEGER; redraw: BOOLEAN);
  20948. æFi UMacApp.p
  20949. æT METHOD 
  20950. æC SetMin sets a TCtlMgr control's minimum allowable value, redrawing the control 
  20951. if requested. The itsMin parameter is the minimum value to which the control can 
  20952. be set. If you set the redraw parameter to TRUE, the control is immediately 
  20953. redrawn to reflect the new value. If you set the value of the redraw parameter to 
  20954. FALSE, then the control is not redrawn, even though the new minimum may affect 
  20955. its appearance. You can set redraw to FALSE when you know the control will be 
  20956. redrawn eventually and you wish to avoid drawing it twice, which makes the 
  20957. screen appear to flicker. SetMin is called by TScrollBar.SetLongMin to set the 
  20958. scroll limits. You can call this method to set the minimum value of a TCtlMgr control. 
  20959.  
  20960.  
  20961.  
  20962. æKY TCtlMgr.SetText
  20963. æD PROCEDURE TCtlMgr.SetText(itsText: Str255; redraw: BOOLEAN);
  20964. æFi UMacApp.p
  20965. æT METHOD 
  20966. æC SetText installs the text used as the control’s label. The parameter itsText is 
  20967. the string containing the control’s name. If you set the value of the redraw 
  20968. parameter to TRUE, the control is immediately redrawn to reflect the new text. If 
  20969. you set the value of the redraw parameter to FALSE, then the control is not 
  20970. redrawn, even though the new text may affect its appearance. You can set redraw 
  20971. to FALSE when you know the control will be redrawn eventually and you wish to 
  20972. avoid drawing it twice, which makes the screen appear to flash. You can call this 
  20973. method to set the label text on a control object that is an instance of 
  20974. TCtlMgr or one of its subclasses. 
  20975.  
  20976.  
  20977.  
  20978. æKY TCtlMgr.SetVal
  20979. æD PROCEDURE TCtlMgr.SetVal(newVal: INTEGER; redraw: BOOLEAN);
  20980. æFi UMacApp.p
  20981. æT METHOD 
  20982. æC SetVal sets a TCtlMgr control's current value, redrawing it if requested. The 
  20983. newVal parameter is the control's new setting. If you set the redraw parameter to 
  20984. TRUE, the control is immediately redrawn to reflect the new value. If you set 
  20985. the value of the redraw parameter to FALSE, then the control is not redrawn, 
  20986. even though the new value may affect its appearance. You can set redraw to FALSE 
  20987. when you know the control will be redrawn eventually and you wish to avoid 
  20988. drawing it twice, which makes the screen appear to flicker. SetVal is called by 
  20989. methods that set a TCtlMgr control's value. These methods are 
  20990. TScrollBar.SetLongVal, TCheckBox.SetState, TCheckBox.Toggle, TCheckBox.ToggleIf, 
  20991. TRadio.SetState, TRadio.Toggle, and TRadio.ToggleIf. You can use SetVal in a similar 
  20992. fashion. 
  20993.  
  20994.  
  20995.  
  20996. æKY TCtlMgr.SetValues
  20997. æD PROCEDURE TCtlMgr.SetValues(itsVal, itsMin, itsMax: INTEGER; redraw: BOOLEAN);
  20998. æFi UMacApp.p
  20999. æT METHOD 
  21000. æC The SetValues method sets a TCtlMgr control's minimum, maximum, and current 
  21001. value by calling, in turn, the TCtlMgr methods SetCtlMin, SetCtlMax, and 
  21002. SetCtlValue; the SetValues method also redraws the control if requested. The parameter 
  21003. itsVal is the control's current setting. The parameter itsMin is the minimum 
  21004. value to which the control can be set. The parameter itsMax is the maximum value to 
  21005. which the control can be set. If you set the redraw parameter to TRUE, the 
  21006. control is immediately redrawn to reflect the new values. If you set the value of 
  21007. the redraw parameter to FALSE, then the control is not redrawn, even though the 
  21008. new values may affect its appearance. You can set redraw to FALSE when you 
  21009. know the control will be redrawn eventually and you wish to avoid drawing it 
  21010. twice, which makes the screen appear to flicker. You can call this method instead of 
  21011. making separate calls to SetMax, SetMin, and SetVal. 
  21012.  
  21013.  
  21014.  
  21015. æKY TCtlMgr.WhileFocused
  21016. æD PROCEDURE TCtlMgr.WhileFocused(PROCEDURE DoToControl; redraw: BOOLEAN);
  21017. æFi UMacApp.p
  21018. æT METHOD 
  21019. æC WhileFocused ensures that the control's view is focused before performing the 
  21020. DoToControl procedure on it. If you set the value of the redraw parameter to 
  21021. TRUE, the drawing done by DoToControl occurs on the screen. If the value of redraw 
  21022. is FALSE, then MacApp temporarily makes the control invisible before calling 
  21023. DoToControl; thus, any drawing done by DoToControl is not visible until the view 
  21024. is updated. After DoToControl returns, the control's visibility is restored to 
  21025. its former state. WhileFocused is often called as part of a method that sets a 
  21026. control's value. Methods that call WhileFocused are TSScrollBar.Activate, 
  21027. TCtlMgr.DimState,TCtlMgr.HiliteState, TCtlMgr.Resize, TCtlMgr.SetMax, 
  21028. TCtlMgr.SetMin, TCtlMgr.SetText, TCtlMgr.SetVal, and TCtlMgr.SetValues. You can use 
  21029. this method in a similar fashion. 
  21030.  
  21031.  
  21032.  
  21033. æKY TCtlMgr.WriteRes
  21034. æD PROCEDURE TCtlMgr.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  21035. æFi UMacApp.p
  21036. æT METHOD 
  21037. æC WriteRes is overridden to be an empty method so that TCtlMgr objects are not 
  21038. written as part of a 'view' resource. The TCtlMgr class is never instantiated; it 
  21039. exists to allow instances of its subclasses to inherit useful common behavior. 
  21040. Instances of subclasses of TCtlMgr serve as “wrappers” for Macintosh Control 
  21041. Manager controls, which can only be re-created on initialization and cannot be 
  21042. saved. This version of WRes ignores its parameters; other versions of WRes 
  21043. typically use them as follows: The parameter theResource is a handle to the view’s 
  21044. resource template. The parameter itsParams is a pointer to the parameters MacApp 
  21045. uses to create the new resource. MacApp does not call this method; you should 
  21046. not, either. 
  21047.  
  21048.  
  21049.  
  21050. æKY TDebugApplication.DoMenuCommand
  21051. æD FUNCTION TDebugApplication.DoMenuCommand(aCmdNumber: CmdNumber): TCommand;
  21052. æFm UDebug.inc1.p
  21053. æT METHOD 
  21054. æC DoMenuCommand processes a user’s selection of the Quit command from a menu when 
  21055. the application is compiled with debugging code included. The parameter 
  21056. aCmdNumber is the command number defined for the selected menu item. The default 
  21057. version of DoMenuCommand responds only to a value of cQuit (defined in the file 
  21058. UDebug.p); if aCmdNumber is any other value, this method does nothing. MacApp calls 
  21059. DoMenuCommand when the user chooses the Quit command while in debug mode. This 
  21060. method is internal to the MacApp debugger; you cannot call it yourself or 
  21061. override it. 
  21062.  
  21063.  
  21064.  
  21065. æKY TDebugApplication.HandleAlienEvent
  21066. æD FUNCTION TDebugApplication.HandleAlienEvent
  21067.   (VAR theEventInfo: EventInfo):TCommand; OVERRIDE;
  21068. æFm UDebug.inc1.p
  21069. æT METHOD 
  21070. æC HandleAlienEvent overrides TApplication.HandleAlienEvent to return NIL, to 
  21071. prevent events from being passed to the co-handler chain. The parameter theEventInfo 
  21072. is the event record representing the event to be handled. This method is 
  21073. internal to the MacApp debugger; you cannot call it yourself or override it. 
  21074.  
  21075.  
  21076.  
  21077. æKY TDebugApplication.HandleEvent
  21078. æD PROCEDURE TDebugApplication.HandleEvent(VAR theEvent: EventRecord); OVERRIDE;
  21079. æFm UDebug.inc1.p
  21080. æT METHOD 
  21081. æC HandleEvent dispatches the specified event to its appropriate handler; because 
  21082. PollEvent is not functioning while you are in the debugger, this method 
  21083. overrides TApplication.HandleEvent to call PerformCommand instead of simply posting 
  21084. the command to the command queue. The parameter theEvent is the event record that 
  21085. represents the event that is to be handled. MacApp calls HandleEvent from the 
  21086. TDebugApplication object’s main event loop. This method is internal to the 
  21087. MacApp debugger; you cannot call it yourself or override it. 
  21088.  
  21089.  
  21090.  
  21091. æKY TDebugApplication.HandleKeyDownEvent
  21092. æD FUNCTION TDebugApplication.HandleKeyDownEvent
  21093.   (VAR theEventInfo: EventInfo): TCommand; OVERRIDE;
  21094. æFm UDebug.inc1.p
  21095. æT METHOD 
  21096. æC HandleKeyDownEvent processes the specified key-down event and calls the 
  21097. appropriate DoKeyCommand or DoCommandKey method; this method overrides the 
  21098. TApplication version of HandleKeyDownEvent to mask out keystrokes that have no 
  21099. meaning to the debugger. The parameter theEventInfo is the event record representing 
  21100. the event to be handled. MacApp calls HandleKeyDownEvent when a key-down event 
  21101. occurs. This method is internal to the MacApp debugger; you cannot call it yourself 
  21102. or override it. 
  21103.  
  21104.  
  21105.  
  21106. æKY TDebugApplication.HandleMouseDown
  21107. æD FUNCTION TDebugApplication.HandleMouseDown
  21108.   (VAR theEventInfo: EventInfo): TCommand; OVERRIDE;
  21109. æFm UDebug.inc1.p
  21110. æT METHOD 
  21111. æC HandleMouseDown processes the specified mouse-down event and returns an 
  21112. appropriate TCommand object to handle undoable actions. The parameter theEventInfo is 
  21113. the information from the Toolbox event record describing the mouse-down event 
  21114. that caused this method to be called. MacApp calls HandleMouseDown when it 
  21115. receives a mouse-down event from the system. This method is internal to the MacApp 
  21116. debugger; you cannot call it yourself or override it. 
  21117.  
  21118.  
  21119.  
  21120. æKY TDebugApplication.HandleSystemEvent
  21121. æD FUNCTION TDebugApplication.HandleSystemEvent
  21122.   (VAR theEventInfo: EventInfo): TCommand; OVERRIDE;
  21123. æFm UDebug.inc1.p
  21124. æT METHOD 
  21125. æC HandleSystemEvent handles the events generated when the user passes control 
  21126. between applications or desk accessories in the MultiFinder envirionment. The 
  21127. parameter theEventInfo is the event record representing the event to be handled. 
  21128. MacApp calls HandleSystemEvent when the TDebugApplication object becomes active or 
  21129. inactive. This method is internal to the MacApp debugger; you cannot call it 
  21130. yourself or override it. 
  21131.  
  21132.  
  21133.  
  21134. æKY TDebugApplication.HandleUpdateEvent
  21135. æD FUNCTION TDebugApplication.HandleUpdateEvent
  21136.   (VAR theEventInfo: EventInfo): TCommand; OVERRIDE; 
  21137. æFm UDebug.inc1.p
  21138. æT METHOD 
  21139. æC HandleUpdateEvent handles update events by redrawing the contents of the Debug 
  21140. Transcript window when necessary. The parameter theEventInfo is the event record 
  21141. representing the event to be handled. MacApp calls HandleUpdateEvent in 
  21142. response to update events in the Debug Transcript window, for instance, when it is 
  21143. uncovered and must be redrawn. This method is internal to the MacApp debugger; 
  21144. you cannot call it yourself or override it. 
  21145.  
  21146.  
  21147.  
  21148. æKY TDebugApplication.IDebugApplication
  21149. æD PROCEDURE TDebugApplication.IDebugApplication;
  21150. æFm UDebug.inc1.p
  21151. æT METHOD 
  21152. æC IDebugApplication initializes the TDebugApplication object, making it the end of 
  21153. the target chain (that is, initializing it so that no event handler follows 
  21154. the object in the target chain). MacApp calls IDebugApplication from the 
  21155. InitUDebug procedure. This method is internal to the MacApp debugger; you cannot call 
  21156. it yourself or override it. 
  21157.  
  21158.  
  21159.  
  21160. æKY TDebugApplication.MenuEvent
  21161. æD FUNCTION TDebugApplication.MenuEvent(menuItem: Longint): TCommand; OVERRIDE;
  21162. æFm UDebug.inc1.p
  21163. æT METHOD 
  21164. æC MenuEvent handles a menu selection. It returns a TCommand object to handle 
  21165. undoable commands. The menuItem parameter specifies the item chosen and the menu 
  21166. from which it was chosen, in accordance with normal Macintosh Menu Manager 
  21167. conventions. MacApp calls MenuEvent when the user chooses an item from a menu. This 
  21168. method is internal to the MacApp debugger; you cannot call it yourself or 
  21169. override it. 
  21170.  
  21171.  
  21172.  
  21173. æKY TDebugApplication.PollEvent
  21174. æD PROCEDURE TDebugApplication.PollEvent;
  21175. æFm UDebug.inc1.p
  21176. æT METHOD 
  21177. æC PollEvent calls TDebugApplication.Idle and then TDebugApplication.WaitNextEvent. 
  21178. If it finds a pending event, then it calls TDebugApplication.HandleEvent to 
  21179. dispatch it to the appropriate handler. This method is internal to the MacApp 
  21180. debugger; you cannot call it yourself or override it. 
  21181.  
  21182.  
  21183.  
  21184. æKY TDebugApplication.PostHandleEvent
  21185. æD PROCEDURE TDebugApplication.PostHandleEvent(VAR theEventInfo: EventInfo);
  21186. æFm UDebug.inc1.p
  21187. æT METHOD 
  21188. æC PostHandleEvent performs certain housekeeping functions after calling 
  21189. TDebugApplication.HandleEvent to handle an event. If the menu bar needs to be redrawn, 
  21190. then PostHandleEvent redraws it. PostHandleEvent also calls 
  21191. TDebugApplication.AboutToLoseControl if control is about to be passed to another 
  21192. application or to a desk accessory. PostHandleEvent also calls 
  21193. TDebugApplication.RegainControl when control is returned to the application. The 
  21194. parameter theEventInfo is the event record for the event being handled. MacApp calls 
  21195. PostHandleEvent from TDebugApplication.HandleEvent. This method is internal to the 
  21196. MacApp debugger; you cannot call it yourself or override it. 
  21197.  
  21198.  
  21199.  
  21200. æKY TDebugApplication.WMgrToWindow
  21201. æD FUNCTION TDebugApplication.WMgrToWindow(aWMgrWindow: WindowPtr): TWindow;
  21202. æFm UDebug.inc1.p
  21203. æT METHOD 
  21204. æC WMgrToWindow returns the window object representing the specified Window Manager 
  21205. window; it returns NIL if there is no window object. The aWMgrWindow parameter 
  21206. is a pointer to the Window Manager window. This method is internal to the 
  21207. MacApp debugger; you cannot call it yourself or override it. 
  21208.  
  21209.  
  21210.  
  21211. æKY TDebugCommand.DoIt
  21212. æD PROCEDURE TDebugCommand.DoIt; OVERRIDE;
  21213.  
  21214. æFi UMacApp.p
  21215. æT METHOD 
  21216. æC DoIt enters the MacApp debugger. MacApp calls this method when the user chooses 
  21217. the Enter MacApp Debugger menu item. You never need to call DoIt yourself. 
  21218.  
  21219.  
  21220.  
  21221. æKY TDebugCommand.Fields
  21222. æD PROCEDURE TDebugCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  21223.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  21224.  
  21225. æFi UMacApp.p
  21226. æT METHOD 
  21227. æC Fields reports the contents of each field of the TDebugCommand object to the 
  21228. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  21229. the contents of each field. Fields iterates over all the fields of the 
  21230. TDebugCommand object, performing DoToField on each one. The fieldName parameter is the 
  21231. name of the field. The fieldAddr parameter is the field’s location in memory. 
  21232. The fieldType parameter uses a predefined constant to tell Fields what type of 
  21233. information to look for in a field. MacApp calls Fields from the MacApp 
  21234. Inspector. You must override this method in your subclasses if you want the Inspector 
  21235. to display your fields. our override must call INHERITED Fields as its last 
  21236. action to ensure that the inherited fields are also displayed. 
  21237.  
  21238.  
  21239.  
  21240. æKY TDebugCommand.IDebugCommand
  21241. æD PROCEDURE TDebugCommand.IDebugCommand(itsCmdNumber: CmdNumber);
  21242.  
  21243. æFi UMacApp.p
  21244. æT METHOD 
  21245. æC IDebugCommand initializes a TDebugCommand object and associates it with a 
  21246. command number. The itsCmdNumber parameter is the command number that is associated 
  21247. with a particular menu command, in this case the Enter MacApp Debugger command. 
  21248. The command number is used in the 'cmnu' resource in the resource description 
  21249. file; you typically define a constant to represent that number in both the 
  21250. resource description file and in the appropriate interface or implementation file of 
  21251. the application. MacApp calls IDebugCommand when the user chooses the Enter 
  21252. MacApp Debugger menu item. You usually do not need to call this method yourself. 
  21253.  
  21254.  
  21255.  
  21256. æKY TDeskScrapView.CalcMinSize
  21257. æD PROCEDURE TDeskScrapView.CalcMinSize(VAR minSize: VPoint); OVERRIDE;
  21258. æFi UMacApp.p
  21259. æT METHOD 
  21260. æC CalcMinSize calculates the minimum dimensions of the Clipboard view. This size 
  21261. is equal to the value of the fSize field of the object unless the desk scrap 
  21262. contains 'TEXT' or 'PICT' data, in which case the view is recalculated so that it 
  21263. is large enough to display the text or picture frame. The minSize parameter 
  21264. contains the calculated size, represented as a view point, when the method 
  21265. returns. MacApp calls CalcMinSize when calculating the size of the Clipboard view for 
  21266. display. You usually do not need to call CalcMinSize yourself. 
  21267.  
  21268.  
  21269.  
  21270. æKY TDeskScrapView.CheckScrapContents
  21271. æD PROCEDURE TDeskScrapView.CheckScrapContents;
  21272. æFi UMacApp.p
  21273. æT METHOD 
  21274. æC CheckScrapContents determines whether anything is stored in the desk scrap 
  21275. associated with the TDeskScrapView object, and, if so, what type of data is stored 
  21276. there. The default version of the method detects data of type 'TEXT' and of type 
  21277. 'PICT'. MacApp calls CheckScrapContents before drawing the view’s contents. 
  21278. You usually do not need to call CheckScrapContents yourself. 
  21279.  
  21280.  
  21281.  
  21282. æKY TDeskScrapView.Draw
  21283. æD PROCEDURE TDeskScrapView.Draw(area: Rect);
  21284. æFi UMacApp.p
  21285. æT METHOD 
  21286. æC This method draws the contents of the desk scrap view on the screen; the default 
  21287. version of this method supports 'TEXT' and 'PICT' data. The area parameter is 
  21288. a QuickDraw rectangle described in the view’s local coordinates. The 
  21289. TDeskScrapView version of Draw ignores this parameter. MacApp calls Draw when a window 
  21290. is created with a TDeskScrapView object installed in it, and at other times when 
  21291. the contents of the view need to be drawn. You usually do not need to call Draw 
  21292. yourself. 
  21293.  
  21294.  
  21295.  
  21296. æKY TDeskScrapView.Fields
  21297. æD PROCEDURE TDeskScrapView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  21298.   fieldAddr: Ptr; fieldType: INTEGER));
  21299. æFi UMacApp.p
  21300. æT METHOD 
  21301. æC Fields reports the contents of each field of the TDeskScrapView object to the 
  21302. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  21303. the contents of each field. Fields iterates over all the fields of the 
  21304. TDeskScrapView object, performing DoToField on each one. The fieldName parameter is 
  21305. the name of the field. The fieldAddr parameter is the field’s location in memory. 
  21306. The fieldType parameter uses a predefined constant to tell Fields what type of 
  21307. information to look for in a field. MacApp calls Fields from the MacApp 
  21308. Inspector. You must override this method in your subclasses if you want the Inspector 
  21309. to display your fields. Your override must call INHERITED Fields as its last 
  21310. action to ensure that the inherited fields are also displayed. 
  21311.  
  21312.  
  21313.  
  21314. æKY TDeskScrapView.Free
  21315. æD PROCEDURE TDeskScrapView.Free; OVERRIDE;
  21316. æFi UMacApp.p
  21317. æT METHOD 
  21318. æC The TDeskScrapView version of Free is overridden to do nothing because the 
  21319. default Clipboard view (gClipOrphanage) must always be available. MacApp does not 
  21320. call this method; you should not call it, either. 
  21321.  
  21322.  
  21323.  
  21324. æKY TDeskScrapView.GetInspectorName
  21325. æD PROCEDURE TDeskScrapView.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  21326. æFi UMacApp.p
  21327. æT METHOD 
  21328. æC GetInspectorName specifies the name of the Clipboard view to be displayed in the 
  21329. MacApp Inspector, based on the value of SELF; this method returns either the 
  21330. string 'gClipOrphanage' or the string 'gClipView'. When the method returns, the 
  21331. inspectorName parameter contains the name of the Clipboard view. MacApp calls 
  21332. GetInspectorName from the Inspector. You usually do not need to call this method 
  21333. yourself. 
  21334.  
  21335.  
  21336.  
  21337. æKY TDeskScrapView.IDeskScrapView
  21338. æD PROCEDURE TDeskScrapView.IDeskScrapView;
  21339. æFi UMacApp.p
  21340. æT METHOD 
  21341. æC IDeskScrapView initializes the fields of a newly created TDeskScrapView object. 
  21342. MacApp calls this method when creating a new Clipboard view. You usually do not 
  21343. need to call this method yourself. 
  21344.  
  21345.  
  21346.  
  21347. æKY TDeskScrapView.IRes
  21348. æD PROCEDURE TDeskScrapView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  21349.   VAR itsParams: Ptr); OVERRIDE;
  21350. æFi UMacApp.p
  21351. æT METHOD 
  21352. æC IRes initializes a TDeskScrapView object from a 'view' resource template. The 
  21353. itsDocument parameter specifies the document associated with this view; in the 
  21354. case of the desk scrap, this parameter is NIL. The itsSuperView parameter is the 
  21355. TView object into which the desk scrap view will be installed; this view is 
  21356. usually a window. The itsParams parameter is a pointer to the portion of the 
  21357. 'view' resource data used to initialize this view. When the IRes method finishes 
  21358. initializing the view, the method moves the pointer to the end of this data. 
  21359. MacApp calls this method for each of the views created from a 'view' resource 
  21360. template, usually in response to a NewTemplateWindow or a DoCreateViews call. You 
  21361. never need to call IRes yourself. 
  21362.  
  21363.  
  21364.  
  21365. æKY TDeskScrapView.SuperViewChangedSize
  21366. æD PROCEDURE TDeskScrapView.SuperViewChangedSize(delta: VPoint; 
  21367.   invalidate: BOOLEAN); OVERRIDE;
  21368. æFi UMacApp.p
  21369. æT METHOD 
  21370. æC SuperViewChangedSize adjusts the size of the TDeskScrapView object and forces it 
  21371. to redraw itself. The delta parameter is a point specifying the change in the 
  21372. view’s height and width, in view coordinates. The value of the invalidate 
  21373. parameter is TRUE if the view should be redrawn. MacApp calls SuperViewChangedSize 
  21374. when the Clipboard window is resized. You usually do not need to call it 
  21375. yourself. 
  21376.  
  21377.  
  21378.  
  21379. æKY TDeskScrapView.WriteToDeskScrap
  21380. æD PROCEDURE TDeskScrapView.WriteToDeskScrap; OVERRIDE;
  21381. æFi UMacApp.p
  21382. æT METHOD 
  21383. æC The TDeskScrapView version of WriteToDeskScrap does nothing because 
  21384. TDeskScrapView objects represent data that is already written to the desk scrap. 
  21385. MacApp calls WriteToDeskScrap from TApplication.AboutToLoseControl when it needs to 
  21386. preserve the contents of the Clipboard. You usually do not need to call this method 
  21387. yourself. 
  21388.  
  21389.  
  21390.  
  21391. æKY TDialogTEView.ComputeSize
  21392. æD PROCEDURE TDialogTEView.ComputeSize(VAR newSize: VPoint); OVERRIDE;
  21393.  
  21394. æFi UDialog.p
  21395. æT METHOD 
  21396. æC ComputeSize computes a point that represents the horizontal and vertical 
  21397. dimensions of the TDialogTEView object. The method stores the computed point in the 
  21398. variable newSize. MacApp calls ComputeSize from methods that must use or adjust 
  21399. the size of the TDialogTEView object. You usually do not need to call this 
  21400. method yourself; you should change the size of a TDialogTEView object by overriding 
  21401. the appropriate CalcMinSize or ComputeSize method. 
  21402.  
  21403.  
  21404.  
  21405. æKY TDialogTEView.Fields
  21406. æD PROCEDURE TDialogTEView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  21407.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  21408. æFi UDialog.p
  21409. æT METHOD 
  21410. æC Fields reports the contents of each field of the TDialogTEView object to the 
  21411. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  21412. the contents of each field. Fields iterates over all the fields of the 
  21413. TDialogTEView object, performing DoToField on each one. The fieldName parameter is the 
  21414. name of the field. The fieldAddr parameter is the field’s location in memory. 
  21415. The fieldType parameter uses a predefined constant to tell Fields what type of 
  21416. information to look for in a field. MacApp calls Fields from the MacApp 
  21417. Inspector. You must override this method in your subclasses if you want the Inspector 
  21418. to display your fields. Your override must call INHERITED Fields as its last 
  21419. action to ensure that the inherited fields are also displayed. 
  21420.  
  21421.  
  21422.  
  21423. æKY TDialogTEView.Free
  21424. æD PROCEDURE TDialogTEView.Free; OVERRIDE;
  21425.  
  21426. æFi UDialog.p
  21427. æT METHOD 
  21428. æC Free releases the memory occupied by the TDialogTEView object and its TextEdit 
  21429. record. MacApp calls Free from a variety of methods that dispose of 
  21430. TDialogTEView objects or of objects that contain TDialogTEView objects. You can call 
  21431. Free to release the memory used by a TDialogTEView object when you no longer need 
  21432. that object. 
  21433.  
  21434.  
  21435.  
  21436. æKY TDialogTEView.IDialogTEView
  21437. æD PROCEDURE TDialogTEView.IDialogTEView(itsDocument: TDocument; itsSuperView: TView; 
  21438.   itsLocation, itsSize: VPoint; itsHDeterminer, itsVDeterminer: SizeDeterminer; 
  21439.   itsInset: Rect; itsTextStyle: TextStyle; itsJustification: INTEGER; itsStyleType, 
  21440.   itsAutoWrap: BOOLEAN); 
  21441.  
  21442. æFi UDialog.p
  21443. æT METHOD 
  21444. æC IDialogTEView initializes a newly created TDialogTEView object, assigning the 
  21445. specified values to the appropriate fields. The itsDocument parameter is the 
  21446. TDocument object with which the view will be associated. The itsSuperView parameter 
  21447. is the TView object in which the TDialogTEView object is installed. Usually 
  21448. the superview is a TWindow or TScroller object. The itsLocation parameter is the 
  21449. view point that defines the location of the view’s top left corner in its 
  21450. superview. The itsSize parameter is a view point that specifies the view’s 
  21451. horizontal and vertical dimensions in pixels. The itsHDeterminer and itsVDeterminer 
  21452. parameters determine how the view's horizontal and vertical dimensions are 
  21453. calculated, respectively. Allowed values include sizeSuperView (the view is the same 
  21454. size as its superview, sizeRelSuperView (the view size is relative to the 
  21455. superview’s size), sizePage,(the view is the size of one page), sizeFillPages (the 
  21456. view is to grow upward to fill an exact number of pages), sizeVariable (the view 
  21457. size fluctuates according to application-specific criteria), or sizeFixed (the 
  21458. size is fixed at the time the view is created). The itsInset parameter specifies 
  21459. the width of the four margins around the view. The value is a Rect, and each 
  21460. field of the Rect record (top, left, bottom, and right) specifies the size of 
  21461. the corresponding margin. The itsTextStyle parameter is a TextStyle record that 
  21462. specifies the style of the text displayed in the view. The itsJustification 
  21463. parameter specifies how the view’s text is to be justified. Allowed values include 
  21464. teJustLeft, teJustRight, and teJustCenter. The itsStyleType parameter specifies 
  21465. whether the TDialogTEView object can display more than one text style at once: 
  21466. kWithStyle specifies that the view can display multiple styles, and 
  21467. kWithoutStyle specifies that it cannot. The itsAutoWrap parameter specifies whether 
  21468. lines of text that are longer than the view is wide will wrap to the next line, or 
  21469. will extend beyond the right edge of the view. A value of TRUE specifies that 
  21470. long lines will automatically wrap to the next line. MacApp calls IDialogTEView 
  21471. from methods that must create a TDialogTEView object, such as 
  21472. TDialogView.MakeTEView. You can use this method in a similar fashion. 
  21473.  
  21474.  
  21475.  
  21476. æKY TDialogTEView.InstallEditText
  21477. æD PROCEDURE TDialogTEView.InstallEditText(theEditText: TEditText; 
  21478.   selectChars: BOOLEAN);
  21479. æFi UDialog.p
  21480. æT METHOD 
  21481. æC InstallEditText installs the specified TEditText object in the fEditText field 
  21482. of the TDialogTEView object. The parameter theEditText is a TEditText object 
  21483. which becomes the value of the fEditText field. The selectChars parameter 
  21484. specifies whether to select the contents of the TEditText object; if the value of 
  21485. selectChars is TRUE, then all the characters in the TEditText object are selected 
  21486. when it is installed; otherwise, none of them are. MacApp calls InstallEditText 
  21487. when a TDialogView object is selected and needs editing services. You usually do 
  21488. not need to call this method yourself. 
  21489.  
  21490.  
  21491.  
  21492. æKY TDialogTEView.InstallSelection
  21493. æD PROCEDURE TDialogTEView.InstallSelection(wasActive, beActive: BOOLEAN); OVERRIDE;
  21494. æFi UDialog.p
  21495. æT METHOD 
  21496. æC This override of InstallSelection forces the TDialogTEView object to be redrawn 
  21497. if it is being deactivated and has been scrolled; otherwise, it simply calls 
  21498. INHERITED InstallSelection to place the text insertion point and correctly 
  21499. highlight the current selection. The effect of this method is that of “resetting” the 
  21500. scroller to ensure that the view is drawn with the beginning of the text shown 
  21501. when it is reactivated. Set the wasActive parameter to TRUE if the 
  21502. TDialogTEView object was the active view before InstallSelection was called; otherwise, 
  21503. set it to FALSE. Set the beActive parameter to TRUE if you want InstallSelection 
  21504. to make the TDialogTEView object the active view; otherwise, set it to FALSE. 
  21505. MacApp calls InstallSelection when the TDialogTEView object is deselected. You 
  21506. usually do not need to call this method yourself. 
  21507.  
  21508.  
  21509.  
  21510. æKY TDialogTEView.IRes
  21511. æD PROCEDURE TDialogTEView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  21512.   VAR itsParams: Ptr); OVERRIDE;
  21513.  
  21514. æFi UDialog.p
  21515. æT METHOD 
  21516. æC IRes initializes a TDialogTEView object from a 'view' resource template. The 
  21517. itsDocument parameter specifies the document associated with the TDialogTEView 
  21518. object. The itsSuperView parameter specifies the TView object into which the 
  21519. TDialogTEView object is to be installed; this view is usually a TWindow or TScroller 
  21520. object. The itsParams parameter is a pointer to the portion of the 'view' 
  21521. resource data used to initialize this view. When the IRes method finishes 
  21522. initializing the view, the method moves the pointer to the end of this data. MacApp 
  21523. calls this method for each of the views created from a 'view' resource template, 
  21524. usually in response to a NewTemplateWindow or a DoCreateViews call. You never 
  21525. need to call IRes yourself. 
  21526.  
  21527.  
  21528.  
  21529. æKY TDialogView.CanDismiss
  21530. æD FUNCTION TDialogView.CanDismiss(dismissing: IDType): BOOLEAN;
  21531. æFi UDialog.p
  21532. æT METHOD 
  21533. æC CanDismiss returns the value TRUE if the TDialogView object is in a state which 
  21534. will allow it to be dismissed. The result returned by CanDismiss is used by 
  21535. TDialog.DismissDialog to determine whether to dismiss a dialog box or continue to 
  21536. display it on the screen. An example of such use would be when the user entered 
  21537. an out-of-range value in a TNumberText view; the resulting sequence of calls 
  21538. would include a call to CanDismiss. Because CanDismiss attempts to validate the 
  21539. current edit text before dismissing the view, the out-of-range value would 
  21540. cause this method to return FALSE, and the TDialogView view would remain on the 
  21541. screen. The dismissing parameter is the ID of the view making the call to 
  21542. CanDismiss. MacApp calls CanDismiss from TDialogView.DismissDialog as described above. 
  21543. You usually do not need to call the CanDismiss method yourself. 
  21544.  
  21545.  
  21546.  
  21547. æKY TDialogView.CantDeselect
  21548. æD PROCEDURE TDialogView.CantDeselect(theEditText: TEditText; reason: LONGINT);
  21549. æFi UDialog.p
  21550. æT METHOD 
  21551. æC CantDeselect displays an alert box warning the user that the specified text item 
  21552. cannot be deselected, and restarts editing in the text item. The parameter 
  21553. theEditText is the TEditText object that represents the text to be edited. The 
  21554. reason parameter is a long integer code specifying the reason the text item can’t 
  21555. be deselected; legal values for this parameter include kValidValue, 
  21556. kInvalidValue, kValueTooSmall, kValueTooLarge, kNonNumericCharacters, and 
  21557. kTooManyCharacters. MacApp calls CantDeselect from methods that change the currently 
  21558. active TDialogView object when they are unable to deselect an already active dialog 
  21559. view. You usually do not need to call this method yourself. 
  21560.  
  21561.  
  21562.  
  21563. æKY TDialogView.Close
  21564. æD PROCEDURE TDialogView.Close; OVERRIDE;
  21565. æFi UDialog.p
  21566. æT METHOD 
  21567. æC This method closes the TDialogView object and the dialog box in which it is 
  21568. installed. MacApp calls Close from a variety of methods that can dismiss a dialog 
  21569. box. You usually do not need to call Close yourself. 
  21570.  
  21571.  
  21572.  
  21573. æKY TDialogView.DeselectCurrentEditText
  21574. æD FUNCTION TDialogView.DeselectCurrentEditText: BOOLEAN;
  21575.  
  21576. æFi UDialog.p
  21577. æT METHOD 
  21578. æC DeselectCurrentEditText returns the value TRUE if it succeeds in deselecting the 
  21579. current edit text selection, which is a TEditText object. To do so, this 
  21580. method must commit the last editing command, validate the state of the current edit 
  21581. text, and then deselect it. MacApp calls DeselectCurrentEditText from methods 
  21582. that change the editable text dialog item that is currently selected—for 
  21583. example, this method is called from TDialogView.Tab. You usually do not need to call 
  21584. DeselectCurrentEditText yourself. 
  21585.  
  21586.  
  21587.  
  21588. æKY TDialogView.DismissDialog
  21589. æD PROCEDURE TDialogView.DismissDialog(dismisser: IDType);
  21590.  
  21591. æFi UDialog.p
  21592. æT METHOD 
  21593. æC DismissDialog sets the value of the TDialogView’s fDismissed and fDismisser 
  21594. fields if its call to CanDismiss succeeds. The dismisser parameter is the ID of the 
  21595. control that issued the call to DismissDialog. MacApp calls DismissDialog from 
  21596. TDialogView.DoChoice or from TDialogView.PoseModally when attempting to 
  21597. dismiss a dialog box. You usually do not need to call DismissDialog yourself. 
  21598.  
  21599.  
  21600.  
  21601. æKY TDialogView.DoChoice
  21602. æD PROCEDURE TDialogView.DoChoice(origView: TView; itsChoice: INTEGER); OVERRIDE;
  21603. æFi UDialog.p
  21604. æT METHOD 
  21605. æC DoChoice performs actions associated with a user’s choice in a dialog box. The 
  21606. default method responds to the mEditTextHit message. An mEditTextHit message 
  21607. causes this method to deselect the text item; if the user clicks any control that 
  21608. has the fDismissesDialog field set, MacApp dismisses the dialog box and calls 
  21609. the appropriate methods in response to the user’s choice. If the message is a 
  21610. hit on a control that does not have the fDismissesDialog field set, the message 
  21611. is passed along to the next handler in the chain by calling INHERITED DoChoice. 
  21612. The origView parameter is the TView object that first made the call to its 
  21613. DoChoice method in response to a user action. The itsChoice parameter is an integer 
  21614. specifying the user’s choice. MacApp uses this parameter to determine the kind 
  21615. of control that originated the DoChoice message; for instance, a value of 
  21616. mOKButtonHit indicates that the DoChoice message originated in a TButton object. 
  21617. MacApp calls DoChoice in response to a user’s selection in a dialog box. You 
  21618. usually do not need to call DoChoice yourself. 
  21619.  
  21620.  
  21621.  
  21622. æKY TDialogView.DoCommandKey
  21623. æD FUNCTION TDialogView.DoCommandKey(ch: CHAR; 
  21624.   VAR info: EventInfo): TCommand; OVERRIDE;
  21625. æFi UDialog.p
  21626. æT METHOD 
  21627. æC DoCommandKey handles keystrokes made with the Command key pressed, returning the 
  21628. appropriate TCommand object. The default version handles Command-Period events 
  21629. by flashing the dialog box’s Cancel item (if the item is a control) and then 
  21630. calling the DoChoice method of the Cancel item. The ch parameter is the 
  21631. character that corresponds to the key the user pressed in combination with the Command 
  21632. key. The info parameter is the event record description of the key-down event 
  21633. that caused MacApp to call DoKeyCommand; the info parameter is used to pass 
  21634. information about the event, such as whether the Option key was pressed. The 
  21635. default method ignores the info parameter, but overridden versions of DoCommandKey 
  21636. can use the event record for their own purposes. MacApp calls DoCommandKey when a 
  21637. key-down event is received while the Command key is pressed. You usually do 
  21638. not need to call this method yourself. You can override this method to handle 
  21639. such events in your own TDialogView objects. 
  21640.  
  21641.  
  21642.  
  21643. æKY TDialogView.DoKeyCommand
  21644. æD FUNCTION TDialogView.DoKeyCommand(ch: CHAR; aKeyCode: INTEGER; 
  21645.   VAR info: EventInfo): TCommand; OVERRIDE;
  21646. æFi UDialog.p
  21647. æT METHOD 
  21648. æC DoKeyCommand handles keystrokes made without the Command key pressed, returning 
  21649. the appropriate TCommand object. The default version responds only to the 
  21650. pressing of the Tab, Escape, Return, and Enter keys. It responds to Tab keystrokes 
  21651. by changing the selected editable text field, to Escape keystrokes by selecting 
  21652. the Cancel item, and to Return and Enter keystrokes by selecting the 
  21653. TDialogView object’s default item. DoKeyCommand returns gNoChanges. The ch parameter 
  21654. is the alphanumeric character that corresponds to the key the user pressed. The 
  21655. aKeyCode parameter is the ASCII key code generated by the keystroke. The info 
  21656. parameter is the event record description of the event that caused MacApp to call 
  21657. DoKeyCommand; the info parameter is used to pass information about the event, 
  21658. such as whether the Option key was pressed. MacApp calls DoKeyCommand when the 
  21659. user presses a key on the keyboard. You usually do not need to override this 
  21660. method or call it yourself. 
  21661.  
  21662.  
  21663.  
  21664. æKY TDialogView.DoOpen
  21665. æD PROCEDURE TDialogView.DoOpen;
  21666. æFi UDialog.p
  21667. æT METHOD 
  21668. æC DoOpen performs appropriate actions when a TDialogView object is created and 
  21669. installed in another TWindow object. The default version selects the target object 
  21670. of the TWindow object if the target is a TEditText object contained in the 
  21671. dialog box. MacApp calls DoOpen when a TDialogView object is created. You usually 
  21672. do not need to call DoOpen yourself. You can override this method to provide 
  21673. specialized opening behavior for your own subclasses of TDialogView. 
  21674.  
  21675.  
  21676.  
  21677. æKY TDialogView.DoSelectEditText
  21678. æD PROCEDURE TDialogView.DoSelectEditText(theEditText: TEditText; 
  21679.   selectChars: BOOLEAN);
  21680. æFi UDialog.p
  21681. æT METHOD 
  21682. æC DoSelectEditText sets the selection in a TEditText view, attempting to make the 
  21683. specified text the current edit text. The parameter theEditText is the text to 
  21684. be selected. If the value of the selectChars parameter is TRUE, this method 
  21685. attempts to deselect the current selection and select all of the characters in the 
  21686. specified text. If value of the selectChars parameter is FALSE, the method 
  21687. places the insertion point at the start of the field. MacApp calls DoSelectEditText 
  21688. from methods that handle text selection in TDialogView objects, such as 
  21689. TDialogView.Tab, TDialogView.DoOpen, and TDialogView.Tab. You usually do not need 
  21690. to call DoSelectEditText yourself; rather, you should call SelectEditText to select 
  21691. an editable text field in a TDialogView dialog box. 
  21692.  
  21693.  
  21694.  
  21695. æKY TDialogView.EachEditText
  21696. æD PROCEDURE TDialogView.EachEditText(PROCEDURE DoToEditText(theEditText: TEditText));
  21697. æFi UDialog.p
  21698. æT METHOD 
  21699. æC EachEditText performs the DoToEditText procedure on each editText field of the 
  21700. TDialogView object. The DoToEditText parameter is a procedure of one argument 
  21701. that is to be performed on each subview. You must declare and implement this 
  21702. procedure yourself. The procedure you write can have any name that does not 
  21703. conflict with other procedures in the scope of the TDialogView class. Just as you can 
  21704. create any variable you like (as long as it is of the proper type) and then 
  21705. pass that variable as an argument to a procedure, you can create any procedure you 
  21706. like and pass it to EachEditText as long as the procedure accepts one argument 
  21707. of type TEditText. This procedure is bound to the formal parameter 
  21708. DoToEditText, and then is called with each of the TDialogView object’s TEditText items 
  21709. bound to the parameter theEditText. EachEditText is a general utility method that 
  21710. allows you to perform operations on all of a TDialogView object’s editable text 
  21711. items, regardless of how many there are. MacApp calls this method when it must 
  21712. iterate over a number of editable text items; you can use this method in a 
  21713. similar fashion. You usually do not need to override EachEditText. 
  21714.  
  21715.  
  21716.  
  21717. æKY TDialogView.Fields
  21718. æD PROCEDURE TDialogView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  21719.   fieldAddr: Ptr;fieldType: INTEGER)); OVERRIDE;
  21720. æFi UDialog.p
  21721. æT METHOD 
  21722. æC Fields reports the contents of each field of the TDialogView object to the 
  21723. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  21724. the contents of each field. Fields iterates over all the fields of the 
  21725. TDialogView object, performing DoToField on each one. The fieldName parameter is the 
  21726. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  21727. fieldType parameter uses a predefined constant to tell Fields what type of 
  21728. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  21729. You must override this method in your subclasses if you want the Inspector to 
  21730. display your fields. Your override must call INHERITED Fields as its last action 
  21731. to ensure that the inherited fields are also displayed. 
  21732.  
  21733.  
  21734.  
  21735. æKY TDialogView.Free
  21736. æD PROCEDURE TDialogView.Free; OVERRIDE;
  21737. æFi UDialog.p
  21738. æT METHOD 
  21739. æC Free releases the memory used by the TDialogView object and removes the 
  21740. TDialogTEView from its superview’s list of subviews. MacApp calls Free when closing a 
  21741. view containing a TDialogView. You can call Free to release the memory used by a 
  21742. TDialogView object when you no longer need that object. 
  21743.  
  21744.  
  21745.  
  21746. æKY TDialogView.GetDialogView
  21747. æD FUNCTION TDialogView.GetDialogView: TView; OVERRIDE;
  21748. æFi UDialog.p
  21749. æT METHOD 
  21750. æC GetDialogView returns SELF; you must cast the result as a TDialogView object 
  21751. yourself. MacApp calls GetDialogView from several methods that perform operations 
  21752. on TDialogView objects. You must call this method when you need a reference to 
  21753. the TDialogView object; use the result returned by this method rather than 
  21754. referring directly to SELF in TDialogView objects. 
  21755.  
  21756.  
  21757.  
  21758. æKY TDialogView.IDialogView
  21759. æD PROCEDURE TDialogView.IDialogView(itsDocument: TDocument; itsSuperView: TView; 
  21760.   itsLocation, itsSize: VPoint; itsHSizeDet, itsVSizeDet: SizeDeterminer; itsDefItemID, 
  21761.   itsCancelItemID: IDType);
  21762. æFi UDialog.p
  21763. æT METHOD 
  21764. æC IDialogView initializes the fields of a newly created TDialogView object. The 
  21765. itsDocument parameter is the document with which the view is associated; for 
  21766. TDialogView objects, the value of this parameter is usually NIL. The itsSuperview 
  21767. parameter is the TView object into which the TDialogView object is installed; 
  21768. usually this parameter is a TScroller object or a TWindow object. The parameters 
  21769. itsLocation and itsSize are view points that specify the view’s size and 
  21770. location; itsLocation is described in the local coordinates of the superview. The 
  21771. itsHSizeDet and itsVSizeDet parameters determine how the view's horizontal and 
  21772. vertical dimensions are calculated, respectively. Legal values for them include 
  21773. sizeSuperView (the view is the same size as its superview), sizeRelSuperView (the 
  21774. view's size is relative to the superview’s size), sizePage (the view is the 
  21775. size of one page), sizeFillPages (the view will grow upward to fill an exact 
  21776. number of pages), sizeVariable (the view's size fluctuates according to 
  21777. application-specific criteria), and sizeFixed (the size is fixed at the time the view 
  21778. is created). The parameters itsDefItemID and itsCancelItemId are the IDs of two 
  21779. TDialogView objects. The first is the default dialog item—that is, the one 
  21780. selected if the user presses the Return or Enter key; the second is the Cancel 
  21781. item—that is, the item that cancels the action that summoned the dialog box. You can 
  21782. call IDialogView to initialize a TDialogView object. 
  21783.  
  21784.  
  21785.  
  21786. æKY TDialogView.IRes
  21787. æD PROCEDURE TDialogView.IRes(itsDocument: TDocument; itsSuperView: TView; VAR 
  21788.   itsParams: Ptr); OVERRIDE;
  21789. æFi UDialog.p
  21790. æT METHOD 
  21791. æC IRes initializes a TDialogView object from a 'view' resource template. The 
  21792. itsDocument parameter specifies the document associated with this view; for a 
  21793. TDialogView object, this parameter is usually NIL. The itsSuperView parameter 
  21794. specifies the TView object into which the view is to be installed; for a TDialogView 
  21795. object, this is usually a TDialogView or TWindow object. The itsParams parameter 
  21796. is a pointer to the portion of the 'view' resource data used to initialize 
  21797. this view. When the IRes method finishes initializing the view, the method moves 
  21798. the pointer to the end of this data. MacApp calls this method for each of the 
  21799. views created from a 'view' resource template, usually in response to a 
  21800. NewTemplateWindow or a DoCreateViews call. You never need to call IRes yourself. 
  21801.  
  21802.  
  21803.  
  21804. æKY TDialogView.MakeTEView
  21805. æD FUNCTION TDialogView.MakeTEView: TDialogTEView;
  21806. æFi UDialog.p
  21807. æT METHOD 
  21808. æC MakeTEView creates and returns a default TDialogTEView object. MacApp calls 
  21809. MakeTEView when it needs to create the TDialogTEView object used to perform text 
  21810. editing in a TEditText view. You usually do not need to call this method 
  21811. yourself. 
  21812.  
  21813.  
  21814.  
  21815. æKY TDialogView.Open
  21816. æD PROCEDURE TDialogView.Open; OVERRIDE;
  21817.  
  21818. æFi UDialog.p
  21819. æT METHOD 
  21820. æC This method calls the TDialogView.DoOpen method to open the TDialogView object 
  21821. and selects the editable text field if it is the window's target. MacApp calls 
  21822. Open to open a dialog box. You usually do not need to call the Open method 
  21823. yourself. 
  21824.  
  21825.  
  21826.  
  21827. æKY TDialogView.ParamTxt
  21828. æD PROCEDURE TDialogView.ParamTxt(keyStr, valueStr: Str255);
  21829.  
  21830. æFi UDialog.p
  21831. æT METHOD 
  21832. æC ParamTxt creates or changes entries in the fParamText field of the TDialogView 
  21833. object. These entries provide parameterized text for use in dialog items. For 
  21834. more detailed information about fParamText, see TDialogView.ReplaceText. The 
  21835. keyStr parameter is the item in fParamText, and the valueStr parameter is the 
  21836. string associated with that item. For example, 
  21837.  
  21838. TDialogView.ParamTxt("DiskFull","Not enough disk space to complete the operation."); 
  21839.  
  21840. creates an entry in the fParamText field under “DiskFull” with an associated value 
  21841. that contains the string “Not enough disk space to complete the operation.” 
  21842. MacApp does not call ParamTxt. You can use this method to maintain parameterized text 
  21843. for dialog items so that text in those items can easily change for different 
  21844. contexts. 
  21845.  
  21846.  
  21847.  
  21848. æKY TDialogView.PoseModally
  21849. æD FUNCTION TDialogView.PoseModally: IDType;
  21850. æFi UDialog.p
  21851. æT METHOD 
  21852. æC PoseModally presents the TDialogView object in a window that appears as a modal 
  21853. dialog box; when the user dismisses the dialog box, this method returns the ID 
  21854. of the dialog item the user selected to dismiss the dialog box. MacApp does not 
  21855. call this method. You can use PoseModally to create standard Macintosh modal 
  21856. dialog boxes. 
  21857.  
  21858.  
  21859.  
  21860. æKY TDialogView.ReplaceText
  21861. æD PROCEDURE TDialogView.ReplaceText(VAR theText: Str255);
  21862. æFi UDialog.p
  21863. æT METHOD 
  21864. æC ReplaceText replaces the dialog view’s parameter text entries with the strings 
  21865. specified in the fParamTxt field. The fParamTxt field is a TAssociation object 
  21866. that acts as a dictionary of text markers associated with strings. When 
  21867. ReplaceText is called, the text markers in the TDialogView object’s text are replaced 
  21868. with the markers’ associated strings. In this way MacApp emulates the function 
  21869. of the Toolbox call ParamText. The parameter theText is the text whose markers 
  21870. are to be replaced. MacApp calls ReplaceText from methods such as TCluster.Draw. 
  21871. You can use this method to maintain parameterized text in dialog items. By 
  21872. changing the text strings associated with particular entries in the fParamText 
  21873. field, you can change the text of dialog items to suit different contexts. The 
  21874. method TDialogView.ParamTxt creates or changes entries in the fParamText field. 
  21875.  
  21876.  
  21877.  
  21878. æKY TDialogView.SelectEditText
  21879. æD PROCEDURE TDialogView.SelectEditText(itsIdentifier: IDType; selectChars: BOOLEAN);
  21880. æFi UDialog.p
  21881. æT METHOD 
  21882. æC SelectEditText places the insertion point in the text field to be edited, 
  21883. setting its contents to be the current edit text if requested. The parameter 
  21884. itsIdentifier is the ID of the text field to be edited. When the value of selectChars 
  21885. is TRUE, this method attempts to select the contents of the specified field and 
  21886. make it the current edit text. MacApp does not call SelectEditText. You can use 
  21887. it to select an editable text field in a TDialogView dialog box. 
  21888.  
  21889.  
  21890.  
  21891. æKY TDialogView.SurveyEditText
  21892. æD PROCEDURE TDialogView.SurveyEditText(VAR first, last, next, previous: TEditText);
  21893. æFi UDialog.p
  21894. æT METHOD 
  21895. æC SurveyEditText determines certain characteristics of the text fields that can be 
  21896. edited in a TDialogView object, and returns this information in the variable 
  21897. parameters first, last, next, and previous. The parameter first contains the 
  21898. first text item that can be edited in the TDialogView object’s list of items, and 
  21899. the parameter last contains the last text item that can be edited. The 
  21900. parameter next refers to the text item that will be selected next if the standard 
  21901. tabbing sequence for a Macintosh dialog box is followed, and the parameter previous 
  21902. refers to the item that was last selected. MacApp calls SurveyEditText to 
  21903. retrieve the previously mentioned information for use in methods such as 
  21904. TDialogView.Tab, which select or otherwise refer to the text items that can be edited 
  21905. in a dialog box. You can use this method in a similar fashion. 
  21906.  
  21907.  
  21908.  
  21909. æKY TDialogView.Tab
  21910. æD PROCEDURE TDialogView.Tab(tabBackward: BOOLEAN);
  21911. æFi UDialog.p
  21912. æT METHOD 
  21913. æC Tab selects the next editable text field in a dialog box. Repeatedly calling Tab 
  21914. causes each editable text field in a dialog box to be selected in turn. You 
  21915. can set the parameter tabBackward to TRUE when you want this method to select 
  21916. fields in the reverse of its usual order. MacApp calls Tab from 
  21917. TDialogView.DoKeyCommand when the user presses the Tab key. You can use Tab to perform 
  21918. the standard tabbing actions in a Macintosh dialog box, and you can override it in 
  21919. your own dialog view classes to provide customized tabbing behavior. 
  21920.  
  21921.  
  21922.  
  21923. æKY TDialogView.WRes
  21924. æD PROCEDURE TDialogView.WRes(theResource: ViewRsrcHndl; 
  21925.   VAR itsParams: Ptr); OVERRIDE;
  21926. æFi UDialog.p
  21927. æT METHOD 
  21928. æC WRes writes the TDialogView portion of the view’s resource template to the 
  21929. location specified by the itsParams parameter. The parameter theResource is a handle 
  21930. to the view’s resource template. The parameter itsParams is a pointer to the 
  21931. TDialogView section of the view’s resource template. WRes is the inverse of the 
  21932. IRes method, and is used only by programs that write 'view' resources; for 
  21933. example, ViewEdit uses this method to create new 'view' resources from views that 
  21934. are active on the screen. You rarely need to call this method yourself. You must 
  21935. override this method in your subclasses to create your own 'view' resources. 
  21936. Your override should check the size of the space remaining in the template past 
  21937. the end of the previously-written resource data; if there is not enough space 
  21938. to write your data into the file, your override should call the global routine 
  21939. ExpandPtr, passing as arguments the current values of theResource, itsParams, 
  21940. and the size of your resource data, in bytes. ExpandPtr expands the 'view' 
  21941. resource handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  21942. greater. You need not be concerned about making the 'view' resource handle too 
  21943. big, because MacApp reclaims unused space by returning a new value for itsParams 
  21944. when the WRes method completes. 
  21945.  
  21946.  
  21947.  
  21948. æKY TDialogView.WriteRes
  21949. æD PROCEDURE TDialogView.WriteRes(theResource: ViewRsrcHndl; 
  21950.   VAR itsParams: Ptr); OVERRIDE;
  21951. æFi UDialog.p
  21952. æT METHOD 
  21953. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('dlog') and 
  21954. class name ('TDialogView') for the 'view' resource template, and then calls WRes 
  21955. to actually write the resource. The parameter theResource is a handle to the 
  21956. view’s resource template. The parameter itsParams is a pointer to the parameters 
  21957. MacApp uses to create the new resource. MacApp calls this method to write a 
  21958. TDialogView object as part of a 'view' resource; you can use it in a similar 
  21959. fashion. You can override this method to provide your own unique class name or 
  21960. signature. 
  21961.  
  21962.  
  21963.  
  21964. æKY TDocument.Abandon
  21965. æD PROCEDURE TDocument.Abandon;
  21966.  
  21967.  
  21968. æFi UMacApp.p
  21969. æT METHOD 
  21970. æC Abandon, when overridden, can do any actions necessary when the user decides not 
  21971. to save the changes to a document. The default version is an empty method. 
  21972. MacApp calls this method when from TDocument.Close when the closes a document 
  21973. without saving changes made to the document. You probably will not need to call 
  21974. this method. You can override this method to perform any cleanup necessary when 
  21975. the user abandons the document. 
  21976.  
  21977.  
  21978.  
  21979. æKY TDocument.AboutToSave
  21980. æD PROCEDURE TDocument.AboutToSave(itsCmd: CmdNumber; VAR newName: Str255; 
  21981.   VAR newVolRefnum: INTEGER; VAR makingCopy: BOOLEAN);
  21982. æFi UMacApp.p
  21983. æT METHOD 
  21984. æC AboutToSave is an empty method; it is called just prior to saving the document 
  21985. to disk, giving you an opportunity to run any additional code at that time. The 
  21986. itsCmd parameter is a command number representing the command that caused 
  21987. AboutToSave to be called. The newName parameter is a string representing the 
  21988. filename under which the document's file is being saved. The newVolRefnum parameter is 
  21989. the volume reference number under which the document's file is being saved. 
  21990. The makingCopy parameter is set to TRUE when writing to a copy of the original 
  21991. file. AboutToSave is called by TDocument.Save just before it actually saves the 
  21992. document's data. You never need to call it yourself. You can override it to 
  21993. implement further processing prior to saving the document; note that your override 
  21994. method can use the VAR parameters to return a new document name or volume 
  21995. reference number when the purpose of the save operation is to make a copy of the 
  21996. document. 
  21997.  
  21998.  
  21999.  
  22000. æKY TDocument.AddView
  22001. æD PROCEDURE TDocument.AddView(aView: TView);
  22002. æFi UMacApp.p
  22003. æT METHOD 
  22004. æC AddView adds the specified view to the end of the document's view list. If the 
  22005. view is a TWindow object, the view is also added to the window list. This method 
  22006. ensures that the same view or window is not added to either of these lists 
  22007. twice. The aView parameter is the view to be associated with the document. AddView 
  22008. is called by TView.IView when the view is being initialized. You rarely call 
  22009. AddView yourself; you can do so if you want to associate a view with the 
  22010. document. 
  22011.  
  22012.  
  22013.  
  22014. æKY TDocument.AddWindow
  22015. æD PROCEDURE TDocument.AddWindow(aWindow: TWindow);
  22016. æFi UMacApp.p
  22017. æT METHOD 
  22018. æC AddWindow adds the specified window to the end of the document's window list. If 
  22019. the window is not in the document's view list, the window is added to that 
  22020. list also. The aWindow parameter is the window to be associated with the document. 
  22021. AddWindow is called by TWindow.InstallDocument in order to associate a window 
  22022. with the document. You rarely call AddWindow yourself; usually you call the 
  22023. window's InstallDocument method. 
  22024.  
  22025.  
  22026.  
  22027. æKY TDocument.CheckDiskFile
  22028. æD PROCEDURE TDocument.CheckDiskFile(rsrcId, rsrcIndex: INTEGER; reverting: BOOLEAN);
  22029. æFi UMacApp.p
  22030. æT METHOD 
  22031. æC CheckDiskFile determines whether the document's disk file has been changed by 
  22032. another application. If it has, this method displays a phFileChanged alert with 
  22033. parameter string ^0 set to fTitle and parameter string ^1 set to the string 
  22034. specified by the rsrcId and rsrcIndex. If the user cancels the save operation, 
  22035. CheckDiskFile aborts the save and signals failure with the error parameter equal to 
  22036. noErr and the message parameter equal to msgCancelled. The rsrcID parameter 
  22037. identifies a 'STR#' resource containing strings used in the alert displayed if 
  22038. the file has changed since it was last opened by the application. The rsrcIndex 
  22039. parameter is the index of the string in the 'STR#' resource. The reverting 
  22040. parameter has the value TRUE if the file is being restored to match the last version 
  22041. saved on the disk; in this case, I/O errors and file types that don’t match 
  22042. the specified type cause failure. Otherwise, this method behaves as a save 
  22043. operation, and any I/O errors and nonmatching file types are ignored. MacApp calls 
  22044. CheckDiskFile whenever it attempts to save a document's file that is not kept 
  22045. open—that is, when the data is read into memory and the file closed until the data 
  22046. is written back to the file. Methods that call CheckDiskFile include 
  22047. TDocument.Revert and TDocument.Save. You rarely need to override CheckDiskFile or call 
  22048. it yourself; you might do this if you have changed the way MacApp handles the 
  22049. saving of document files. 
  22050.  
  22051.  
  22052.  
  22053. æKY TDocument.Close
  22054. æD PROCEDURE TDocument.Close;
  22055. æFi UMacApp.p
  22056. æT METHOD 
  22057. æC This method closes a document and its windows, and frees the document. If the 
  22058. document’s data has changed, Close displays a dialog box that asks the user to 
  22059. save changes. If the user confirms, this method commits the last command if 
  22060. necessary, calls the document’s Save method, closes all of the document’s windows, 
  22061. and frees the document. If the user cancels, then the method signals failure 
  22062. with the error parameter set to noErr and the message parameter set to 
  22063. msgCancelled. Note: Close must never be called for a document related to a view in the 
  22064. Clipboard; this is to avoid freeing the Clipboard view, whose existence is taken 
  22065. for granted by most methods that use it. Close is called by TApplication.Close 
  22066. and TWindow.CloseByUser when either the application or the user closes a 
  22067. document. You usually do not need to call Close yourself, unless you have changed the 
  22068. way MacApp handles documents. You can call this to close a document whether or 
  22069. not it is represented by any windows. You do not need to override Close unless 
  22070. you want to change what happens when a document is closed, or add to the 
  22071. standard document-handling behavior of MacApp. 
  22072.  
  22073.  
  22074.  
  22075. æKY TDocument.CloseView
  22076. æD PROCEDURE TDocument.CloseView(aView: TView);
  22077. æFi UMacApp.p
  22078. æT METHOD 
  22079. æC CloseView closes a view or window associated with a document. The final decision 
  22080. on closing the view rests with the document, which also decides whether to 
  22081. close itself. This method does nothing if the specified view is not associated 
  22082. with the document. The aView parameter specifies the view to be closed. MacApp 
  22083. calls this method when a user closes a window. You probably will not need to call 
  22084. this method yourself. 
  22085.  
  22086.  
  22087.  
  22088. æKY TDocument.DeleteView
  22089. æD PROCEDURE TDocument.DeleteView(viewToDelete: TView);
  22090. æFi UMacApp.p
  22091. æT METHOD 
  22092. æC DeleteView deletes the view from the document's view list. The viewToDelete 
  22093. parameter is the TView object to be disassociated from the document. DeleteView is 
  22094. called by TView.Free when it is freeing the view. You can call DeleteView if 
  22095. you are changing the document with which a view is associated, or you no longer 
  22096. want the view associated with the document. You rarely override DeleteView; you 
  22097. might do so if you wish to change the way the document's list of views works. 
  22098.  
  22099.  
  22100.  
  22101. æKY TDocument.DeleteWindow
  22102. æD PROCEDURE TDocument.DeleteWindow(windowToDelete: TWindow);
  22103. æFi UMacApp.p
  22104. æT METHOD 
  22105. æC DeleteWindow deletes the window from the document's window list. The 
  22106. windowToDelete parameter is the window to be disassociated from the document. 
  22107. DeleteWindow 
  22108. is called by TWindow.Free when freeing a window. You can call DeleteWindow if 
  22109. you are changing the document with which a window is associated, or you no 
  22110. longer want the window associated with the document. You rarely override 
  22111. DeleteWindow; you might do so if you've changed the way the document's list of windows 
  22112. works. 
  22113.  
  22114.  
  22115.  
  22116. æKY TDocument.DiskFileChanged
  22117. æD FUNCTION TDocument.DiskFileChanged(checkType: BOOLEAN): OSerr;
  22118. æFi UMacApp.p
  22119. æT METHOD 
  22120. æC DiskFileChanged tests the file type or modification date of the document's disk 
  22121. file based on the value of the checkType parameter. DiskFileChanged returns 
  22122. errFileChanged if the file's modification date does not match the value of 
  22123. fModDate; it returns noErr if the modification date has not changed. This method 
  22124. returns errFTypeChanged if the file type does not match the value of fFileType.; it 
  22125. returns noErr if the file type has not changed. This method first calls the 
  22126. global routine GetFileInfo; if GetFileInfo returns any result other than noErr, 
  22127. this method returns that error code and does not test the file any further. If 
  22128. the call to GetFileInfo succeeds, the file type or modification date is tested as 
  22129. specified by the checkType parameter. The checkType parameter specifies 
  22130. whether DiskFileChanged should check the file’s file type. If the value of the 
  22131. checkType parameter is TRUE and the file’s type has changed, this method returns the 
  22132. error code errFTypeChanged but does not check the file’s modification date. If 
  22133. the value of checkType is TRUE and the file’s type has not changed, this method 
  22134. checks the file’s modification date and returns errFileChanged if the file's 
  22135. modification date has changed. If the value of the checkType parameter is FALSE, 
  22136. this method tests the file’s modification date but does not check its file 
  22137. type; it returns errFileChanged if the file’s modification date has changed. 
  22138. DiskFileChanged is called by TDocument.CheckDiskFile to determine whether to allow 
  22139. the user to cancel a save operation because another document has changed the 
  22140. file. You rarely call DiskFileChanged yourself; however, you may need to call this 
  22141. method yourself if you have overridden TDocument.CheckDiskFile, if you have 
  22142. changed the way MacApp saves document files, or if you have changed the criteria 
  22143. used to determine whether a file has changed. 
  22144.  
  22145.  
  22146.  
  22147. æKY TDocument.DoInitialState
  22148. æD PROCEDURE TDocument.DoInitialState;
  22149.  
  22150. æFi UMacApp.p
  22151. æT METHOD 
  22152. æC DoInitialState sets up the document's state when it is associated with a new, 
  22153. unsaved file (as opposed to setting the document's state from data read from a 
  22154. saved disk file). DoInitialState is an empty method; you can use it to do further 
  22155. initialization that you would not do when opening a previously saved document. 
  22156. MacApp calls DoInitialState when the user chooses the New command, when the 
  22157. user chooses the Revert command and there is no saved file, and when the user 
  22158. launches the application. You rarely call it yourself because MacApp calls it in 
  22159. all cases necessary. You override this method often to provide additional 
  22160. initialization when new documents are created. 
  22161.  
  22162.  
  22163.  
  22164. æKY TDocument.DoMakeViews
  22165. æD PROCEDURE TDocument.DoMakeViews(forPrinting: BOOLEAN);
  22166. æFi UMacApp.p
  22167. æT METHOD 
  22168. æC DoMakeViews creates all necessary views for the document—both the views that 
  22169. interpret the document's data and those that are independent of the data (such as 
  22170. windows, palettes, and scrollers)—and stores them in the document's fields. The 
  22171. forPrinting parameter has the value TRUE if DoMakeViews is called in response 
  22172. to a message to print a document from the Finder. In this case, DoMakeViews 
  22173. creates only those views required for printing the document's data. If your 
  22174. application creates views that are not printed (such as palette views or windows), 
  22175. you do not need to create them when the value of forPrinting is TRUE. MacApp 
  22176. calls DoMakeViews after creating and initializing a document and before the 
  22177. document's windows are created. It is called by TApplication.OpenNew when creating a 
  22178. new, unsaved document; it is called by TApplication.OpenOld when opening a 
  22179. previously saved document, and it is called by TApplication.PrintDocument when 
  22180. printing a document from the Finder. You never call DoMakeViews yourself; however 
  22181. you frequently override it because your implementation of this method is specific 
  22182. to the kind of data your document stores. If you don't override DoMakeViews 
  22183. but do include the default 'view' template in your resource description file, 
  22184. MacApp creates a default view and window when it calls DoMakeViews. See the MacApp 
  22185. 2.0 Cookbook for details on how to implement this method. 
  22186.  
  22187.  
  22188.  
  22189. æKY TDocument.DoMakeWindows
  22190. æD PROCEDURE TDocument.DoMakeWindows;
  22191. æFi UMacApp.p
  22192. æT METHOD 
  22193. æC DoMakeWindows is an empty method included primarily for compatibility with 
  22194. MacApp 1.1. Applications created in MacApp versions 1.x frequently overrode this 
  22195. method to make the document's windows separately from the views that rendered its 
  22196. data; in MacApp versions 2.x, all views, including windows, are subclasses of 
  22197. TView and are created in the DoMakeViews method. For compatibility purposes, 
  22198. DoMakeWindows is called by TApplication.OpenOld or TApplication.OpenNew after a 
  22199. document is opened, is initialized, and has its views created. You never need to 
  22200. call DoMakeWindows yourself, regardless of what version of MacApp you may be 
  22201. using. In versions 2.x of MacApp, you usually override DoMakeViews to make all of 
  22202. the views, including the windows, for your document. 
  22203.  
  22204.  
  22205.  
  22206. æKY TDocument.DoMenuCommand
  22207. æD FUNCTION TDocument.DoMenuCommand(aCmdNumber: CmdNumber): TCommand; OVERRIDE;
  22208.  
  22209. æFi UMacApp.p
  22210. æT METHOD 
  22211. æC DoMenuCommand performs the appropriate actions to process a user’s menu 
  22212. selection. The default method retuns a TCommand object to handle the commands cSave, 
  22213. cSaveAs, cSaveCopy, and cRevert. Commands within the range cPrFileBase to 
  22214. cPrFileMax are passed to the DoMenuCommand method of the document’s print handler. 
  22215. All other commands are returned to the command chain by calling INHERITED 
  22216. DoMenuCommand. The parameter aCmdNumber is the command number defined for the selected 
  22217. menu item. MacApp predefines certain command numbers as constants in the file 
  22218. UMacApp.p; you can define others in your 'cmnu' resource description and in the 
  22219. appropriate interface or implementation file. MacApp calls DoMenuCommand when 
  22220. the user chooses a Print, Save, Save As, Save a Copy, or Revert command from a 
  22221. menu.Although you usually do not need to call this method yourself, you often 
  22222. override DoMenuCommand when your application has its own menu commands that apply 
  22223. to the document as a whole. In that case, you must end your override method by 
  22224. calling INHERITED DoMenuCommand so that MacApp can return to the command chain 
  22225. those commands that the override does not handle. 
  22226.  
  22227.  
  22228.  
  22229. æKY TDocument.DoNeedDiskSpace
  22230. æD PROCEDURE TDocument.DoNeedDiskSpace(VAR dataForkBytes, rsrcForkBytes: LONGINT);
  22231. æFi UMacApp.p
  22232. æT METHOD 
  22233. æC DoNeedDiskSpace uses the parameters you specify to return the amount of disk 
  22234. space needed to save the document's data. The dataForkBytes parameter indicates 
  22235. the amount of disk space in the data fork needed to save the document’s data. If 
  22236. your document saves print information, DoNeedDiskSpace adds the value of 
  22237. kPrintInfoSize to the value you specify in dataForkBytes and returns the new value 
  22238. in dataForkBytes. The rsrcForkBytes parameter indicates the amount of disk space 
  22239. in the resource fork needed to save the document’s data. DoNeedDiskSpace adds 
  22240. the value of kRsrcFileOverhead to the value you specify in rsrcForkBytes and 
  22241. returns the new value in rsrcForkBytes. DoNeedDiskSpace is called by 
  22242. TDocument.Save when saving a document's data; you usually do not need to call it 
  22243. yourself. 
  22244. You almost always override this method, however; documents that do not override 
  22245. DoNeedDiskSpace should not save any data except the print information record. 
  22246. Your override method should accurately predict how much disk space will be 
  22247. needed to store the data and resources for the documents. Because MacApp may have 
  22248. already set values for dataForkBytes and resourceForkBytes before calling 
  22249. DoNeedDiskSpace, you should add your needs to the initial values of these variables. 
  22250. You need only supply values in bytes because MacApp automatically accounts for 
  22251. an integral number of blocks necessary to complete the save operation. Most 
  22252. documents have no resources, so the value of the rsrcForkBytes parameter is 
  22253. usually 0. If your document does use the resource fork, you can use the constants 
  22254. kRsrcTypeOverhead and kRsrcOverhead to account for the resource file overhead for 
  22255. each resource type and individual resource, respectively. 
  22256.  
  22257.  
  22258.  
  22259. æKY TDocument.DoRead
  22260. æD PROCEDURE TDocument.DoRead(aRefNum: INTEGER; rsrcExists, forPrinting: BOOLEAN);
  22261. æFi UMacApp.p
  22262. æT METHOD 
  22263. æC DoRead reads an existing document file to use its data in the document object 
  22264. and stores its printing information in the fPrintInfo field if the document saves 
  22265. print information. The aRefNum parameter is the File Manager reference number 
  22266. that specifies the file to be read. If the document doesn’t use the document's 
  22267. data fork—that is, if it uses only the file’s resource fork—the value of 
  22268. aRefNum is 0. The rsrcExists parameter has the value TRUE if the resource fork of the 
  22269. file exists; the default version of DoRead ignores this parameter, however. 
  22270. The forPrinting parameter has the value TRUE if the file is being read only so 
  22271. that it can be printed; the default version of DoRead ignores this parameter 
  22272. also. DoRead is called by TDocument.ReadFromFile. You normally only call DoRead as 
  22273. an inherited method from within your override DoRead method; otherwise, you 
  22274. never call it. You almost always override DoRead because documents that do not 
  22275. override this method cannot save or restore anything except their print 
  22276. information record. Your override method provides specific behavior your application 
  22277. needs when it reads a document’s data from the disk; this override method must call 
  22278. INHERITED DoRead unless you intend to eliminate or change the standard 
  22279. document reading behavior of the TDocument class. Your implementation of DoRead 
  22280. OVERRIDE generally begins with a call to INHERITED DoRead so that the print 
  22281. information record is read, if necessary. It then reads the data of the document and 
  22282. stores it in fields or objects available to the document object. You should check 
  22283. the rsrcExists parameter before trying to read the resource fork. (It is 
  22284. possible that the user opened a document having no resource fork. MacApp does not 
  22285. consider this an error.) If your document uses the resource fork and the resource 
  22286. fork exists, then MacApp will ensure that the current resource file is that of 
  22287. the document when this method is called. You may want call the Toolbox function 
  22288. CurResFile to get the reference number of the resource file at the start of 
  22289. this method if you think that some other method might change the current resource 
  22290. file. For more details about implementing your DoRead OVERRIDE method, see the 
  22291. section on opening an existing document file recipe in the MacApp 2.0 
  22292. Cookbook. 
  22293.  
  22294.  
  22295.  
  22296. æKY TDocument.DoSetupMenus
  22297. æD PROCEDURE TDocument.DoSetupMenus; OVERRIDE;
  22298. æFi UMacApp.p
  22299. æT METHOD 
  22300. æC DoSetupMenus enables menu items to which the TDocument object’s DoMenuCommand 
  22301. method can respond. DoSetupMenus is initially called by 
  22302. TApplication.SetupTheMenus; afterwards, it is called by TEvtHandler.DoSetupMenus when 
  22303. setting the attributes of the menus and this document is in the target chain. 
  22304. You never need to call DoSetupMenus yourself; however, you will often override it. 
  22305. You override DoSetupMenus if you define any menu commands that apply to your document. 
  22306. In general, you override this method whenever you override TDocument.DoMenuCommand. 
  22307. Your implementation must begin by calling INHERITED DoSetupMenus so that MacApp 
  22308. can do initial setup of the menus first. You can then use either of the global 
  22309. routines Enable or EnableCheck to enable any menu commands that can currently be 
  22310. used. You can also adorn menus in other ways; for more detailed information, 
  22311. see the chapter on menus and menu commands in the MacApp 2.0 Cookbook. 
  22312.  
  22313.  
  22314.  
  22315. æKY TDocument.DoWrite
  22316. æD PROCEDURE TDocument.DoWrite(aRefNum: INTEGER; makingCopy: BOOLEAN);
  22317. æFi UMacApp.p
  22318. æT METHOD 
  22319. æC DoWrite saves a document’s data to a disk file; however, the default version of 
  22320. this method writes only the document's print information. You must override 
  22321. this method, providing the code that saves your document's data. The aRefNum 
  22322. parameter is the file-system reference number for the document file. MacApp obtains 
  22323. the value of aRefNum from the file system. The makingCopy parameter is set to 
  22324. TRUE when DoWrite is to save a copy of the document, as opposed to a normal Save 
  22325. or Save As operation. This parameter is usually used for optimizing disk-based 
  22326. documents. DoWrite is called by TDocument.MakeNewCopy to write the contents of 
  22327. the document to a disk file. You usually call DoWrite only as an inherited 
  22328. method from within your override DoWrite method; otherwise, you never call it 
  22329. yourself. You almost always override DoWrite because documents that do not override 
  22330. this method cannot save or restore anything except their print information 
  22331. record. Your implementation of the override method begins with a call to INHERITED 
  22332. DoWrite if it is necessary to save the print information record. It then saves 
  22333. the document’s data. If your document uses the resource fork and the resource 
  22334. fork exists, MacApp will ensure that the topmost resource file is that of the 
  22335. document when this method is called. You may also want to get the reference 
  22336. number of the resource file at the start of this method if you think that some 
  22337. other method might change the topmost resource file. For more details about 
  22338. implementing your DoWrite OVERRIDE method, see the section on saving and restoring 
  22339. data recipe in the MacApp 2.0 Cookbook. 
  22340.  
  22341.  
  22342.  
  22343. æKY TDocument.Fields
  22344. æD PROCEDURE TDocument.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  22345.   fieldType: INTEGER)); OVERRIDE;
  22346. æFi UMacApp.p
  22347. æT METHOD 
  22348. æC Fields reports the contents of each field of the TDocument object to the MacApp 
  22349. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  22350. contents of each field. Fields iterates over all the fields of the TDocument 
  22351. object, performing DoToField on each one. The fieldName parameter is the name of 
  22352. the field. The fieldAddr parameter is the field’s location in memory. The 
  22353. fieldType parameter uses a predefined constant to tell Fields what type of 
  22354. information to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  22355. must override this method in your subclasses if you want the Inspector to 
  22356. display your fields. Your override must call INHERITED Fields as its last action to 
  22357. ensure that the inherited fields are also displayed. 
  22358.  
  22359.  
  22360.  
  22361. æKY TDocument.ForAllViewsDo
  22362. æD PROCEDURE TDocument.ForAllViewsDo(PROCEDURE DoToView(aView: TView));
  22363. æFi UMacApp.p
  22364. æT METHOD 
  22365. æC ForAllViewsDo performs the specified operation on every view belonging to the 
  22366. document. The DoToView parameter is a procedure, usually local to the caller, 
  22367. that is called repeatedly by ForAllViewsDo and passed to each of the views in 
  22368. turn. MacApp calls ForAllViewsDo when it needs to apply some action to all of a 
  22369. document's views. ForAllViewsDo is called by TDocument.ShowReverted to notify each 
  22370. view that the document's data has been restored to match the last saved 
  22371. version. This method is also called by TStdPrintHandler.CheckPrinter to notify each 
  22372. view that the print characteristics may have changed. You can call this method 
  22373. if you want to apply some action to each of the document's views—for example, 
  22374. you may want to invalidate each view because the document's data changed. You 
  22375. override ForAllViewsDo only if you've changed the way the document's list of views 
  22376. works. 
  22377.  
  22378.  
  22379.  
  22380. æKY TDocument.ForAllWindowsDo
  22381. æD PROCEDURE TDocument.ForAllWindowsDo(PROCEDURE DoToWind(aWindow: TWindow));
  22382. æFi UMacApp.p
  22383. æT METHOD 
  22384. æC ForAllWindowsDo performs the specified procedure on each window belonging to the 
  22385. document. The DoToWind parameter is a procedure, usually local to the caller, 
  22386. that is applied to each window in the document's list of windows (fWindowList). 
  22387. MacApp calls ForAllWindowsDo to apply some action to each of the document's 
  22388. windows. This method is called by TDocument.Close to close each of the document's 
  22389. windows when closing the document. It is also called by TDocument.SetTitle to 
  22390. set each of the window's titles to reflect the document's title. 
  22391. TDocument.ShowWindows uses it to cause all of the document's windows to be shown, if 
  22392. the window's fOpenInitially field is set to TRUE. TWindow.CloseByUser calls this 
  22393. method to count a document's open windows. You can call ForAllWindowsDo if you want 
  22394. to apply some action to all of a document's windows. You override this method 
  22395. only if you've changed the way the document's list of windows works. 
  22396.  
  22397.  
  22398.  
  22399. æKY TDocument.Free
  22400. æD PROCEDURE TDocument.Free; OVERRIDE;
  22401. æFi UMacApp.p
  22402. æT METHOD 
  22403. æC Free releases the memory used by the TDocument object. MacApp usually frees 
  22404. document objects when they are closed; thus, you usually do not call this method 
  22405. yourself unless you change the way MacApp handles document objects. However, you 
  22406. often override Free for classes containing objects or data structures that are 
  22407. dependent on those you’ve defined in your subclass of TDocument, because you 
  22408. may not wish to free them at the same time you close the document. For example, 
  22409. your override of Free should also free any data stored in the object’s fields. 
  22410. You can, of course, override Free to call FreeData if it is convenient. When you 
  22411. override this method, you need to determine what objects are dependent on SELF. 
  22412.  
  22413.  
  22414.  
  22415. æKY TDocument.FreeData
  22416. æD PROCEDURE TDocument.FreeData;
  22417. æFi UMacApp.p
  22418. æT METHOD 
  22419. æC FreeData is an empty method; your override of this method should free the data 
  22420. structures or objects that you have defined to represent the document's data. 
  22421. FreeData is called by TDocument.Revert. You can call this method from your 
  22422. implementation of Free, if convenient. You frequently override this method if the 
  22423. data structures or objects you have defined to represent the document's data need 
  22424. to be freed when the document is reverted (in anticipation of being recreated 
  22425. by DoRead or DoInitialState). 
  22426.  
  22427.  
  22428.  
  22429. æKY TDocument.FreeFile
  22430. æD PROCEDURE TDocument.FreeFile;
  22431. æFi UMacApp.p
  22432. æT METHOD 
  22433. æC FreeFile frees resources associated with an open document. The default version 
  22434. closes the data and/or resource forks of the document's file if they are open. 
  22435. FreeFile is called by TDocument.Free when freeing the document. It is also 
  22436. called by TDocument.SaveInPlace when saving the document “in place.” 
  22437. TDocument.SaveViaTemp calls FreeFile when using a temporary file in the save 
  22438. operation. Although you rarely call FreeFile yourself, you sometimes override it if 
  22439. you need to take specific action when disassociating a document object from a file. 
  22440.  
  22441.  
  22442.  
  22443. æKY TDocument.FreeFromClipboard
  22444. æD PROCEDURE TDocument.FreeFromClipboard;
  22445. æFi UMacApp.p
  22446. æT METHOD 
  22447. æC FreeFromClipboard deletes the Clipboard window (gClipWindow) from the window 
  22448. list (fWindowList) and then calls TDocument.Free to free the Clipboard document. 
  22449. FreeFromClipboard is called by TView.FreeFromClipboard. You never call it 
  22450. yourself, although you may sometimes override it if you need to free a document on 
  22451. the Clipboard other than by calling TDocument.Free. 
  22452.  
  22453.  
  22454.  
  22455. æKY TDocument.GetChangeCount
  22456. æD FUNCTION TDocument.GetChangeCount: LONGINT;
  22457.  
  22458. æFi UMacApp.p
  22459. æT METHOD 
  22460. æC GetChangeCount returns the current change count for the document; it is used to 
  22461. determine if the document needs to be saved. If GetChangeCount returns a 
  22462. non-zero result, the document has changed since it was last saved to the disk. MacApp 
  22463. calls this method to get the change count for the document. You can use the 
  22464. method in a similar fashion. 
  22465.  
  22466.  
  22467.  
  22468. æKY TDocument.GetInspectorName
  22469. æD PROCEDURE TDocument.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  22470. æFi UMacApp.p
  22471. æT METHOD 
  22472. æC GetInspectorName retrieves the contents of the TDocument object’s fTitle field 
  22473. for display in the Inspector window. When the method returns, the inspectorName 
  22474. parameter contains the name of the TDocument object. GetInspectorName is called 
  22475. by TObjListView.GetItemText to retrieve the text displayed in the upper-right 
  22476. pane of an Inspector window. You rarely need to call GetInspectorName yourself, 
  22477. except possibly for debugging purposes. You can override this method to change 
  22478. the way the Inspector works—for example, you can override this method to 
  22479. display something other than the document’s title in the upper-right pane of the 
  22480. Inspector windows. 
  22481.  
  22482.  
  22483.  
  22484. æKY TDocument.GetSaveInfo
  22485. æD FUNCTION TDocument.GetSaveInfo(itsCmdNumber: CmdNumber; copyFInfo: BOOLEAN; 
  22486.   VAR cInfo: CInfoPBRec): BOOLEAN;
  22487. æFi UMacApp.p
  22488. æT METHOD 
  22489. æC GetSaveInfo returns information required for saving the document to a file. If 
  22490. the values of fSaveExists and copyFInfo are both TRUE, this method fills in the 
  22491. cInfo parameter with information from the file to be saved. If either of those 
  22492. values are FALSE, GetSaveInfo sets only the file type and creator using the 
  22493. TDocument fields. GetSaveInfo returns the value TRUE if it successfully gets the 
  22494. information from the file; if an error occurs when it calls the file system, the 
  22495. cInfo record is invalid. The itsCmdNumber parameter is the command that caused 
  22496. the document to be saved. The copyFInfo parameter is set to TRUE by 
  22497. TDocument.Save if the values of askForFilename and makingCopy are both FALSE; this 
  22498. indicates that the document's existing file information should be copied. The cInfo 
  22499. parameter is the file information that GetSaveInfo returns. MacApp calls 
  22500. GetSaveInfo when saving the document's data to a file. You rarely call GetSaveInfo 
  22501. yourself, unless you have implemented your own file-saving techniques. This method 
  22502. is called by TDocument.SaveInPlace when saving a file in place of the 
  22503. original, and it is called by TDocument.SaveViaTemp when saving to a temporary file. 
  22504. You usually do not need to override GetSaveInfo. 
  22505.  
  22506.  
  22507.  
  22508. æKY TDocument.GetTempName
  22509. æD PROCEDURE TDocument.GetTempName(VAR fileName: Str255);
  22510. æFi UMacApp.p
  22511. æT METHOD 
  22512. æC GetTempName returns a temporary name used in saving the file. The filename has 
  22513. two parts: the first part is the document's name, or the application's name if 
  22514. the document is untitled. The second part, appended to the first, is a 
  22515. pseudo-random number based on the tick count and number of seconds since startup. The 
  22516. fileName parameter is a name for a temporary document file. MacApp calls 
  22517. GetTempName from TDocument.SaveViaTemp when saving the document to a temporary file. 
  22518. You can call it if you need to generate a name for a temporary file. You can 
  22519. override this method if you need to change the way the temporary filename is 
  22520. determined, but you rarely need to do so. 
  22521.  
  22522.  
  22523.  
  22524. æKY TDocument.HandlesPrintingCommands
  22525. æD FUNCTION TDocument.HandlesPrintingCommands: BOOLEAN; OVERRIDE;
  22526. æFi UMacApp.p
  22527. æT METHOD 
  22528. æC HandlesPrintingCommands returns the value TRUE if the TDocument object handles 
  22529. printing commands. MacApp calls HandlesPrintingCommands from 
  22530. TDocument.DoSetupMenus to decide whether the document's print handler should set up 
  22531. the print-related commands; if the document has a print handler and the target view 
  22532. does not handle printing commands, the document's print handler is given the 
  22533. responsibility. Printing commands are usually handled by one of the document's views; 
  22534. however, in some situations it may be more appropriate for the document to handle 
  22535. these commmands. Because the default version of HandlesPrintingCommands simply 
  22536. returns the value FALSE, you must override this method if you want your 
  22537. documents to handle printing commands. Your override method must return the value 
  22538. TRUE, enable the print commands in your override of TDocument.DoSetupMenus, and 
  22539. handle the print commands in your override of TDocument.DoMenuCommand. You never 
  22540. need to call this method yourself. 
  22541.  
  22542.  
  22543.  
  22544. æKY TDocument.IDocument
  22545. æD PROCEDURE TDocument.IDocument(itsFileType, itsCreator: OSType; 
  22546.   usesDataFork, usesRsrcFork: BOOLEAN; keepsDataOpen, keepsRsrcOpen: BOOLEAN);
  22547. æFi UMacApp.p
  22548. æT METHOD 
  22549. æC IDocument initializes the TDocument object. The itsFileType parameter is an 
  22550. array of four characters that specifies the document’s file type. The itsCreator 
  22551. parameter is an array of four characters that specifies the document file’s 
  22552. creator (that is, the signature of the application that created it). The value of 
  22553. the usesDataFork parameter is TRUE if the document uses its data fork. The value 
  22554. of the keepsDataOpen parameter is TRUE if the application keeps the document's 
  22555. data fork open when the file is open. The value of the usesRsrcFork parameter 
  22556. is TRUE if the document uses its resource fork. The value of the keepsRsrcOpen 
  22557. parameter is TRUE if the application keeps the document's resource fork open 
  22558. when the file is open. MacApp calls this method from several places, including 
  22559. TApplication.DoMakeDocument and TInspector.IInspector. You must call IDocument 
  22560. from your TDocument subclass initialization method. You never need to override 
  22561. IDocument. 
  22562.  
  22563.  
  22564.  
  22565. æKY TDocument.MakeNewCopy
  22566. æD PROCEDURE TDocument.MakeNewCopy(makingCopy: BOOLEAN; validFInfo: BOOLEAN;
  22567.   VAR cInfo: CInfoPBRec);
  22568. æFi UMacApp.p
  22569. æT METHOD 
  22570. æC MakeNewCopy creates a copy of the document's data in the specified file. The 
  22571. makingCopy parameter has the value TRUE if the purpose of calling MakeNewCopy is 
  22572. to produce a copy of the document—that is, to do a Save A Copy In operation. If 
  22573. the value of makingCopy is FALSE, this method exits through the failure 
  22574. mechanism. The validFInfo parameter has the value TRUE if the information in cInfo is 
  22575. completely valid, in which case the file system routine PBSetFInfo is called to 
  22576. set the file's save information to that stored in cInfo. The cInfo parameter 
  22577. is the file's save information; it is used to make the copy. The cInfo parameter 
  22578. specifies the file's name, volume refnum, file type, and creator. The other 
  22579. fields of cInfo are used only if the value of the makingCopy parameter is FALSE. 
  22580. The makingCopy parameter is set to TRUE if the intention is to make a copy of 
  22581. the document, rather than carrying out a normal Save or Save As operation. The 
  22582. caller is responsible for calling the Toolbox routine FlushVol after calling 
  22583. MakeNewCopy. MacApp calls MakeNewCopy from TDocument.SaveInPlace when saving a 
  22584. file in place of the original. TDocument.SaveViaTemp also calls MakeNewCopy when 
  22585. saving to a temporary file. You usually do not need to call MakeNewCopy yourself 
  22586. or override it unless you've implemented your own file-saving methods. 
  22587.  
  22588.  
  22589.  
  22590. æKY TDocument.OpenAFile
  22591. æD FUNCTION TDocument.OpenAFile(name: Str255; volRefnum: INTEGER; 
  22592.   openData, openRsrc: BOOLEAN; dataPerm, rsrcPerm: INTEGER; 
  22593.   VAR dataRefnum, rsrcRefnum: INTEGER): OSerr;
  22594. æFi UMacApp.p
  22595. æT METHOD 
  22596. æC OpenAFile opens the document's data and resource forks as specified, and returns 
  22597. their reference numbers. The name parameter is the file’s name. The volRefnum 
  22598. parameter is the file's volume reference number or working directory number. If 
  22599. you set the openData or openRsrc parameters to TRUE, this method opens the 
  22600. file's data fork or resource fork, respectively. The dataPerm parameter specifies 
  22601. the data fork's access permissions. Similarly, the rsrcPerm parameter specifies 
  22602. the resource fork's access permissions. If the openData parameter is set to 
  22603. TRUE, the dataRefnum parameter, is the data fork's reference number returned by 
  22604. OpenAFile (otherwise, the parameter is kNoFileRefNum). If the openRsrc parameter 
  22605. is set to TRUE, the rsrcRefnum parameter is the resource fork's reference 
  22606. number, also returned by OpenAFile (otherwise, the parameter is kNoFileRefNum). 
  22607. MacApp calls OpenAFile whenever a document's file is opened. This method is called 
  22608. by TDocument.MakeNewCopy when creating a copy of the document's data in a new 
  22609. file. It is also called by TDocument.ReadFromFile when reading the contents of 
  22610. a document's file. Another method that calls OpenAFile is TDocument.SavedOn, 
  22611. which uses it to reopen a document's file after the document's data has been 
  22612. saved. It is also called by TDocument.SaveViaTemp to reopen a document's file a 
  22613. save operation to a temporary file fails. You can call OpenAFile yourself if you 
  22614. want to handle opening the document's file differently; otherwise, you usually 
  22615. do not need to call this method yourself or override it. 
  22616.  
  22617.  
  22618.  
  22619. æKY TDocument.OpenAgain
  22620. æD PROCEDURE TDocument.OpenAgain(itsCmdNumber: CmdNumber; openingDoc: TDocument);
  22621. æFi UMacApp.p
  22622. æT METHOD 
  22623. æC OpenAgain takes action if the user tries to open the same document twice. If the 
  22624. document's fReopenAlert field has the value TRUE, OpenAgain displays the alert 
  22625. phReopenDoc (informing the user that the document can't be opened), brings the 
  22626. first window in the already-opened document's window list to the front, and 
  22627. signals a silent failure (no error and no message). The itsCmdNumber parameter is 
  22628. the command that caused the attempt to open the document. The openingDoc 
  22629. parameter is the document MacApp is attempting to open; usually the value of this 
  22630. parameter is NIL. MacApp calls OpenAgain from TApplication.OpenOld when 
  22631. attempting to open an existing document; you usually do not need to call this method 
  22632. yourself. You might override this method, for example, if you want to open a 
  22633. second window that displays exactly the same portion of the document. You could also 
  22634. override this method to create a read-only copy of the document. 
  22635.  
  22636.  
  22637.  
  22638. æKY TDocument.PoseSaveDialog
  22639. æD FUNCTION TDocument.PoseSaveDialog: INTEGER;
  22640.  
  22641. æFi UMacApp.p
  22642. æT METHOD 
  22643. æC If the document has been changed (that is, the fChangeCount is not equal to 0), 
  22644. then PoseSaveDialog displays the "Do you want to save this document?" dialog 
  22645. box, returning the user's response. PoseSaveDialog returns cancel, kYesButton, or 
  22646. kNoButton, depending on which button the user clicks. If the document has not 
  22647. been changed then this method returns kNoButton. MacApp calls this method from 
  22648. TDocument.Close when closing the document; you usually do not need to call it 
  22649. yourself. Unless you want to change the nature of the dialog box, you usually do 
  22650. not override this method. 
  22651.  
  22652.  
  22653.  
  22654. æKY TDocument.ReadFromFile
  22655. æD PROCEDURE TDocument.ReadFromFile(VAR anAppFile: AppFile; forPrinting: BOOLEAN);
  22656. æFi UMacApp.p
  22657. æT METHOD 
  22658. æC ReadFromFile opens the document's file, reads the data by calling 
  22659. TDocument.DoRead, and closes the file if necessary. The method also sets the 
  22660. document's fDataRefNum, fRsrcRefNum and fModDate fields, and, if the document keeps 
  22661. the resource fork open, the method sets the newly opened resource fork to be the 
  22662. current (topmost) file in the resource file chain. The anAppFile parameter describes 
  22663. the file to be opened. If the value of anAppFile.fName is the empty string, then 
  22664. ReadFromFile reads from the file specified in the instance variables instead of 
  22665. that specified by the anAppFile parameter, and the contents of anAppFile are 
  22666. updated to match the document. The forPrinting parameter is set to TRUE when the 
  22667. file is opened solely for printing from the Finder. MacApp calls ReadFromFile 
  22668. when opening a document. It is called by TApplication.OpenOld when opening an 
  22669. existing document. It is also called by TApplication.PrintDocument when opening a 
  22670. document for printing from the Finder. ReadFromFile is also called by 
  22671. TDocument.Revert when opening an existing document's saved file during a revert 
  22672. operation. You rarely need to call ReadFromFile yourself. You usually do not override 
  22673. this method unless you want to change the way a document's data is read in from 
  22674. its file when the document is opened. 
  22675.  
  22676.  
  22677.  
  22678. æKY TDocument.RequestFileName
  22679. æD PROCEDURE TDocument.RequestFileName(itsCmdNumber: CmdNumber; 
  22680.   makingCopy: BOOLEAN; VAR fileName: Str255; VAR volRefnum: INTEGER);
  22681. æFi UMacApp.p
  22682. æT METHOD 
  22683. æC RequestFileName displays the standard "put file" dialog box asking the user to 
  22684. specify a filename for the document. If the user clicks the OK button, then this 
  22685. method sets the document's filename and volRefNum. If the file has already 
  22686. been opened by another document object, the other document's OpenAgain method is 
  22687. called (which by default signals failure). If a file having the same name exists 
  22688. on the same volume, that file is deleted. If the user clicks on the Cancel 
  22689. button, a silent failure is signalled. The itsCmdNumber parameter specifies the 
  22690. command that caused the document to be saved. The makingCopy parameter is set to 
  22691. TRUE if the save operation is to create a copy of the document, as opposed to a 
  22692. normal Save or Save As operation. The fileName parameter is the filename 
  22693. specified by the user. The volRefnum parameter is the reference number of the volume 
  22694. specified by the user. MacApp calls RequestFileName from TDocument.Save when 
  22695. saving a document. You usually do not need to call this method yourself or 
  22696. override it unless you've implemented your own document-saving methods. If you do 
  22697. want to modify the "put file" dialog box, it is usually sufficient to override 
  22698. TDocument.SFPutParms. 
  22699.  
  22700.  
  22701.  
  22702. æKY TDocument.Revert
  22703. æD PROCEDURE TDocument.Revert;
  22704. æFi UMacApp.p
  22705. æT METHOD 
  22706. æC Revert restores the document to match the last version that was saved on the 
  22707. disk, or restores the document to its initial state if the document has never been 
  22708. saved. MacApp calls this method when the user issues the Revert command. You 
  22709. usually do not call the Revert method yourself unless you want to restore a 
  22710. document in some other way than by using the Revert menu command or its keyboard 
  22711. equivalent. 
  22712.  
  22713.  
  22714.  
  22715. æKY TDocument.Save
  22716. æD PROCEDURE TDocument.Save(itsCmdNumber: CmdNumber; 
  22717.   askForFilename, makingCopy: BOOLEAN);
  22718. æFi UMacApp.p
  22719. æT METHOD 
  22720. æC Save implements a variety of strategies that save the document on the disk . The 
  22721. itsCmdNumber parameter is the command that caused the save operation to take 
  22722. place. If the askForFilename parameter has the value TRUE, Save asks the user to 
  22723. specify a filename for the document to be saved. The makingCopy parameter has 
  22724. the value TRUE when the purpose of the save operation is to make a copy of the 
  22725. document. If makingCopy is set to TRUE, then Save does not rename the document. 
  22726. MacApp calls Save to save a document to disk. Save is called by 
  22727. TDocument.Close when closing a document that was changed while it was open. Save is 
  22728. also called by TDocument.DoMenuCommand when the user chooses the Save, Save As, or 
  22729. Save A Copy In command. Note that Save calls the Toolbox routine FlushVol, which 
  22730. takes care of the requirements of TDocument.MakeNewCopy, TDocument.SaveInPlace, 
  22731. and TDocument.SaveViaTemp; it also calls the document's SavedOn method. Unless 
  22732. you implement document-saving commands other than the standard ones, you usually 
  22733. do not need to call the Save method yourself. For the same reason, you rarely 
  22734. need to override Save. 
  22735.  
  22736.  
  22737.  
  22738. æKY TDocument.SaveAgain
  22739. æD PROCEDURE TDocument.SaveAgain(itsCmdNumber: CmdNumber; makingCopy: BOOLEAN;
  22740.   savingDoc: TDocument);
  22741. æFi UMacApp.p
  22742. æT METHOD 
  22743. æC SaveAgain displays an error after the user chooses Save As or Save a Copy In and 
  22744. specifies the name of a document that is already opened. The itsCmdNumber 
  22745. parameter is the command that caused the attempted save operation to take place. 
  22746. The makingCopy parameter has the value TRUE when the purpose of the save 
  22747. operation is to make a copy of the document. If makingCopy is set to TRUE, then 
  22748. SaveAgain does not rename the document. The savingDoc parameter is the document being 
  22749. saved. You usually do not call SaveAgain yourself; MacApp calls this method 
  22750. from TDocument.RequestFileName when the user specifies the name of the file in 
  22751. which to save a document. You might override SaveAgain to allow the user of your 
  22752. application to save a document to a file that is already opened by another 
  22753. document; otherwise, you usually do not override this method. 
  22754.  
  22755.  
  22756.  
  22757. æKY TDocument.SavedOn
  22758. æD PROCEDURE TDocument.SavedOn(VAR fileName: Str255; volRefnum: INTEGER);
  22759. æFi UMacApp.p
  22760. æT METHOD 
  22761. æC After the document has successfully been saved, SavedOn updates the document's 
  22762. filename, volume reference number, and modification data and then reopens the 
  22763. file. The fileName parameter is the name of the file in which the document was 
  22764. saved. The filename parameter is not changed by this method; it is a VAR 
  22765. parameter for performance reasons. The volRefnum parameter is the volume reference 
  22766. number of the disk where the file was written. After the save operation is 
  22767. successfully completed, MacApp calls SavedOn from TDocument.Save to set the document 
  22768. to the new filename and volume reference number. Unless you've implemented your 
  22769. own document-saving methods, you usually do not need to call SavedOn yourself. 
  22770. You can override SavedOn if you wish to change the information it returns 
  22771. regarding a successfully saved document or if you want to change the way MacApp 
  22772. handles save operations that do not make copies. 
  22773.  
  22774.  
  22775.  
  22776. æKY TDocument.SaveInPlace
  22777. æD PROCEDURE TDocument.SaveInPlace(itsCmdNumber: CmdNumber; 
  22778.   makingCopy, copyFInfo: BOOLEAN; VAR fileName: Str255; volRefnum: INTEGER);
  22779. æFi UMacApp.p
  22780. æT METHOD 
  22781. æC SaveInPlace saves the document to a disk file, deleting the previously saved 
  22782. file before saving the document. If the value of either fDataOpen or fRsrcOpen is 
  22783. TRUE, this method does nothing. The itsCmdNumber parameter is the command that 
  22784. caused the save operation to take place. The makingCopy parameter has the value 
  22785. TRUE when the purpose of the save operation is to make a copy of the document; 
  22786. because this method saves over the original version of the file, makingCopy 
  22787. should have the value FALSE when SaveInPlace is called. The value of the 
  22788. copyFInfo parameter is TRUE when this method is to copy all of the existing file 
  22789. information. The fileName parameter is the name of the file in which to save the 
  22790. document. The volRefnum parameter is the reference number of the file's volume. 
  22791. MacApp calls SaveInPlace from TDocument.Save when the makingCopy and 
  22792. askForFileName parameters are both set to FALSE, and the document cannot or should not 
  22793. be saved using a temporary file. You never need to call SaveInPlace yourself. You 
  22794. can override this method to save a disk-based document in place by modifying the 
  22795. file. If you do, you must set the file’s access permission to a modifiable mode 
  22796. before doing so. 
  22797.  
  22798.  
  22799.  
  22800. æKY TDocument.SaveViaTemp
  22801. æD PROCEDURE TDocument.SaveViaTemp(itsCmdNumber: CmdNumber; 
  22802.   makingCopy, copyFInfo: BOOLEAN; VAR fileName: Str255; volRefnum: INTEGER);
  22803. æFi UMacApp.p
  22804. æT METHOD 
  22805. æC SaveViaTemp saves the document by creating a temporary copy of the file and 
  22806. renaming it. The caller is responsible for calling the Toolbox routine FlushVol 
  22807. after using this method. The itsCmdNumber parameter is the command that caused the 
  22808. save operation to take place. The makingCopy parameter has the value TRUE when 
  22809. the purpose of the save operation is to make a copy of the document. If 
  22810. makingCopy is set to TRUE, then SaveViaTemp does not rename the document. The 
  22811. copyFInfo parameter is set to TRUE when this method is to copy all of the existing 
  22812. file information. The fileName parameter is the name of the file in which to save 
  22813. the document. The volRefnum parameter is the reference number of the file's 
  22814. volume. MacApp always calls SaveViaTemp from TDocument.Save except when it is 
  22815. saving in place because the fSaveInPlace field is equal to sipAlways or the disk is 
  22816. full and the user indicated that saving in place was OK. You rarely need to 
  22817. call SaveViaTemp yourself. Unless you change the way MacApp saves documents, you 
  22818. usually do not need to override this method. 
  22819.  
  22820.  
  22821.  
  22822. æKY TDocument.SetChangeCount
  22823. æD PROCEDURE TDocument.SetChangeCount(newChangeCount: LONGINT);
  22824.  
  22825. æFi UMacApp.p
  22826. æT METHOD 
  22827. æC SetChangeCount sets the document change count to the specified change count. The 
  22828. newChangeCount parameter specifies the document change count. SetChangeCount 
  22829. is called by methods that change the document. You usually do not need to call 
  22830. this method unless you create your own undoable methods that change the 
  22831. document; those methods must call SetChangeCount. 
  22832.  
  22833.  
  22834.  
  22835. æKY TDocument.SetTitle
  22836. æD PROCEDURE TDocument.SetTitle(aTitle: Str255);
  22837. æFi UMacApp.p
  22838. æT METHOD 
  22839. æC SetTitle sets the title of a document and installs the title in all windows 
  22840. associated with the document. The aTitle parameter is the document's new title. 
  22841. MacApp calls SetTitle to set the title of a document. This method is called by 
  22842. TApplication.OpenNew when opening a previously saved document. SetTitle is also 
  22843. called by TDocument.SavedOn when saving a document to a new file; that is, when 
  22844. performing a Save As operation. Unless you need to change the document's title, 
  22845. you usually do not need to call SetTitle yourself. You might override SetTitle 
  22846. if you need to take additional action or change the action taken when a 
  22847. document is titled; otherwise, you usually do not need to override this method. 
  22848.  
  22849.  
  22850.  
  22851. æKY TDocument.SFPutParms
  22852. æD PROCEDURE TDocument.SFPutParms(itsCmdNumber: CmdNumber; VAR dlgID: INTEGER;
  22853.    VAR where: Point; VAR defaultName, prompt: Str255;
  22854.    VAR dlgHook, filterProc: ProcPtr);
  22855. æFi UMacApp.p
  22856. æT METHOD 
  22857. æC SFPutParms returns parameters used to call the Toolbox routine SFPPutFile. The 
  22858. itsCmdNumber parameter is the command generating the save operation. The dlgID 
  22859. parameter is the resource ID of the Standard File "put file" dialog box. The 
  22860. where parameter is the screen location of the top-left corner of the dialog box. 
  22861. The defaultName parameter is the default filename that appears in the dialog 
  22862. box. The prompt parameter is a string that is the user prompt displayed in the 
  22863. dialog box. The dlgHook parameter is a pointer to a dialog "hook" function that 
  22864. you provide. Your DlgHook function allows you to use a dialog box other than the 
  22865. one provided by the Standard File package or to handle items in the Standard 
  22866. File dialog box in a nonstandard way. (For more information on writing this 
  22867. function, see the “Standard File Package” section of Inside Macintosh.) The 
  22868. filterProc parameter is a pointer to an event filtering function used by Standard 
  22869. File. MacApp calls SFPutParms from TDocument.RequestFileName before calling the 
  22870. Toolbox function SFPPutFile. You usually do not need to call SFPutParms yourself 
  22871. unless you've overridden TDocument.RequestFileName or wish to use the Toolbox 
  22872. routine SFPPutFile. You can override SFPutParms if you want to return non-default 
  22873. values for the parameters MacApp uses to call the Toolbox routine SFPPutFile. 
  22874. For more information on the exact use of these parameters, see the 
  22875. "Standard File Package" section of Inside Macintosh. 
  22876.  
  22877.  
  22878.  
  22879. æKY TDocument.ShowReverted
  22880. æD PROCEDURE TDocument.ShowReverted;
  22881.  
  22882. æFi UMacApp.p
  22883. æT METHOD 
  22884. æC ShowReverted calls TView.ShowReverted for each view in the document’s view list 
  22885. (fViewList). MacApp calls ShowReverted from TRevertDocCommand.DoIt when the 
  22886. user chooses the Revert command and confirms. The revert algorithm assumes you’ve 
  22887. supplied your own DoRead, DoInitialState, and FreeData methods. You usually do 
  22888. not need to call ShowReverted yourself. You may override this method if you 
  22889. want to take additional action or change the action taken to show that a document 
  22890. has been restored to match the last version saved on the disk. 
  22891.  
  22892.  
  22893.  
  22894. æKY TDocument.ShowWindows
  22895. æD PROCEDURE TDocument.ShowWindows;
  22896. æFi UMacApp.p
  22897. æT METHOD 
  22898. æC When a document is opened, ShowWindows opens all of the document's windows 
  22899. having a value of TRUE in the fOpenInitially field. MacApp calls ShowWindows from 
  22900. TApplication.OpenNew or TApplication.OpenOld when creating or opening a 
  22901. document, respectively. You usually do not need to call this method yourself. You can 
  22902. override this method to change the way of determining which windows are 
  22903. initially shown when a document is opened. 
  22904.  
  22905.  
  22906.  
  22907. æKY TDocument.UntitledName
  22908. æD PROCEDURE TDocument.UntitledName(VAR noName: Str255);
  22909. æFi UMacApp.p
  22910. æT METHOD 
  22911. æC UntitledName supplies a name for a new document and returns it in the noName 
  22912. parameter. If this method returns the empty string, then the windows are not 
  22913. renamed according to the value specified in their titles. If you supply a string 
  22914. consisting of your default document name followed by <<<>>>, this method will 
  22915. supply a document name that is your default string followed by a number, such as 
  22916. 'MyDocName-1', 'MyDocName-2', and so on. If you supply an empty string for the 
  22917. noName parameter, this method calls the global routine ParseTitleTemplate to 
  22918. create a name of the form 'Untitled-n', where n is the number in the global 
  22919. variable gNumUntitled. This global variable is incremented each time UntitledName is 
  22920. called, and new documents are thus titled Untitled-1, Untitled-2, and so on. 
  22921. MacApp calls UntitledName from TApplication.OpenNew when creating a new document; 
  22922. you usually do not need to call it yourself. You can override UntitledName if 
  22923. you want to change the way a new document's title is created. 
  22924.  
  22925.  
  22926.  
  22927. æKY TDynamicArray.ComputeAddress
  22928. æD FUNCTION TDynamicArray.ComputeAddress(index: ArrayIndex): Ptr;
  22929.  
  22930. æFi UList.p
  22931. æT METHOD 
  22932. æC ComputeAddress returns a pointer to the specified element of the array. The 
  22933. index parameter specifies the element whose pointer will be returned. Note that the 
  22934. returned value is a direct heap pointer and should be used with care; the heap 
  22935. can be compacted across calls that move memory, thus invalidating the pointer. 
  22936. MacApp uses this method extensively to manipulate the elements of the array. 
  22937. You can use ComputeAddress in a similar fashion. 
  22938.  
  22939.  
  22940.  
  22941. æKY TDynamicArray.DeleteElementsAt
  22942. æD PROCEDURE TDynamicArray.DeleteElementsAt(index: ArrayIndex; count: ArrayIndex);
  22943.  
  22944. æFi UList.p
  22945. æT METHOD 
  22946. æC DeleteElementsAt deletes the elements at the specified index and compresses the 
  22947. array. The index parameter specifies the element at which deletion should 
  22948. start. The count parameter specifies the number of elements to delete. MacApp calls 
  22949. this method to delete elements from a TDynamicArray list or to free such a 
  22950. list. You usually do not need to call this method yourself. 
  22951.  
  22952.  
  22953.  
  22954. æKY TDynamicArray.DynamicFields
  22955. æD PROCEDURE TDynamicArray.DynamicFields(PROCEDURE DoToField(fieldName: Str255; 
  22956.   fieldAddr: Ptr; fieldType: integer)); OVERRIDE;
  22957.  
  22958. æFi UList.p
  22959. æT METHOD 
  22960. æC DynamicFields reports the contents of each of the TDynamicArray object’s dynamic 
  22961. areas to the MacApp Inspector. DoToField is a procedure that MacApp passes to 
  22962. DynamicFields to report the contents of each dynamic field. DynamicFields 
  22963. iterates over all the TList object’s dynamic fields, performing DoToField on each 
  22964. one. In this way DynamicFields reports the contents of each dynamic field to the 
  22965. Inspector. MacApp calls DynamicFields from the Inspector. You must override 
  22966. this method in your subclasses if you want the Inspector to display your dynamic 
  22967. fields. Your version of the method should call INHERITED DynamicFields so that 
  22968. the inherited dynamic fields will also be displayed. 
  22969.  
  22970.  
  22971.  
  22972. æKY TDynamicArray.EachElementDoTil
  22973. æD FUNCTION TDynamicArray.EachElementDoTil
  22974.   (FUNCTION TestElement(elementIndex: ArrayIndex):Boolean; 
  22975.     IterateForward: Boolean): ArrayIndex;
  22976. æFi UList.p
  22977. æT METHOD 
  22978. æC EachElementDoTil is the basic array iterator for dynamic arrays. It calls 
  22979. TestElement once for each element of the array, in order, until TestElement returns 
  22980. the value TRUE, and returns the index of the element that satisfied the test. If 
  22981. no element satisfied the test, the method returns kEmptyIndex. The 
  22982. elementIndex in the TestElement function is supplied for each element to be tested. 
  22983. The IterateForward parameter, if set to kIterateForward, indicates that the iteration 
  22984. is to be done forward through the list; if set to NOT kIterateForward, the 
  22985. iteration will be done backward. TList.IterateTil calls EachElementDoTil to 
  22986. iterate through the list. You can use this method in a similar fashion. 
  22987.  
  22988.  
  22989.  
  22990. æKY TDynamicArray.Fields
  22991. æD PROCEDURE TDynamicArray.Fields(PROCEDURE DoToField(fieldName: Str255; 
  22992.   fieldAddr: Ptr; fieldType: integer)); OVERRIDE;
  22993.  
  22994. æFi UList.p
  22995. æT METHOD 
  22996. æC Fields reports the contents of each field of the TDynamicArray object to the 
  22997. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  22998. the contents of each field. Fields iterates over all the fields of the 
  22999. TDynamicArray object, performing DoToField on each one. The fieldName parameter is the 
  23000. name of the field. The fieldAddr parameter is the field’s location in memory. 
  23001. The fieldType parameter uses a predefined constant to tell Fields what type of 
  23002. information to look for in a field. MacApp calls Fields from the MacApp 
  23003. Inspector. You must override this method in your subclasses if you want the Inspector 
  23004. to display your fields. Your override must call INHERITED Fields as its last 
  23005. action to ensure that the inherited fields are also displayed. 
  23006.  
  23007.  
  23008.  
  23009. æKY TDynamicArray.Free
  23010. æD PROCEDURE TDynamicArray.Free;
  23011.  
  23012.  
  23013. æFi UList.p
  23014. æT METHOD 
  23015. æC Free, if the array is being enumerated, deletes all of the array elements and 
  23016. marks the fFreeRequested flag so that it can be tested when the enumeration is 
  23017. completed. If the array is not being enumerated, the Free method calls INHERITED 
  23018. Free to release the memory used by the TDynamicArray object. TList objects and 
  23019. TSortedList objects use this method to free themselves. Your overrides of 
  23020. TDynamicArray methods can use Free in a similar fashion. 
  23021.  
  23022.  
  23023.  
  23024. æKY TDynamicArray.GetElementsAt
  23025. æD PROCEDURE TDynamicArray.GetElementsAt(index: ArrayIndex; ElementPtr: UNIV Ptr; 
  23026.   count: ArrayIndex);
  23027.  
  23028. æFi UList.p
  23029. æT METHOD 
  23030. æC GetElementsAt copies the specified number of elements to the specified location. 
  23031. The index parameter specifies the first element to be copied. The ElementPtr 
  23032. parameter specifies the location to which the element is to be copied. The count 
  23033. parameter specifies the number of elements to copy. In MacApp 2.0, the count 
  23034. can be greater than 1 only if the element size is a power of 2; in other words, 
  23035. odd-size elements are supported only for single-element operations. MacApp does 
  23036. not call this method; it is included for your convenience in manipulating 
  23037. dynamic arrays. 
  23038.  
  23039.  
  23040.  
  23041. æKY TDynamicArray.GetSize
  23042. æD FUNCTION TDynamicArray.GetSize: ArrayIndex;
  23043.  
  23044. æFi UList.p
  23045. æT METHOD 
  23046. æC GetSize returns the actual number of elements in the array. MacApp uses the 
  23047. GetSize method extensively in its manipulation of lists. You can use the method in 
  23048. a similar fashion. 
  23049.  
  23050.  
  23051.  
  23052. æKY TDynamicArray.IDynamicArray
  23053. æD PROCEDURE TDynamicArray.IDynamicArray(initialSize: ArrayIndex; 
  23054.   elementSize: integer);
  23055.  
  23056. æFi UList.p
  23057. æT METHOD 
  23058. æC IDynamicArray initializes a new dynamic array having the specified number of 
  23059. elements of the specified size. The initialSize parameter specifies the initial 
  23060. allocated size of the array. The elementSize parameter specifies the size of each 
  23061. element. TList.IList calls IDynamicArray to initialize the dynamic array. Your 
  23062. subclasses of TDynamicArray can use this method in a similar fashion. 
  23063.  
  23064.  
  23065.  
  23066. æKY TDynamicArray.InsertElementsBefore
  23067. æD PROCEDURE TDynamicArray.InsertElementsBefore(index: ArrayIndex; 
  23068.   ElementPtr: UNIV Ptr; count: ArrayIndex);
  23069.  
  23070. æFi UList.p
  23071. æT METHOD 
  23072. æC InsertElementsBefore inserts elements before the specified element. The method 
  23073. signals failure if it is unable to change the size of the array. The index 
  23074. parameter specifies the index of the new element. If the parameter is equal to 1, 
  23075. the new elements are inserted at the start of the array. If the parameter is 
  23076. equal to fSize + 1, the new elements are inserted at the end of the array. The 
  23077. ElementPtr parameter points to the first element to be inserted, and the count 
  23078. parameter specifies the number of elements to be inserted.For MacApp 2.0, the count 
  23079. can be greater than 1 only if the element size is a power of 2; in other 
  23080. words, odd-size elements are supported only for single-element operations. 
  23081. TDynamicArray.Merge calls InsertElementsBefore to merge two lists into one list, and 
  23082. TList.InsertBefore calls InsertElementsBefore to insert its elements. You can use 
  23083. this method in a similar fashion. 
  23084.  
  23085.  
  23086.  
  23087. æKY TDynamicArray.IsEmpty
  23088. æD FUNCTION TDynamicArray.IsEmpty: Boolean;
  23089.  
  23090. æFi UList.p
  23091. æT METHOD 
  23092. æC IsEmpty tests if the array is empty or not, and returns the value TRUE if the 
  23093. array is empty. TView.RemoveSubView calls IsEmpty to test if its list of subviews 
  23094. is empty. You can use this method in a similar fashion. 
  23095.  
  23096.  
  23097.  
  23098. æKY TDynamicArray.Merge
  23099. æD PROCEDURE TDynamicArray.Merge(aDynamicArray: TDynamicArray);
  23100.  
  23101.  
  23102. æFi UList.p
  23103. æT METHOD 
  23104. æC Merge merges the specified array with the current array and leaves aDynamicArray 
  23105. unchanged. The aDynamicArray parameter specifies the array to be merged with 
  23106. the current array. MacApp does not call this method; it is included for your 
  23107. convenience in manipulating dynamic arrays. 
  23108.  
  23109.  
  23110.  
  23111. æKY TDynamicArray.ReplaceElementsAt
  23112. æD PROCEDURE TDynamicArray.ReplaceElementsAt(index: ArrayIndex; ElementPtr: UNIV Ptr; 
  23113.   count: ArrayIndex);
  23114.  
  23115. æFi UList.p
  23116. æT METHOD 
  23117. æC ReplaceElementsAt replaces the elements at the specified index. The index 
  23118. parameter specifies the index of the element to be replaced. The ElementPtr parameter 
  23119. points to the first element to be copied, and the count parameter specifies 
  23120. the number of elements to be overwritten. For MacApp 2.0, the count can be 
  23121. greater than 1 only if the element size is a power of 2. You can call this method to 
  23122. replace the elements in the array. 
  23123.  
  23124.  
  23125.  
  23126. æKY TDynamicArray.SetArraySize
  23127. æD PROCEDURE TDynamicArray.SetArraySize(theSize: ArrayIndex);
  23128. æFi UList.p
  23129. æT METHOD 
  23130. æC SetArraySize sets the array allocation to handle up to the specified number of 
  23131. elements. The parameter theSize specifies the number of elements to be handled. 
  23132. TDynamicArray.InsertElementsBefore calls SetArraySize to increase the size of 
  23133. the array when an element is inserted; similarly, TDynamicArray.DeleteElementsAt 
  23134. calls SetArraySize to decrease the size of the array when an element is 
  23135. deleted. You usually do not need to call this method yourself; the array is resized 
  23136. any time you add or delete elements using the TDynamicArray methods 
  23137. InsertElementsBefore or DeleteElementsAt. An additional pitfall in calling this method 
  23138. yourself is that it does not update the array's fSize field; hence, it is possible 
  23139. to invalidate the count of elements actually in the array. 
  23140.  
  23141.  
  23142.  
  23143. æKY TEditText.ChangeWrap
  23144. æD PROCEDURE TEditText.ChangeWrap(newAutoWrap, redraw: BOOLEAN); OVERRIDE;
  23145. æFi UDialog.p
  23146. æT METHOD 
  23147. æC ChangeWrap sets the wrapping behavior of the TEditText object according to the 
  23148. specified value and, if a TEView is associated with the edit text, sets the 
  23149. autowrapping behavior for that view to be the same as the behavior for the edit 
  23150. text. If the newAutoWrap parameter is set to TRUE, then the TEditText object wraps 
  23151. lines of text, if necessary, to prevent the line from extending farther than 
  23152. the right edge of the view. If newAutoWrap is set to FALSE, then the TEditText 
  23153. object allows text lines to be longer than the width of the view, wrapping to a 
  23154. new line only at carriage returns. If the redraw parameter is set to TRUE, then 
  23155. the TEditText object redraws the view; otherwise, it does not. MacApp calls 
  23156. ChangeWrap from TDialogTEView.InstallEditText. You can use this method to control 
  23157. the wrapping behavior of TEditText views. 
  23158.  
  23159.  
  23160.  
  23161. æKY TEditText.DoSubstitution
  23162. æD PROCEDURE TEditText.DoSubstitution(VAR theText: Str255); OVERRIDE;
  23163. æFi UDialog.p
  23164. æT METHOD 
  23165. æC DoSubstitution is overridden to avoid performing substitutions on the view's 
  23166. text, since you usually will not want to substitute another string for a text item 
  23167. that can be edited. The parameter theText exists here to make the OVERRIDE 
  23168. method's declaration match its INHERITED method's declaration line, according to 
  23169. Object Pascal syntax; however, if you override DoSubstitution you might want to 
  23170. use theText to pass information to other methods. For example, if the user 
  23171. enters a numeric value that your application cannot accept, you could uise theText 
  23172. to pass the illegal value to your failure method and provide an informative 
  23173. error message, such as "The value x is out of range." MacApp does not call this 
  23174. method; you usually do not need to do so, either. It is an artifact of method 
  23175. inheritance and has no function unless you implement one in your override method. 
  23176.  
  23177.  
  23178.  
  23179. æKY TEditText.Draw
  23180. æD PROCEDURE TEditText.Draw(area: Rect); OVERRIDE;
  23181. æFi UDialog.p
  23182. æT METHOD 
  23183. æC If the text item is presently being edited, this method calls the TEView 
  23184. object’s Draw method; otherwise it calls INHERITED Draw, which draws the view using 
  23185. the global routine MATextBox. The area parameter is the QuickDraw rectangle, 
  23186. specified in local view coordinates, that defines the boundaries of the view; the 
  23187. value of this parameter is passed for use by INHERITED Draw. MacApp calls this 
  23188. method to update a TEditText view. You usually do not need to call it yourself. 
  23189.  
  23190.  
  23191.  
  23192. æKY TEditText.Fields
  23193. æD PROCEDURE TEditText.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  23194.   fieldType: INTEGER)); OVERRIDE;
  23195. æFi UDialog.p
  23196. æT METHOD 
  23197. æC Fields reports the contents of each field of the TEditText object to the MacApp 
  23198. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  23199. contents of each field. Fields iterates over all the fields of the TEditText 
  23200. object, performing DoToField on each one. The fieldName parameter is the name of 
  23201. the field. The fieldAddr parameter is the field’s location in memory. The 
  23202. fieldType parameter uses a predefined constant to tell Fields what type of 
  23203. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  23204. You must override this method in your subclasses if you want the Inspector to 
  23205. display your fields. Your override must call INHERITED Fields as its last action to 
  23206. ensure that the inherited fields are also displayed. 
  23207.  
  23208.  
  23209.  
  23210. æKY TEditText.Free
  23211. æD PROCEDURE TEditText.Free; OVERRIDE;
  23212. æFi UDialog.p
  23213. æT METHOD 
  23214. æC Free releases the memory used by the TDialogTEView object referenced in the 
  23215. fTEView field, and then calls INHERITED Free to free the memory used by dependent 
  23216. structures. MacApp calls Free when closing a view containing a TDialogTEView 
  23217. object. You can call Free to release the memory used by a TEditText object when 
  23218. you no longer need that object. 
  23219.  
  23220.  
  23221.  
  23222. æKY TEditText.GetText
  23223. æD PROCEDURE TEditText.GetText(VAR theText: Str255); OVERRIDE;
  23224. æFi UDialog.p
  23225. æT METHOD 
  23226. æC GetText returns the current text to be substituted in a TDialog view, obtaining 
  23227. it from the floating TEView if that view is not NIL, and storing it in the 
  23228. parameter theText. If the value of fTEView is NIL, this method calls INHERITED 
  23229. GetText to retrieve the string pointed to by the field TStaticText.fDataHandle. If 
  23230. that field is empty, GetText returns an empty string. When GetText returns, the 
  23231. parameter theText stores the text string that this method retrieves. The 
  23232. string stored in theText is to be substituted for parameterized text in a 
  23233. TDialogView view. MacApp calls GetText from the methods of TEditText, TNumberText, 
  23234. and TDialogTEView when installing or validating text in dialog boxes. You can use 
  23235. this method in a similar fashion. 
  23236.  
  23237.  
  23238.  
  23239. æKY TEditText.HandleMouseDown
  23240. æD FUNCTION TEditText.HandleMouseDown(theMouse: VPoint; VAR info: EventInfo; VAR 
  23241.   hysteresis: Point; VAR theCommand: TCommand): BOOLEAN; OVERRIDE; 
  23242. æFi UDialog.p
  23243. æT METHOD 
  23244. æC HandleMouseDown handles a mouse-down event in the TEditText, returning a 
  23245. TCommand objectHandleMouseDown processes the specified mouse-down event and returns an 
  23246. appropriate TCommand object to handle undoable actions. The default version 
  23247. retrieves the floating text edit view if there is one, and then calls INHERITED 
  23248. HandleMouseDown. The parameter theMouse is the current position of the mouse 
  23249. pointer, expressed in local view coordinates. The info parameter is the 
  23250. information from the Toolbox event record describing the mouse-down event; it is 
  23251. used to store the mouse-down event, in case the DoMouseCommand method needs to examine 
  23252. or change its modifiers. The hysteresis parameter is a point that represents 
  23253. the horizontal and vertical distance the mouse can travel between clicks and 
  23254. still be considered to be at the same location. MacApp uses this parameter to 
  23255. determine whether a double click has occurred or if the mouse pointer has moved. The 
  23256. parameter theCommand is the command object that handles the mouse click. 
  23257. MacApp calls HandleMouseDown when the user presses the mouse button while the cursor 
  23258. is within the edit text. You usually do not need to call this method yourself. 
  23259.  
  23260.  
  23261.  
  23262.  
  23263. æKY TEditText.IEditText
  23264. æD PROCEDURE TEditText.IEditText(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  23265.   itsMaxChars: INTEGER);
  23266. æFi UDialog.p
  23267. æT METHOD 
  23268. æC IEditText initializes an editable text item and installs it in the given 
  23269. superview. The record is created with the system’s default text style (gSystemStyle). 
  23270. The default size of the view is sizeFixed for both the horizontal and vertical 
  23271. size determiners. The viewable area of the text record is inset by three 
  23272. pixels. The itsSuperView parameter is the view in which the text (which itself is a 
  23273. control) appears. The itsLocation parameter is the location of the control in 
  23274. view coordinates. The itsSize parameter is the size of the control in pixels. The 
  23275. itsMaxChars parameter specifies the maximum number of characters the record 
  23276. can accept. The default value of itsMaxChars is MAXINT; change this value if you 
  23277. want to limit the maximum number of characters to fewer than MAXINT. 
  23278.  
  23279.  
  23280.  
  23281. æKY TEditText.ImageText
  23282. æD PROCEDURE TEditText.ImageText(text: Ptr; Length: LONGINT; box: Rect; 
  23283.   just: INTEGER); OVERRIDE;
  23284. æFi UDialog.p
  23285. æT METHOD 
  23286. æC ImageText draws the specified text in the rectangle indicated by the box 
  23287. parameter with the justification specified by the just parameter. The text parameter 
  23288. is a pointer to the text to be drawn, and the length parameter indicates the 
  23289. number of characters in the text. The box parameter is a rectangle (specified in 
  23290. local coordinates) that must be at least as wide as the first character drawn 
  23291. (about 20 pixels is usually a good width; see the code in the global routine 
  23292. MAText box for an algorithm that adjusts this value for varying point sizes). The 
  23293. just parameter is an integer specifying the type of justification with which to 
  23294. draw the text. 
  23295.  
  23296.  
  23297.  
  23298. æKY TEditText.InstallSelection
  23299. æD PROCEDURE TEditText.InstallSelection(wasActive, beActive: BOOLEAN); OVERRIDE;
  23300. æFi UDialog.p
  23301. æT METHOD 
  23302. æC This method calls TDialogTEView’s InstallSelection method if the value of the 
  23303. TEditText object’s fTEView field is not NIL. Set the wasActive parameter to TRUE 
  23304. if the TEditText object was the active view before InstallSelection was called; 
  23305. otherwise, set it to FALSE. Set the beActive parameter to TRUE if you want to 
  23306. make the TEditText object the active view; otherwise, set it to FALSE. MacApp 
  23307. calls InstallSelection when the TEditText object or its subview is selected or 
  23308. deselected. You usually do not need to call this method yourself. 
  23309.  
  23310.  
  23311.  
  23312. æKY TEditText.IRes
  23313. æD PROCEDURE TEditText.IRes(itsDocument: TDocument; itsSuperView: TView; 
  23314.   VAR itsParams: Ptr); OVERRIDE;
  23315. æFi UDialog.p
  23316. æT METHOD 
  23317. æC IRes initializes a TEditText object from a 'view' resource template. The 
  23318. fDefChoice field is set to mEditTextHit. The itsDocument parameter specifies the 
  23319. document associated with the TEditText view. The itsSuperView parameter specifies 
  23320. the TView object into which the view is to be installed; for a TEditText object, 
  23321. this is usually a TDialogView or TStaticText object. The itsParams parameter is 
  23322. a pointer to the portion of the 'view' resource data used to initialize this 
  23323. view. When the IRes method finishes initializing the view, the method moves the 
  23324. pointer to the end of this data. MacApp calls this method for each of the views 
  23325. created from a 'view' resource template, usually in response to a 
  23326. NewTemplateWindow or a DoCreateViews call. You never need to call IRes yourself. 
  23327.  
  23328.  
  23329.  
  23330. æKY TEditText.RestartEdit
  23331. æD PROCEDURE TEditText.RestartEdit(restartText: Str255);
  23332. æFi UDialog.p
  23333. æT METHOD 
  23334. æC RestartEdit focuses and selects the entire TDialogTEView record referenced by 
  23335. fTEView. The restartText parameter is the editable text string that needs to be 
  23336. redrawn. MacApp calls RestartEdit after the user dismisses an alert that 
  23337. obscured the view containing the text being edited. You usually do not need to call 
  23338. this method yourself. 
  23339.  
  23340.  
  23341.  
  23342. æKY TEditText.SetJustification
  23343. æD PROCEDURE TEditText.SetJustification(theJust: INTEGER; redraw: BOOLEAN);
  23344. æFi UDialog.p
  23345. æT METHOD 
  23346. æC SetJustification sets the justification of the text in the TEditText view and 
  23347. the associated TDialogTEView view, redrawing the views if requested. The 
  23348. parameter theJust is an integer specifying the justification style that the 
  23349. TStaticText object is to use. Allowed values include 
  23350.     teJustLeft = 0 
  23351.     teJustCenter = 1 
  23352.     teJustRight = -1 
  23353.     teForceLeft = -2 
  23354. The redraw parameter specifies whether the TEditText view is to redraw its contents 
  23355. after it sets the justification style; it redraws its contents if redraw is set to 
  23356. TRUE. MacApp calls SetJustification from TDialogTEView.InstallEditText to set the 
  23357. justification of the text in a TEditText view. You can use this method in a similar 
  23358. fashion. 
  23359.  
  23360.  
  23361.  
  23362. æKY TEditText.SetSelection
  23363. æD PROCEDURE TEditText.SetSelection(selStart, selEnd: INTEGER; redraw: BOOLEAN);
  23364. æFi UDialog.p
  23365. æT METHOD 
  23366. æC This method sets the selection range to the text between selStart and selEnd. 
  23367. The old selection range is unhighlighted, and the new one is highlighted. If 
  23368. selStart equals selEnd, the selection range is an insertion point, and a caret is 
  23369. displayed. The selStart parameter is the beginning of the selection; selEnd is 
  23370. the end. SelEnd and selStart can have values from 0 to 32767. If selEnd is 
  23371. anywhere beyond the last character of the text, the position just past the last 
  23372. character is used. If you set the redraw parameter to TRUE, the view is immediately 
  23373. redrawn to reflect the new selection. If you set the value of the redraw 
  23374. parameter to FALSE, then the view is not redrawn, even though the new selection may 
  23375. affect its appearance. You can set redraw to FALSE when you know the view will 
  23376. be redrawn eventually and you wish to avoid drawing it twice, which makes the 
  23377. screen appear to flicker. 
  23378.  
  23379.  
  23380.  
  23381. æKY TEditText.SetText
  23382. æD PROCEDURE TEditText.SetText(theText: Str255; redraw: BOOLEAN); OVERRIDE;
  23383. æFi UDialog.p
  23384. æT METHOD 
  23385. æC SetText provides a convenient way to set the text in a TEditText object by 
  23386. directly passing a string, as opposed to creating a StringHandle. The parameter 
  23387. theText is the string to be substituted in a TDialog view. If you set the value of 
  23388. the redraw parameter to TRUE, and the view is focused and visible, the view is 
  23389. redrawn immediately with the new text. If you set the value of the redraw 
  23390. parameter to FALSE, the view is not redrawn even though the new text may affect its 
  23391. appearance. You can set redraw to FALSE when you know the view is redrawn 
  23392. eventually and you wish to avoid drawing it twice, which makes the screen appear to 
  23393. flash. MacApp calls this method when installing or selecting text in TEditText, 
  23394. TNumberText, and TDialogTEView views. You can use this method in a similar 
  23395. fashion. 
  23396.  
  23397.  
  23398.  
  23399. æKY TEditText.StartEdit
  23400. æD PROCEDURE TEditText.StartEdit(selectChars: BOOLEAN; theTEView: TDialogTEView);
  23401. æFi UDialog.p
  23402. æT METHOD 
  23403. æC StartEdit installs the present text into the floating TEView. The selectChars 
  23404. parameter is set to TRUE if all the characters are to be selected. The parameter 
  23405. theTEView is the floating TDialogTEView in which the user is editing text. 
  23406. MacApp calls StartEdit from TDialogView.DoSelectEditText when selecting a 
  23407. TDialogTEView object in which to edit text. You can use this method in a similar 
  23408. fashion. 
  23409.  
  23410.  
  23411.  
  23412. æKY TEditText.StopEdit
  23413. æD PROCEDURE TEditText.StopEdit;
  23414.  
  23415. æFi UDialog.p
  23416. æT METHOD 
  23417. æC This method retrieves the text from the floating TEView, removes itself from its 
  23418. fTEView, and sets its fDataHandle to the new text. MacApp calls StopEdit when 
  23419. deselecting the current edit text as part of the process of handling user 
  23420. choices and carrying out operations on text in dialog boxes. You can use this method 
  23421. in a similar fashion. 
  23422.  
  23423.  
  23424.  
  23425. æKY TEditText.Validate
  23426. æD FUNCTION TEditText.Validate: LONGINT;
  23427. æFi UDialog.p
  23428. æT METHOD 
  23429. æC Validate tests the size of the text in the record associated with the handle 
  23430. TEHandle. If the number of characters in fText is greater than the value of 
  23431. fMaxChars, this method returns kTooManyCharacters; otherwise, it returns noErr. 
  23432. MacApp calls Validate when carrying out operations on text in dialog boxes; you can 
  23433. use this method in a similar fashion. You can override this method to implement 
  23434. more sophisticated validation criteria. 
  23435.  
  23436.  
  23437.  
  23438. æKY TEditText.WRes
  23439. æD PROCEDURE TEditText.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  23440. æFi UDialog.p
  23441. æT METHOD 
  23442. æC WRes writes the TEditText portion of the view’s resource template to the 
  23443. location specified by the itsParams parameter. The parameter theResource is a handle 
  23444. to the view’s resource template. The parameter itsParams is a pointer to the 
  23445. TEditText section of the view’s resource template. WRes is the inverse of the IRes 
  23446. method, and is used only by programs that write 'view' resources; for example, 
  23447. ViewEdit uses this method to create new 'view' resources from views that are 
  23448. active on the screen. You rarely need to call this method yourself. You must 
  23449. override this method in your subclasses to create your own 'view' resources. Your 
  23450. override should check the size of the space remaining in the template past the 
  23451. end of the previously-written resource data; if there is not enough space to 
  23452. write your data into the file, your override should call the global routine 
  23453. ExpandPtr, passing as arguments the current values of theResource, itsParams, and 
  23454. the size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  23455. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  23456. greater. You need not be concerned about making the 'view' resource handle too big, 
  23457. because MacApp reclaims unused space by returning a new value for itsParams when 
  23458. the WRes method completes. 
  23459.  
  23460.  
  23461.  
  23462. æKY TEditText.WriteRes
  23463. æD PROCEDURE TEditText.WriteRes(theResource: ViewRsrcHndl; 
  23464.   VAR itsParams: Ptr); OVERRIDE;
  23465. æFi UDialog.p
  23466. æT METHOD 
  23467. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('edit') and 
  23468. class name ('TEditText') for the ‘view’ resource template, and then calls WRes 
  23469. to actually write the resource. The parameter theResource is a handle to the 
  23470. view’s resource template. The parameter itsParams is a pointer to the parameters 
  23471. MacApp uses to create the new resource. MacApp calls this method to write a 
  23472. TEditText object as part of a 'view' resource; you can use it in a similar fashion. 
  23473. You can override this method to provide your own unique class name or 
  23474. signature. 
  23475.  
  23476.  
  23477.  
  23478. æKY TEntriesList.Compare
  23479. æD FUNCTION TEntriesList.Compare(item1, item2: TObject): INTEGER; OVERRIDE;
  23480. æFi UAssociation.p
  23481. æT METHOD 
  23482. æC Compare ranks two items in a list of entries in a TAssociation object based on 
  23483. the values of their respective fKey fields. The default version requires that 
  23484. the items be subclasses of TEntry and contain an fKey field. The parameters item1 
  23485. and item2 are the objects that TEntriesList.Compare ranks by fKey field. 
  23486. Compare returns one of the constants kItem1LessThanItem2, kItem1EqualItem2, or 
  23487. kItem1GreaterThanItem2, according to whether the fKey field of item1 is less than, 
  23488. equal to, or greater than the fKey field of item2. MacApp calls this method when 
  23489. it inserts entries into a TEntriesList. You probably will not need to call 
  23490. this method. 
  23491.  
  23492.  
  23493.  
  23494. æKY TEntriesList.Fields
  23495. æD PROCEDURE TEntriesList.Fields(PROCEDURE DoToField(fieldName: Str255; 
  23496.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  23497.  
  23498. æFi UAssociation.p
  23499. æT METHOD 
  23500. æC Fields reports the contents of each field of the TEntriesList object to the 
  23501. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  23502. the contents of each field. Fields iterates over all the fields of the 
  23503. TEntriesList object, performing DoToField on each one. The fieldName parameter is the 
  23504. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  23505. fieldType parameter uses a predefined constant to tell Fields what type of 
  23506. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  23507. You must override this method in your subclasses if you want the Inspector to 
  23508. display your fields. Your override must call INHERITED Fields as its last 
  23509. action to ensure that the inherited fields are also displayed. 
  23510.  
  23511.  
  23512.  
  23513. æKY TEntriesList.IEntriesList
  23514. æD PROCEDURE TEntriesList.IEntriesList;
  23515.  
  23516. æFi UAssociation.p
  23517. æT METHOD 
  23518. æC IEntriesList initializes a TEntriesList object. The default method calls 
  23519. TSortedList.ISortedList. IEntriesList is called by TAssociation.IAssociation; you 
  23520. usually do not need to call this method yourself. 
  23521.  
  23522.  
  23523.  
  23524. æKY TEntry.Fields
  23525. æD PROCEDURE TEntry.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr;
  23526.   fieldType: INTEGER)); OVERRIDE;
  23527. æFi UAssociation.p
  23528. æT METHOD 
  23529. æC Fields reports the contents of each field of the TEntry object to the MacApp 
  23530. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  23531. contents of each field. Fields iterates over all the fields of the TEntry object, 
  23532. performing DoToField on each one. The fieldName parameter is the name of the 
  23533. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  23534. parameter uses a predefined constant to tell Fields what type of information to 
  23535. look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  23536. override this method in your subclasses if you want the Inspector to display your 
  23537. fields. Your override must call INHERITED Fields as its last action to ensure 
  23538. that the inherited fields are also displayed. 
  23539.  
  23540.  
  23541.  
  23542. æKY TEntry.Free
  23543. æD PROCEDURE TEntry.Free; OVERRIDE;
  23544. æFi UAssociation.p
  23545. æT METHOD 
  23546. æC Free releases the memory used by the TEntry object and its fields. MacApp calls 
  23547. this method to dispose of items in a TEntry list. You usually do not need to 
  23548. call this method. 
  23549.  
  23550.  
  23551.  
  23552. æKY TEntry.IEntry
  23553. æD PROCEDURE TEntry.IEntry(itsKey, itsValue: Str255);
  23554. æFi UAssociation.p
  23555. æT METHOD 
  23556. æC IEntry initializes the TEntry object. The itsKey parameter is the string that 
  23557. becomes the key portion of the TEntry object. The itsValue parameter is the 
  23558. string that becomes the TEntry object’s value. MacApp calls IEntry from 
  23559. TAssociation.InsertEntry. You must call IEntry to initialize TEntry objects you create 
  23560. yourself. 
  23561.  
  23562.  
  23563.  
  23564. æKY TEntry.SetValue
  23565. æD PROCEDURE TEntry.SetValue(VAR value: Str255);
  23566. æFi UAssociation.p
  23567. æT METHOD 
  23568. æC SetValue sets the value of the TEntry object. The value parameter becomes the 
  23569. new value of the entry. MacApp calls SetValue from TAssociation.InsertEntry. You 
  23570. can use SetValue to assign a value to a TEntry object. 
  23571.  
  23572.  
  23573.  
  23574. æKY TEvtHandler.AddHandler
  23575. æD FUNCTION TEvtHandler.AddHandler(headOfChain: TEvtHandler): TEvtHandler;
  23576.  
  23577.  
  23578. æFi UMacApp.p
  23579. æT METHOD 
  23580. æC AddHandler adds itself to the chain of handlers starting at the specified 
  23581. handler, and returns itself as the new head of the chain. The headOfChain parameter 
  23582. specifies the handler that is the current head of the chain and that will become 
  23583. the next handler. TApplication.InstallCoHandler calls this method to add a 
  23584. handler to the cohandler chain. You probably will not need to call this method 
  23585. yourself. 
  23586.  
  23587.  
  23588.  
  23589. æKY TEvtHandler.CommitLastCommand
  23590. æD PROCEDURE TEvtHandler.CommitLastCommand;
  23591. æFi UMacApp.p
  23592. æT METHOD 
  23593. æC CommitLastCommand, by default, calls the next handler's CommitLastCommand 
  23594. method. TApplication.CommitLastCommand overrides this method to commit the last 
  23595. command by calling its Commit method. You usually do not need to call this method 
  23596. yourself. 
  23597.  
  23598.  
  23599.  
  23600. æKY TEvtHandler.CreateAView
  23601. æD FUNCTION TEvtHandler.CreateAView(itsDocument: TDocument; itsSuperView: TView;  
  23602.   VAR itsParams: Ptr): TView;
  23603. æFi UMacApp.p
  23604. æT METHOD 
  23605. æC This method creates a view object and initializes it. The itsDocument parameter 
  23606. specifies the document associated with the view. The itsSuperView parameter 
  23607. specifies a TView object that is the superview of the view this method creates. 
  23608. The itsParams parameter is a pointer to 'view' resource information that 
  23609. TEvtHandler.DoCreateViews has read from the view template for the TView object. 
  23610. CreateAView is called by TEvtHandler.DoCreateViews. You rarely call it yourself. 
  23611.  
  23612.  
  23613.  
  23614. æKY TEvtHandler.DoChoice
  23615. æD PROCEDURE TEvtHandler.DoChoice(origView: TView; itsChoice: INTEGER);
  23616. æFi UMacApp.p
  23617. æT METHOD 
  23618. æC The default version of DoChoice calls the DoChoice method of the next handler, 
  23619. if that handler exists. Subclasses of TEvtHandler can override DoChoice to 
  23620. perform appropriate actions when processing user-generated events. The origView 
  23621. parameter contains a reference to the TEvtHandler object to which the current user 
  23622. event applies. The itsChoice parameter is an integer that specifies the user’s 
  23623. choice in a dialog box—for example, choosing a command from a pop-up menu or 
  23624. clicking on a radio button. MacApp calls DoChoice in methods such as TrackMouse, 
  23625. when a user is manipulating the mouse to operate on a view or group of views. 
  23626. You can override this method to perform actions in response to mouse clicks in 
  23627. your TEvtHandler objects. 
  23628.  
  23629.  
  23630.  
  23631. æKY TEvtHandler.DoCommandKey
  23632. æD FUNCTION TEvtHandler.DoCommandKey(ch: Char; VAR info: EventInfo): TCommand;
  23633. æFi UMacApp.p
  23634. æT METHOD 
  23635. æC DoCommandKey handles keystrokes made with the Command key pressed, returning the 
  23636. appropriate TCommand object. If there is no next handler in the chain, this 
  23637. method returns NIL. The ch parameter is the character that corresponds to the key 
  23638. the user pressed in combination with the Command key. The info parameter is 
  23639. the event record description of the key-down event that caused MacApp to call 
  23640. DoKeyCommand; the info parameter is used to pass information about the event, such 
  23641. as whether the Option key was pressed. MacApp calls DoCommandKey when a 
  23642. key-down event is received while the Command key is pressed. You usually do not need 
  23643. to call this method yourself. 
  23644.  
  23645.  
  23646.  
  23647. æKY TEvtHandler.DoCreateViews
  23648. æD FUNCTION TEvtHandler.DoCreateViews(itsDocument: TDocument; parentView: TView; 
  23649.   itsRsrcID: INTEGER; subViewOffset: VPoint): TView;
  23650. æFi UMacApp.p
  23651. æT METHOD 
  23652. æC DoCreateViews locates a specified resource description; it then calls 
  23653. TEvtHandler.CreateAView, which creates and initializes a view that fits the resource 
  23654. description. The itsDocument parameter specifies the TDocument object associated 
  23655. with the view. The parentView parameter specifies the view's superview. The 
  23656. itsRsrcID parameter specifies the unique integer that MacApp uses to refer to a 
  23657. resource. In this case, it is the view created by this method. The subViewOffset 
  23658. parameter specifies where the first subview will be located, in superview 
  23659. coordinates. 
  23660.  
  23661.  
  23662.  
  23663. æKY TEvtHandler.DoHandleEvent
  23664. æD FUNCTION TEvtHandler.DoHandleEvent(nextEvent: EventRecordPtr; 
  23665.   VAR commandToPerform: TCommand): BOOLEAN;
  23666.  
  23667. æFi UMacApp.p
  23668. æT METHOD 
  23669. æC DoHandleEvent handles alien events when called by the application object. The 
  23670. default method simply returns the value FALSE; you must override this method to 
  23671. handle your particular type of alien event. The nextEvent parameter is a pointer 
  23672. to the event record that TApplication.GetEvent obtained from the system. The 
  23673. commandToPerform parameter is the TCommand object that is created and returned 
  23674. by this method, or is NIL if the method handled the event. MacApp calls 
  23675. DoHandleEvent from TApplication.HandleAlienEvent when the event is other than a mouse, 
  23676. keyboard, window, disk, or app4Evt event. You usually do not need to call this 
  23677. method yourself; however you must override it if your application handles 
  23678. non-standard events. Your override method should return TRUE if it can handle an 
  23679. event, passing the appropriate command object in the commandToPerform parameter; 
  23680. otherwise it should return FALSE. If your override handles the event without 
  23681. creating a command object, it should return NIL in the commandToPerform parameter. 
  23682.  
  23683.  
  23684.  
  23685.  
  23686. æKY TEvtHandler.DoHelp
  23687. æD FUNCTION TEvtHandler.DoHelp(VAR info: EventInfo; 
  23688.   VAR message: UNIV LONGINT): TCommand;
  23689. æFi UMacApp.p
  23690. æT METHOD 
  23691. æC DoHelp, when overridden, implements context-sensitive user help for commands to 
  23692. which it can respond; if it can’t respond to a command, it must call the DoHelp 
  23693. method of the next object in the target chain. The default version of this 
  23694. method simply calls the DoHelp method of the next handler in the chain. If there 
  23695. is no next handler, this method returns NIL. The info parameter is the event for 
  23696. which the user wants help; information contained in the parameter is read from 
  23697. the Toolbox event record. The message parameter is the help message that your 
  23698. override method returns. MacApp calls DoHelp from TTranscriptView.DoKeyCommand. 
  23699. You can call DoHelp from any event handler that you define to provide help 
  23700. information. You must override DoHelp to provide help text. 
  23701.  
  23702.  
  23703.  
  23704. æKY TEvtHandler.DoIdle
  23705. æD FUNCTION TEvtHandler.DoIdle(phase: IdlePhase): BOOLEAN;
  23706. æFi UMacApp.p
  23707. æT METHOD 
  23708. æC DoIdle, when overridden, is called to do tasks for your application at idle time 
  23709. and returns the value TRUE if the TEvtHandler object frees itself. The default 
  23710. version simply returns FALSE; you must override this method to provide useful 
  23711. behavior. The phase parameter can have the values idleBegin, idleContinue, or 
  23712. idleEnd. MacApp sets the value of the phase parameter to idleBegin when there 
  23713. are no events to be handled in the event record; this value tells DoIdle to pass 
  23714. control to the first handler in the idle chain. MacApp sets the value of the 
  23715. phase parameter to idleContinue when the first cohandler in the chain has 
  23716. completed its task and there still are no events posted in the event record; this 
  23717. value tells DoIdle to pass control to the next cohandler in the chain. MacApp sets 
  23718. the value of the phase parameter to idleEnd when an event is posted in the 
  23719. event record; this value tells DoIdle to pass control to the command chain or click 
  23720. chain, as appropriate. You must always override DoIdle and set the fIdleFreq 
  23721. field appropriately if you need to process at idle time, because MacApp cannot 
  23722. know the needs of your particular application. Normally this method returns 
  23723. FALSE; however, if your override removes the TEvtHandler object from the cohandler 
  23724. chain and frees the object, then the override must return TRUE. 
  23725.  
  23726.  
  23727.  
  23728. æKY TEvtHandler.DoKeyCommand
  23729. æD FUNCTION TEvtHandler.DoKeyCommand(ch: Char; aKeyCode: INTEGER;  
  23730.   VAR info: EventInfo): TCommand;
  23731. æFi UMacApp.p
  23732. æT METHOD 
  23733. æC DoKeyCommand handles keystrokes made without the Command key pressed, returning 
  23734. the appropriate TCommand object. The ch parameter is the alphanumeric character 
  23735. that corresponds to the key the user pressed. The aKeyCode parameter is the 
  23736. ASCII key code generated by the keystroke. The info parameter is the event record 
  23737. description of the event that caused MacApp to call DoKeyCommand; the info 
  23738. parameter is used to pass information about the event, such as whether the Option 
  23739. key was pressed. MacApp calls DoKeyCommand when the user presses a key on the 
  23740. keyboard. You usually do not need to override this method or call it yourself. 
  23741.  
  23742.  
  23743.  
  23744. æKY TEvtHandler.DoMenuCommand
  23745. æD FUNCTION TEvtHandler.DoMenuCommand(aCmdNumber: CmdNumber): TCommand;
  23746. æFi UMacApp.p
  23747. æT METHOD 
  23748. æC DoMenuCommand, when overridden, must perform the appropriate actions to process 
  23749. a user’s menu selection. Your override method performs simple commands passed 
  23750. to it in the aCmdNumber parameter and returns NIL; it must return a TCommand 
  23751. object to handle complex commands. Commands it cannot handle must be passed back 
  23752. to the command chain by calling INHERITED DoMenuCommand. The parameter 
  23753. aCmdNumber is the command number defined for the selected menu item. MacApp predefines 
  23754. certain command numbers as constants in the file UMacApp.p; you can define 
  23755. others in your 'cmnu' resource description and in the appropriate interface or 
  23756. implementation file. MacApp calls DoMenuCommand when the user chooses a command from 
  23757. a menu. You usually do not need to call this method yourself. 
  23758.  
  23759.  
  23760.  
  23761. æKY TEvtHandler.DoMultiClick
  23762. æD FUNCTION TEvtHandler.DoMultiClick(lastDownPt, newDownPt: Point): BOOLEAN;
  23763.  
  23764. æFi UMacApp.p
  23765. æT METHOD 
  23766. æC DoMultiClick returns the value TRUE if two mouse clicks are close enough 
  23767. together to be considered part of a double or triple click. If the sum of the x and y 
  23768. distances, in global coordinates, between the points is less than or equal to 
  23769. the value of gStdHysteresis, then the clicks are considered parts of a multiple 
  23770. click. The lastDownPt parameter specifies the location, in global coordinates, 
  23771. of the first of two clicks. The newDownPt parameter specifies the location, in 
  23772. global coordinates, of the second of two clicks. A triple click is handled as 
  23773. two double clicks, the first being clicks one and two, and the second being 
  23774. clicks two and three. DoMultiClick is called by TApplication.CountClicks. You 
  23775. usually do not need to call this method yourself. 
  23776.  
  23777.  
  23778.  
  23779. æKY TEvtHandler.DoSetupMenus
  23780. æD PROCEDURE TEvtHandler.DoSetupMenus;
  23781. æFi UMacApp.p
  23782. æT METHOD 
  23783. æC DoSetupMenus simply calls the DoSetupMenus method of the next handler in the 
  23784. chain. If you override this method in your subclasses, your override must call 
  23785. INHERITED DoSetupMenus as its first action, to allow other handlers to enable menu 
  23786. items to which they can respond. MacApp calls DoSetupMenus from the 
  23787. DoSetupMenus methods of other classes and from TApplication.SetupTheMenus. You usually 
  23788. do not need to call this method yourself, but you can call it to make certain 
  23789. that necessary menu items are enabled. 
  23790.  
  23791.  
  23792.  
  23793. æKY TEvtHandler.EachHandler
  23794. æD PROCEDURE TEvtHandler.EachHandler
  23795.   (PROCEDURE DoToEvtHandler(anEvtHandler: TEvtHandler));
  23796.  
  23797. æFi UMacApp.p
  23798. æT METHOD 
  23799. æC EachHandler performs the DoToEvtHandler procedure on each event handler in a 
  23800. linked list of event handlers—for example, on the handlers in either the target 
  23801. chain or the cohandler chain. DoToEvtHandler is a procedure that you define and 
  23802. pass to EachHandler. The procedure you define can have any name, just as 
  23803. variables that you pass as arguments can have any name. The procedure passed in 
  23804. DoToEvtHandler must take a single parameter of type TEvtHandler, which is the 
  23805. anEvtHandler parameter. EachHandler performs the DoToEvtHandler procedure on the 
  23806. current handler, then down the handler chain, and so on, until the value of 
  23807. fNextHandler is NIL, indicating that the procedure has reached the end of the list of 
  23808. event handlers. In this way, the EachHandler procedure iterates over all entries 
  23809. in the event handler list, binding each one in turn to the anEvtHandler 
  23810. parameter and executing the passed procedure. MacApp calls EachHandler to traverse 
  23811. the cohandler chain when the application is idling and to free each handler in 
  23812. the chain when closing the application. You can call this method to perform an 
  23813. operation on each handler in your application's target or cohandler chain. 
  23814.  
  23815.  
  23816.  
  23817. æKY TEvtHandler.Fields
  23818. æD PROCEDURE TEvtHandler.Fields(PROCEDURE  DoToField(fieldName: Str255; 
  23819.   fieldAddr: Ptr;  fieldType: INTEGER)); OVERRIDE;
  23820. æFi UMacApp.p
  23821. æT METHOD 
  23822. æC Fields reports the contents of each field of the TEvtHandler object to the 
  23823. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  23824. the contents of each field. Fields iterates over all the fields of the 
  23825. TEvtHandler object, performing DoToField on each one. The fieldName parameter is the 
  23826. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  23827. fieldType parameter uses a predefined constant to tell Fields what type of 
  23828. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  23829. You must override this method in your subclasses if you want the Inspector to 
  23830. display your fields. Your override must call INHERITED Fields as its last action 
  23831. to ensure that the inherited fields are also displayed. 
  23832.  
  23833.  
  23834.  
  23835. æKY TEvtHandler.FirstHandlerThat
  23836. æD FUNCTION TEvtHandler.FirstHandlerThat
  23837.   (FUNCTION TestEvtHandler(anEvtHandler: TEvtHandler): BOOLEAN): TEvtHandler;
  23838.  
  23839. æFi UMacApp.p
  23840. æT METHOD 
  23841. æC FirstHandlerThat returns from a linked list of event handlers the first item 
  23842. that meets specified criteria. If no item satisfies the criteria, FirstHandlerThat 
  23843. returns NIL. TestEvtHandler is a function that you define and pass to 
  23844. FirstHandlerThat. The function you define can have any name, just as variables that 
  23845. you pass as arguments can have any name. The function passed in TestEvtHandler 
  23846. must take a single parameter of type TEvtHandler, which is the anEvtHandler 
  23847. parameter. FirstHandlerThat performs the TestEvtHandler function to the current 
  23848. handler, then to its fNextHandler, and so on, until either the value of fNextHandler 
  23849. is NIL, indicating that the function has reached the end of the list of event 
  23850. handlers, or the function TestEvtHandler returns the value TRUE. In this way, 
  23851. the FirstHandlerThat function iterates over all entries in the event handler 
  23852. list, binding each one in turn to the anEvtHandler parameter and executing the 
  23853. passed function. MacApp calls FirstHandlerThat to find the first handler that 
  23854. satisfies some criteria in an event handler list. For example, this method call can 
  23855. be in response to an alien event—that is, one not handled by the normal 
  23856. complement of event handlers in MacApp. You can use this method for similar purposes. 
  23857.  
  23858.  
  23859.  
  23860.  
  23861. æKY TEvtHandler.Free
  23862. æD PROCEDURE TEvtHandler.Free; OVERRIDE;
  23863. æFi UMacApp.p
  23864. æT METHOD 
  23865. æC Free cleans up the target chain, releases the memory used by the TEvtHandler 
  23866. object, and calls INHERITED Free to perform any auxiliary cleanup that may be 
  23867. necessary, such as freeing other objects to which the TEvtHandler object contains 
  23868. references. MacApp calls Free to dispose of TEvtHandler objects. You usually do 
  23869. not need to call this method. 
  23870.  
  23871.  
  23872.  
  23873. æKY TEvtHandler.GetLastCommand
  23874. æD FUNCTION TEvtHandler.GetLastCommand: TCommand;
  23875. æFi UMacApp.p
  23876. æT METHOD 
  23877. æC GetLastCommand, by default, passes the request for the last command to the next 
  23878. handler. The command returned is not yet committed. TApplication.GetLastCommand 
  23879. overrides this method to return the last undoable command. You usually do not 
  23880. need to call this method yourself. 
  23881.  
  23882.  
  23883.  
  23884. æKY TEvtHandler.GetNextCommand
  23885. æD FUNCTION TEvtHandler.GetNextCommand: TCommand;
  23886.  
  23887. æFi UMacApp.p
  23888. æT METHOD 
  23889. æC GetNextCommand, by default, passes the request for the next command to the next 
  23890. handler. TApplication.GetNextCommand overrides this method to return the next 
  23891. command to be executed in the command queue, or NIL if there are no queued 
  23892. commands. You usually do not need to call this method yourself. 
  23893.  
  23894.  
  23895.  
  23896. æKY TEvtHandler.HandlesPrintingCommands
  23897. æD FUNCTION TEvtHandler.HandlesPrintingCommands: BOOLEAN;
  23898. æFi UMacApp.p
  23899. æT METHOD 
  23900. æC This function calls the HandlesPrintingCommands method of the next handler in 
  23901. the chain and returns the value of that call; it is TRUE if that handler can 
  23902. handle printing commands. If there is no next handler, this method returns the 
  23903. value FALSE. 
  23904.  
  23905.  
  23906.  
  23907. æKY TEvtHandler.IdentifySoftware
  23908. æD PROCEDURE TEvtHandler.IdentifySoftware;
  23909. æFi UMacApp.p
  23910. æT METHOD 
  23911. æC This method is overridden in its subclasses to write a string to the debug 
  23912. transcript with information about the version of MacApp used to create the 
  23913. application. Typically the override then calls INHERITED IdentifySoftware to pass 
  23914. this message on to the next handler in the chain. The default version of 
  23915. TEvtHandler.IdentifySoftware simply passes control to the next handler. MacApp calls 
  23916. this method when the user issues the Identify Software command in the MacApp 
  23917. debugger. You usually do not need to call this method yourself. You can override this 
  23918. method to add further information to the debug transcript. 
  23919.  
  23920.  
  23921.  
  23922. æKY TEvtHandler.IEvtHandler
  23923. æD PROCEDURE TEvtHandler.IEvtHandler(itsNextHandler: TEvtHandler);
  23924. æFi UMacApp.p
  23925. æT METHOD 
  23926. æC IEvtHandler initializes an event handler, setting values for fNextHandler, 
  23927. fIdleFreq, and fLastIdle. The itsNextHandler parameter specifies the next handler in 
  23928. the chain. TEvtHandler assumes the new handler never wants idle time, and sets 
  23929. fIdleFreq to kMaxIdleTime and fLastIdle to 0. MacApp calls IEvtHandler from a 
  23930. variety of other classes’ initialization methods. You may call this method from 
  23931. the initialization methods of your subclasses that create event handlers—for 
  23932. example, when you create a cohandler. 
  23933.  
  23934.  
  23935.  
  23936. æKY TEvtHandler.InstallSelection
  23937. æD PROCEDURE TEvtHandler.InstallSelection(wasActive, beActive: BOOLEAN);
  23938. æFi UMacApp.p
  23939. æT METHOD 
  23940. æC InstallSelection, when overridden, must install the selection after the target 
  23941. window is activated or deactivated. This is an empty method; your subclasses 
  23942. must override it to provide any useful behavior. Set the wasActive parameter to 
  23943. TRUE if the target window was the active window before InstallSelection was 
  23944. called; otherwise, set it to FALSE. Set the beActive parameter to TRUE if you want 
  23945. to make the target window the active window; otherwise, set it to FALSE. MacApp 
  23946. calls InstallSelection from methods that change the active window or view. You 
  23947. can use this method to make a view active and ensure that its selection appears 
  23948. correctly. 
  23949.  
  23950.  
  23951.  
  23952. æKY TEvtHandler.KeyEventToComponents
  23953. æD PROCEDURE TEvtHandler.KeyEventToComponents(VAR info: EventInfo);
  23954.  
  23955. æFi UMacApp.p
  23956. æT METHOD 
  23957. æC KeyEventToComponents, when overridden, must extract an event’s character 
  23958. components using techniques compatible with the Script Manager. The default method 
  23959. passes the information to the next handler, if there is one. If there is no next 
  23960. handler, the method extracts the character and the ASCII key code from the 
  23961. information in the info parameter. The info parameter is the event record 
  23962. description of the event. MacApp calls this method when it receives a key-down event 
  23963. from the system; you usually do not need to call this method. 
  23964.  
  23965.  
  23966.  
  23967. æKY TEvtHandler.LookupSymbol
  23968. æD FUNCTION TEvtHandler.LookupSymbol(VAR sym: Str255): LONGINT;
  23969. æFi UMacApp.p
  23970. æT METHOD 
  23971. æC LookupSymbol translates a symbol to a number and returns it as a LONGINT value 
  23972. for use by the MacApp debugger. The sym parameter specifies an ASCII character 
  23973. that is the symbol to be translated. If the value of sym is '?' then 
  23974. LookupSymbol writes a list of available symbols to the Debug Transcript. You must 
  23975. override LookupSymbol in your classes if you want to handle any special symbols that 
  23976. are not processed by the default behavior. You usually do not need to call this 
  23977. method yourself. 
  23978.  
  23979.  
  23980.  
  23981. æKY TEvtHandler.PerformCommand
  23982. æD PROCEDURE TEvtHandler.PerformCommand(command: TCommand);
  23983. æFi UMacApp.p
  23984. æT METHOD 
  23985. æC PerformCommand, by default, passes the command to the next handler. 
  23986. TApplication.PerformCommand overrides this method to perform the specified command. 
  23987. The command parameter is the TCommand object created to perform the command. MacApp 
  23988. calls this method from the HandleEvent and PollEvent methods of both the 
  23989. TApplication and TDebugApplication classes. You normally execute command objects by 
  23990. calling TEvtHandler.PostCommand to post them to the command queue; however, if 
  23991. you need to execute an existing command immediately you can call 
  23992. PerformCommand. 
  23993.  
  23994.  
  23995.  
  23996. æKY TEvtHandler.PostCommand
  23997. æD PROCEDURE TEvtHandler.PostCommand(command: TCommand);
  23998.  
  23999. æFi UMacApp.p
  24000. æT METHOD 
  24001. æC PostCommand, by default, passes the command to the next handler. 
  24002. TApplication.PostCommand overrides this method to post the specified command to the 
  24003. command queue for later execution. The command parameter is the TCommand object to be 
  24004. posted to the command queue. You call this method to post the command to a command 
  24005. queue. 
  24006.  
  24007.  
  24008.  
  24009. æKY TEvtHandler.RemoveHandler
  24010. æD FUNCTION TEvtHandler.RemoveHandler(headOfChain: TEvtHandler): TEvtHandler;
  24011.  
  24012. æFi UMacApp.p
  24013. æT METHOD 
  24014. æC RemoveHandler removes SELF from the chain of handlers starting at the specified 
  24015. handler and returns the new head of the chain. If SELF was the head of the 
  24016. chain, then there must be a new head of the chain. The headOfChain parameter 
  24017. specifies the handler at which to start. MacApp calls this method from 
  24018. TApplication.InstallCohandler to remove the first cohandler in the chain when the 
  24019. addIt parameter is FALSE. Rather than calling this method yourself, you should call 
  24020. InstallCohandler with the addIt parameter set to FALSE when you want to remove the 
  24021. first cohandler in the chain. 
  24022.  
  24023.  
  24024.  
  24025. æKY TEvtHandler.SetIdleFreq
  24026. æD PROCEDURE TEvtHandler.SetIdleFreq(newIdleFreq: Longint);
  24027.  
  24028.  
  24029. æFi UMacApp.p
  24030. æT METHOD 
  24031. æC SetIdleFreq sets the handler's idle frequency as specified. The newIdleFreq 
  24032. specifies the new idling frequency in ticks. The maximum idle frequency is 0, and 
  24033. the minimum idle frequency is kMaxIdleTime. MacApp calls this method to force 
  24034. the application to idle immediately—for example, when the user has just selected 
  24035. a new insertion point and the appliaction must cause it to flash. MacApp also 
  24036. calls SetIdleFreq to allow the application other amounts of idle time, or none 
  24037. at all. You can use this method in a similar fashion. 
  24038.  
  24039.  
  24040.  
  24041. æKY TEvtHandler.Terminate
  24042. æD PROCEDURE TEvtHandler.Terminate;
  24043. æFi UMacApp.p
  24044. æT METHOD 
  24045. æC Terminate executes when an application is about to terminate. The default method 
  24046. is empty; your subclasses must override it to perform any special procedures 
  24047. necessary just before your application terminates. MacApp calls this method from 
  24048. TApplication.Close. Do not call the Terminate method yourself. 
  24049.  
  24050.  
  24051.  
  24052. æKY TGridView.AdornCol
  24053. æD PROCEDURE TGridView.AdornCol(aCol: INTEGER; area: Rect);
  24054. æFi UGridView.p
  24055. æT METHOD 
  24056. æC When the value of the fAdornCol field is TRUE, this method is called to draw the 
  24057. column adornment. AdornCol is an empty method; you must supply the code to 
  24058. adorn columns in whatever way you choose. The parameter aCol is the index of the 
  24059. column to be adorned (the leftmost column in a TGridView object is numbered 1). 
  24060. The area parameter is the rectangle occupied by the column in the TGridView 
  24061. object’s local coordinates. MacApp calls AdornCol when it draws a TGridView 
  24062. object. You usually do not need to call this method yourself. 
  24063.  
  24064.  
  24065.  
  24066. æKY TGridView.AdornRow
  24067. æD PROCEDURE TGridView.AdornRow(aRow: INTEGER; area: Rect);
  24068.  
  24069. æFi UGridView.p
  24070. æT METHOD 
  24071. æC When the value of the fAdornRow field is TRUE, this method is called to draw the 
  24072. row adornment. AdornRow is an empty method; you must supply the code to adorn 
  24073. rows in whatever way you choose. The aRow parameter is the index of the row to 
  24074. be adorned (the topmost row in a TGridView object is numbered 1). The area 
  24075. parameter is the rectangle occupied by the row in the TGridView object’s local 
  24076. coordinates. MacApp calls AdornRow when it draws a TGridView object. You usually do 
  24077. not need to call this method yourself. 
  24078.  
  24079.  
  24080.  
  24081. æKY TGridView.AllCellsDo
  24082. æD PROCEDURE TGridView.AllCellsDo(PROCEDURE DoToCell(aCell: GridCell));
  24083. æFi UGridView.p
  24084. æT METHOD 
  24085. æC AllCellsDo performs the DoToCell procedure on each cell in the view. DoToCell is 
  24086. a procedure that you pass to AllCellsDo. This procedure is performed on each 
  24087. of the TGridView object’s cells in turn. You must declare and implement the 
  24088. DoToCell procedure yourself. The procedure you write can have any name that does 
  24089. not conflict with other procedures in the scope of the TGridView class. Just as 
  24090. you can create any variable of the proper type and pass it as an argument to a 
  24091. procedure, you can create any procedure and pass it to AllCellsDo, as long as 
  24092. the procedure accepts one argument of type GridCell. This procedure is bound to 
  24093. the formal parameter DoToCell and then is called, binding each cell in the 
  24094. TGridView object in turn to aCell. In this way AllCellsDo iterates over all the 
  24095. cells in the object, performing the procedure you define on each one. MacApp never 
  24096. calls AllCellsDo; this method is provided for your use when you need to perform 
  24097. an operation on all cells in a TGridView object. 
  24098.  
  24099.  
  24100.  
  24101. æKY TGridView.CalcMinSize
  24102. æD PROCEDURE TGridView.CalcMinSize(VAR minSize: VPoint); OVERRIDE;
  24103. æFi UGridView.p
  24104. æT METHOD 
  24105. æC CalcMinSize calculates the minimum dimensions of the TGridView object. The 
  24106. minSize parameter contains the calculated size, represented as a view point, when 
  24107. the method returns. MacApp calls CalcMinSize when resizing the view. You usually 
  24108. do not need to call this method yourself. 
  24109.  
  24110.  
  24111.  
  24112. æKY TGridView.CanSelectCell
  24113. æD FUNCTION TGridView.CanSelectCell(aCell: GridCell): BOOLEAN;
  24114. æFi UGridView.p
  24115. æT METHOD 
  24116. æC CanSelectCell returns the value TRUE if the specified cell can be selected. The 
  24117. default version of this method performs a range check on a cell and returns the 
  24118. value TRUE if the cell falls within the grid's boundaries. The aCell parameter 
  24119. specifies the cell to test. MacApp calls CanSelectCell in response to a mouse 
  24120. click in the TGridView object. You can override this method to determine 
  24121. whether a particular cell can be selected according to conditions that you define. 
  24122.  
  24123.  
  24124.  
  24125. æKY TGridView.CellsToPixels
  24126. æD PROCEDURE TGridView.CellsToPixels(theCells, thePixels: RgnHandle);
  24127. æFi UGridView.p
  24128. æT METHOD 
  24129. æC CellsToPixels converts cells into a region of pixels that covers those cells. 
  24130. The theCells parameter is a handle to a QuickDraw region that represents some 
  24131. part of the TGridView object. When the method returns, the parameter thePixels is 
  24132. a handle to a region that contains the QuickDraw coordinates of the cells in 
  24133. the region defined by the parameter theCells. MacApp calls CellsToPixels from 
  24134. methods that need to perform QuickDraw operations, such as highlighting, on a 
  24135. given group of cells. You usually do not need to call CellsToPixels yourself. 
  24136.  
  24137.  
  24138.  
  24139. æKY TGridView.CellToVRect
  24140. æD PROCEDURE TGridView.CellToVRect(aCell: GridCell; VAR aRect: VRect);
  24141. æFi UGridView.p
  24142. æT METHOD 
  24143. æC CellToVRect calculates the view coordinates of the rectangle that surrounds the 
  24144. specified cell. The calculated rectangle includes the row and column insets of 
  24145. the cell. The aCell parameter specifies the cell whose rectangle is to be 
  24146. calculated. The aRect parameter contains the calculated rectangle when the method 
  24147. returns. MacApp calls CellToVRect from a variety of methods that draw, highlight, 
  24148. select, or otherwise manipulate cells in a TGridView object in a way that 
  24149. requires knowing the defining rectangle of a cell. You can use this method in a 
  24150. similar manner. 
  24151.  
  24152.  
  24153.  
  24154. æKY TGridView.ColToVRect
  24155. æD PROCEDURE TGridView.ColToVRect(aCol: INTEGER; numOfCols: INTEGER; 
  24156.   VAR aRect: VRect);
  24157. æFi UGridView.p
  24158. æT METHOD 
  24159. æC ColToVRect calculates the rectangle that bounds the specified columns. The aCol 
  24160. parameter is the number of the column whose rectangle is to be calculated. 
  24161. Columns are numbered from left to right; the leftmost column is number 1. The 
  24162. numOfCols parameter is the number of columns to include in the rectangle 
  24163. calculation. The aRect parameter contains the calculated rectangle when the method 
  24164. returns. MacApp calls this method from a variety of methods that must determine the 
  24165. defining rectangle of one or more columns. You can use ColToVRect in a similar 
  24166. fashion. 
  24167.  
  24168.  
  24169.  
  24170. æKY TGridView.DelColAt
  24171. æD PROCEDURE TGridView.DelColAt(aCol: INTEGER; numOfCols: INTEGER);
  24172. æFi UGridView.p
  24173. æT METHOD 
  24174. æC DelColAt deletes the specified column or columns and causes the remaining cells 
  24175. to be redrawn. The aCol parameter is the index of the first column to be 
  24176. deleted. Columns are numbered from left to right; the leftmost column is number 1. 
  24177. The numOfCols parameter is the number of columns to delete. MacApp calls DelColAt 
  24178. from methods that can delete a column in a grid—for example, 
  24179. TGridView.DelColFirst and TGridView.DelColLast. You can use this method in a similar 
  24180. fashion. 
  24181.  
  24182.  
  24183.  
  24184. æKY TGridView.DelColFirst
  24185. æD PROCEDURE TGridView.DelColFirst(numOfCols: INTEGER);
  24186.  
  24187. æFi UGridView.p
  24188. æT METHOD 
  24189. æC DelColFirst deletes the specified column or columns, starting with the leftmost, 
  24190. in a TGridView object. The numOfCols parameter is the number of columns to 
  24191. delete. MacApp never calls DelColFirst; it is provided for your convenience. You 
  24192. can use DelColFirst when you need to delete one or more columns, starting at the 
  24193. left, from a grid view. 
  24194.  
  24195.  
  24196.  
  24197. æKY TGridView.DelColLast
  24198. æD PROCEDURE TGridView.DelColLast(numOfCols: INTEGER);
  24199. æFi UGridView.p
  24200. æT METHOD 
  24201. æC DelColLast deletes the specified number of columns, starting with the rightmost, 
  24202. in a TGridView object. The numOfCols parameter is the number of columns to 
  24203. delete. MacApp never calls DelColLast; it is provided for your convenience. You 
  24204. can use DelColLast when you need to delete one or more columns, starting at the 
  24205. right, from a grid view. 
  24206.  
  24207.  
  24208.  
  24209. æKY TGridView.DelRowAt
  24210. æD PROCEDURE TGridView.DelRowAt(aRow: INTEGER; numOfRows: INTEGER);
  24211.  
  24212. æFi UGridView.p
  24213. æT METHOD 
  24214. æC DelRowAt deletes the specified row or rows and causes the remaining cells to be 
  24215. redrawn. The aRow parameter is the index of the row to be deleted. Rows are 
  24216. numbered from top to bottom; the top row is number 1. The numOfRows parameter is 
  24217. the number of rows to delete. MacApp calls DelRowAt from certain methods that 
  24218. can delete a column in a grid—for example, TGridView.DelRowFirst and 
  24219. TTextListView.DelItemAt both accomplish their respective tasks by calling DelRowAt 
  24220. with the appropriate parameters. You can use this method in a similar fashion. 
  24221.  
  24222.  
  24223.  
  24224. æKY TGridView.DelRowFirst
  24225. æD PROCEDURE TGridView.DelRowFirst(numOfRows: INTEGER);
  24226. æFi UGridView.p
  24227. æT METHOD 
  24228. æC DelRowFirst deletes the first (that is, the topmost) row or rows in a TGridView 
  24229. object. The numOfRows parameter specifies the number of rows to delete. MacApp 
  24230. does not call DelRowFirst; it is provided for your convenience. You can use 
  24231. DelRowFirst when you need to delete one or more rows from the top. 
  24232.  
  24233.  
  24234.  
  24235. æKY TGridView.DelRowLast
  24236. æD PROCEDURE TGridView.DelRowLast(numOfRows: INTEGER);
  24237. æFi UGridView.p
  24238. æT METHOD 
  24239. æC DelRowLast deletes the last (that is, the bottom) row or rows in a TGridView 
  24240. object. The parameter numOfRows is the number of rows to delete. MacApp does not 
  24241. call DelRowLast; it is provided for your convenience. You can use DelRowLast 
  24242. when you need to delete one or more rows from the bottom of a grid view. 
  24243.  
  24244.  
  24245.  
  24246. æKY TGridView.DoHighlightSelection
  24247. æD PROCEDURE TGridView.DoHighlightSelection(fromHL, toHL: HLState); OVERRIDE;
  24248.  
  24249. æFi UGridView.p
  24250. æT METHOD 
  24251. æC DoHighlightSelection highlights the specified cells in the TGridView object. The 
  24252. default version calls HighlightCells. The parameter fromHL is the selection’s 
  24253. original highlight state; the toHL parameter is the desired highlight state. 
  24254. Possible highlight states are hlOff (selection is not highlighted), hlDim 
  24255. (selection is dimmed), and hlOn (selection is highlighted). MacApp calls 
  24256. DoHighlightSelection when selecting cells, when drawing or activating views, and when 
  24257. changing a selection’s highlight state. You usually do not need to call this method 
  24258. yourself. 
  24259.  
  24260.  
  24261.  
  24262. æKY TGridView.DoMouseCommand
  24263. æD FUNCTION TGridView.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  24264.   VAR hysteresis: Point): TCommand; OVERRIDE;
  24265. æFi UGridView.p
  24266. æT METHOD 
  24267. æC DoMouseCommand performs the appropriate actions to process a mouse click in a 
  24268. TGridView object, returning an appropriate TCommand object to handle the command. 
  24269. If the mouse click is not within the boundaries of a TGridView cell, this 
  24270. method returns NIL. The parameter theMouse is the mouse pointer’s current location, 
  24271. described in view coordinates. The info parameter is the event record of the 
  24272. mouse-down event that caused DoMouseCommand to be called. The hysteresis 
  24273. parameter is a point that represents the horizontal and vertical distance the mouse 
  24274. can travel between clicks and still be considered to be at the same location. 
  24275. MacApp uses this parameter to determine whether a double click has occurred or if 
  24276. a control has moved. MacApp calls DoMouseCommand when a mouse click occurs 
  24277. within the view. You usually do not need to call this method yourself. 
  24278.  
  24279.  
  24280.  
  24281. æKY TGridView.Draw
  24282. æD PROCEDURE TGridView.Draw(area: Rect); OVERRIDE;
  24283. æFi UGridView.p
  24284. æT METHOD 
  24285. æC Draw calls the TGridView methods DrawRangeOfCells, AdornRow, and AdornCol for 
  24286. all cells in the specified area. The area parameter is a QuickDraw rectangle, 
  24287. described in local coordinates, that defines the part of the view that needs to be 
  24288. redrawn. TGridView methods use this parameter to optimize drawing speed. 
  24289. MacApp calls Draw to redraw a TGridView object. You usually do not need to call this 
  24290. method yourself. However, you must override the empty method 
  24291. TGridView.DrawCell to draw the cell and its contents; it is called indirectly by Draw. 
  24292.  
  24293.  
  24294.  
  24295. æKY TGridView.DrawCell
  24296. æD PROCEDURE TGridView.DrawCell(aCell: GridCell; aQDRect: Rect);
  24297. æFi UGridView.p
  24298. æT METHOD 
  24299. æC DrawCell draws an individual cell in a TGridView object. The aCell parameter is 
  24300. the cell to be redrawn. The aQDRect parameter is the rectangle that defines the 
  24301. cell. MacApp calls this method to draw a TGridView cell. You must override 
  24302. DrawCell to draw the cell and its contents; the default version does nothing. 
  24303.  
  24304.  
  24305.  
  24306. æKY TGridView.DrawRangeOfCells
  24307. æD PROCEDURE TGridView.DrawRangeOfCells(startCell, stopCell: GridCell; aQDRect: Rect);
  24308. æFi UGridView.p
  24309. æT METHOD 
  24310. æC DrawRangeOfCells calls the DrawCell method for each specified cell in the 
  24311. TGridView object. The parameters startCell and stopCell specify the first and last 
  24312. cells to draw. The aQDRect parameter defines a rectangle, in local QuickDraw 
  24313. coordinates, that contains the range of cells bounded by startCell and stopCell. 
  24314. MacApp calls DrawRangeOfCells from TGridView.Draw. You usually do not need to 
  24315. call this method yourself; however you must override the empty method 
  24316. TGridView.DrawCell to draw the cell and its contents. 
  24317.  
  24318.  
  24319.  
  24320. æKY TGridView.EachCellDo
  24321. æD PROCEDURE TGridView.EachCellDo(startCell, stopCell: GridCell; 
  24322.   PROCEDURE DoToCell(aCell: GridCell));
  24323. æFi UGridView.p
  24324. æT METHOD 
  24325. æC EachCellDo performs the procedure DoToCell for each specified cell in the 
  24326. TGridView object. The parameters startCell and stopCell specify the starting and 
  24327. ending cells in the sequence to be processed. DoToCell is the procedure that 
  24328. operates on each cell in the sequence. You must define the procedure DoToCell 
  24329. yourself. It can have any name you like, just as the variables you pass in the other 
  24330. parameters can have any name you like. The procedure you pass must accept a 
  24331. single parameter of type GridCell. MacApp iterates over all the cells in the range 
  24332. specified by startCell and stopCell, binding each one in turn to the formal 
  24333. parameter aCell. In this way EachCellDo can perform any procedure of your choosing 
  24334. on each of a sequence of cells in a grid. MacApp uses EachCellDo to iterate 
  24335. over ranges of cells, performing some operation on each one. You can use it in a 
  24336. similar fashion. 
  24337.  
  24338.  
  24339.  
  24340. æKY TGridView.EachInRgn
  24341. æD PROCEDURE TGridView.EachInRgn(aRgn: RgnHandle; PROCEDURE DoToCell(aCell: GridCell));
  24342. æFi UGridView.p
  24343. æT METHOD 
  24344. æC EachInRgn performs the specified procedure on each cell in the specified region. 
  24345. The parameter aRgn is a handle to a QuickDraw region that represents the cells 
  24346. to be processed. DoToCell is the procedure that operates on each cell in the 
  24347. region. You must define the procedure DoToCell yourself. It can have any name 
  24348. you like, just as the variables you pass in the other parameters can have any 
  24349. name you like. The procedure you pass must accept a single parameter of type 
  24350. GridCell. MacApp iterates over all the cells in the region specified, binding each 
  24351. one in turn to the formal parameter aCell. In this way EachInRgn can perform any 
  24352. procedure of your choosing on each of a sequence of cells in a grid. MacApp 
  24353. calls EachInRgn to perform certain operations on a range of cells in a grid. You 
  24354. can use it in a similar fashion. 
  24355.  
  24356.  
  24357.  
  24358. æKY TGridView.EachSelectedCellDo
  24359. æD PROCEDURE TGridView.EachSelectedCellDo(PROCEDURE DoToCell(aCell: GridCell));
  24360. æFi UGridView.p
  24361. æT METHOD 
  24362. æC EachSelectedCellDo performs the procedure DoToCell for each selected cell. 
  24363. DoToCell is the procedure that operates on each cell in the selection. You must 
  24364. define the procedure DoToCell yourself. It can have any name you like, just as the 
  24365. variables you pass in the other parameters can have any name you like. The 
  24366. procedure you pass must accept a single parameter of type GridCell. MacApp iterates 
  24367. over all the cells in the selected region, binding each one in turn to the 
  24368. formal parameter aCell. In this way, EachSelectedCellDo can perform any procedure 
  24369. of your choosing on each of a sequence of selected cells. MacApp calls 
  24370. EachSelectedCellDo from methods that perform operations on groups of selected cells. 
  24371. You can use this method in a similar fashion. 
  24372.  
  24373.  
  24374.  
  24375. æKY TGridView.Fields
  24376. æD PROCEDURE TGridView.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  24377.   fieldType: INTEGER)); OVERRIDE;
  24378. æFi UGridView.p
  24379. æT METHOD 
  24380. æC Fields reports the contents of each field of the TGridView object to the MacApp 
  24381. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  24382. contents of each field. Fields iterates over all the fields of the TGridView 
  24383. object, performing DoToField on each one. The fieldName parameter is the name of 
  24384. the field. The fieldAddr parameter is the field’s location in memory. The 
  24385. fieldType parameter uses a predefined constant to tell Fields what type of 
  24386. information to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  24387. must override this method in your subclasses if you want the Inspector to 
  24388. display your fields. Your override must call INHERITED Fields as its last action to 
  24389. ensure that the inherited fields are also displayed. 
  24390.  
  24391.  
  24392.  
  24393. æKY TGridView.FirstSelectedCell
  24394. æD FUNCTION TGridView.FirstSelectedCell: GridCell;
  24395. æFi UGridView.p
  24396. æT METHOD 
  24397. æC FirstSelectedCell returns the top-left cell in the selected range. This method 
  24398. checks cells from left to right in the topmost row of the selection and then 
  24399. checks the row below the one just checked; therefore, it is possible for this 
  24400. method to return a cell that is located further to the right than any others in the 
  24401. selection if that cell is the topmost one in the selection. If no cells are 
  24402. selected, then FirstSelectedCell returns a null cell having coordinates (0,0). 
  24403. MacApp calls FirstSelectedCell from TTextListView.FirstSelectedItem to obtain a 
  24404. reference to first selected item of a range in a TTextListView object. You can 
  24405. use FirstSelectedCell to retrieve the first in a selected range of cells in a 
  24406. TGridView object. 
  24407.  
  24408.  
  24409.  
  24410. æKY TGridView.Free
  24411. æD PROCEDURE TGridView.Free; OVERRIDE;
  24412.  
  24413. æFi UGridView.p
  24414. æT METHOD 
  24415. æC Free releases the memory used by the TGridView object and then calls INHERITED 
  24416. Free. MacApp calls Free to dispose of TGridView objects when they are no longer 
  24417. needed—for example, when the window containing the TGridView view is closed. 
  24418. You can use this method in a similar fashion. You can override Free when your 
  24419. subclass has additional fields that need to be freed. 
  24420.  
  24421.  
  24422.  
  24423. æKY TGridView.GetColWidth
  24424. æD FUNCTION TGridView.GetColWidth(aCol: INTEGER): INTEGER;
  24425. æFi UGridView.p
  24426. æT METHOD 
  24427. æC GetColWidth returns the width of the specified column. The aCol parameter 
  24428. specifies the column whose width is to be returned. Columns are numbered from 1 to 
  24429. the value of the fNumOfRows field, starting with the leftmost column. MacApp 
  24430. calls GetColWidth from a variety of methods, such as TGridView.DrawCell and 
  24431. TGridView.ColToVRect, that must determine the width of a column or of a cell in a 
  24432. column. You can use this method in a similar fashion. 
  24433.  
  24434.  
  24435.  
  24436. æKY TGridView.GetRowHeight
  24437. æD FUNCTION TGridView.GetRowHeight(aRow: INTEGER): INTEGER;
  24438. æFi UGridView.p
  24439. æT METHOD 
  24440. æC GetRowHeight returns the height, in pixels, of the specified row. The aRow 
  24441. parameter specifies the row whose height is to be returned. Rows are numbered from 1 
  24442. to the value of the fNumOfRows field, starting with the top row. MacApp calls 
  24443. GetRowHeight from a variety of methods, such as TGridView.Draw, that must 
  24444. determine the height of a row or of a cell in a row. You can use this method in a 
  24445. similar fashion. 
  24446.  
  24447.  
  24448.  
  24449. æKY TGridView.HighlightCells
  24450. æD PROCEDURE TGridView.HighlightCells(theCells: RgnHandle; fromHL, toHL: HLState);
  24451. æFi UGridView.p
  24452. æT METHOD 
  24453. æC HighlightCells changes the specified cells' highlight state as specified and 
  24454. performs the highlighting. The parameter theCells is a handle to a region that 
  24455. contains the cells to be affected. The fromHL parameter specifies the cells' 
  24456. highlight state when this method is called; the toHL parameter specifies the desired 
  24457. highlight state. Possible highlight states are hlOff (the cells are not 
  24458. highlighted) and hlOn (the cells are highlighted). Dim highlighting is not supported 
  24459. Because TGridView does not support dim highlighting, the highlight state hlDim 
  24460. is equivalent to hlOff. MacApp calls HighlightCells from methods that highlight 
  24461. the selected cells in a TGridView object, such as 
  24462. TGridView.DoHighlightSelection and TGridView.SetSelectedCells. You usually do not 
  24463. need to call this method yourself. 
  24464.  
  24465.  
  24466.  
  24467. æKY TGridView.IdentifyPoint
  24468. æD FUNCTION TGridView.IdentifyPoint(theQDPoint: Point; 
  24469.   VAR aRow, aCol: INTEGER): GridViewPart;
  24470. æFi UGridView.p
  24471. æT METHOD 
  24472. æC IdentifyPoint returns the part identifier that corresponds to the portion of the 
  24473. grid view in which the specified point lies. Possible part identifiers are 
  24474. inCell, inRow, inColumn, and inVertex. Each part identifier corresponds to the 
  24475. part of a grid suggested by its name; for example, if IdentifyPoint returns inRow, 
  24476. then the specified point was in a row but not in a cell. The identifer 
  24477. inVertex is returned if the point is in the area where a row and column intersect. The 
  24478. parameter theQDPoint is the QuickDraw point to be converted. When the method 
  24479. returns, the aRow and aCol parameters specify, respectively, the row and column 
  24480. containing the point being tested. MacApp calls IdentifyPoint from 
  24481. TGridView.DoMouseCommand. You can use it when you need to determine what part of a 
  24482. grid view contains a particular point. 
  24483.  
  24484.  
  24485.  
  24486. æKY TGridView.IGridView
  24487. æD PROCEDURE TGridView.IGridView(itsDocument: TDocument; itsSuperView: TView; 
  24488.   itsLocation: VPoint; itsSize: VPoint; itsHSizeDet, itsVSizeDet: SizeDeterminer; 
  24489.   numOfRows: INTEGER; numOfCols: INTEGER; rowHeight: INTEGER; colWidth: INTEGER; 
  24490.   adornRows: BOOLEAN; adornCols: BOOLEAN; rowInset: INTEGER; colInset: INTEGER; 
  24491.   singleSelection: BOOLEAN);
  24492. æFi UGridView.p
  24493. æT METHOD 
  24494. æC IGridView initializes the TGridView object. The itsDocument parameter is the 
  24495. TGridView object's document. The itsSuperView parameter is the TView object in 
  24496. which the TGridView object is installed; this object is usually an instance of 
  24497. TWindow or TScroller. The itsLocation parameter is the top-left corner of the 
  24498. TGridView object in the superview’s local coordinates. The itsSize parameter is the 
  24499. bottom-right corner of the TGridView object in the superview’s local 
  24500. coordinates (this parameter is ignored for the appropriate dimension if the 
  24501. itsHSizeDet or itsVSizeDet parameter is sizeVariable). The itsHSizeDet parameter 
  24502. specifies the horizontal size determiner for the view, and the itsVSizeDet parameter 
  24503. specifies the corresponding vertical size determiner. A size determiner specifies 
  24504. how a view’s size is to be calculated. The valid size determiners include 
  24505. sizeSuperView (the view is the same size as its superview), sizeRelSuperView (the 
  24506. view size is computed relative to the superview’s size), sizePage (the view is to 
  24507. be the size of one page), sizeFillPages (the view is to grow upward to fill an 
  24508. exact number of pages), sizeVariable (the view’s size fluctuates according to 
  24509. criteria specified by the application), and sizeFixed (the size of the view 
  24510. always remains the same as when it is first created). The numOfRows parameter 
  24511. specifies the initial number of rows in the grid, and the numOfCols parameter is the 
  24512. initial number of columns. The rowHeight parameter specifies the height, in 
  24513. pixels, of each row, and the colWidth parameter specifies the width, in pixels, 
  24514. of each column. The parameters adornRows and adornCols are Boolean values that 
  24515. determine whether the AdornRow and AdornCol methods are to be called when the 
  24516. view is drawn. Normally you refer to the values of adornRows and adornCols as the 
  24517. constants kAdorn (equal to TRUE) and kDontAdorn (equal to FALSE). The 
  24518. parameters rowInset and colInset specify the space, in pixels, between rows and 
  24519. columns, respectively. You can set the value of the singleSelection parameter to TRUE 
  24520. when you want the TGridView object to allow only one cell to be selected at a 
  24521. time. MacApp calls IGridView from TTextGridView.ITextGridView; you must call 
  24522. IGridView when you create a new TGridView object by procedure. 
  24523.  
  24524.  
  24525.  
  24526. æKY TGridView.InsColBefore
  24527. æD PROCEDURE TGridView.InsColBefore(aCol: INTEGER; numOfCols: INTEGER; 
  24528.   aWidth: INTEGER);
  24529. æFi UGridView.p
  24530. æT METHOD 
  24531. æC InsColBefore inserts the specified number of columns into the TGridView object 
  24532. before the specified column. The aCol parameter specifies the column before 
  24533. which the new columns are to be inserted. The numOfCols parameter is the number of 
  24534. new columns to be inserted. The aWidth parameter is the width, in pixels, of 
  24535. all the new columns. MacApp calls InsColBefore from various methods that must 
  24536. adjust the number of columns in a grid. You can use InsColBefore for the same 
  24537. purpose. 
  24538.  
  24539.  
  24540.  
  24541. æKY TGridView.InsColFirst
  24542. æD PROCEDURE TGridView.InsColFirst(numOfCols: INTEGER; aWidth: INTEGER);
  24543. æFi UGridView.p
  24544. æT METHOD 
  24545. æC InsColFirst inserts a specified number of columns into the TGridView object. The 
  24546. first column in the group to be inserted becomes the first column in the grid. 
  24547. The numOfCols parameter is the number of columns to be inserted into the grid. 
  24548. The aWidth parameter is the width in pixels of each of the new columns. MacApp 
  24549. uses InsColFirst to create the columns in a new TGridView object. You can use 
  24550. it to add columns to the left side of a grid. 
  24551.  
  24552.  
  24553.  
  24554. æKY TGridView.InsColLast
  24555. æD PROCEDURE TGridView.InsColLast(numOfCols: INTEGER; aWidth: INTEGER);
  24556. æFi UGridView.p
  24557. æT METHOD 
  24558. æC InsColLast appends new columns to the right of the existing columns in the 
  24559. TGridView object. The numOfCols parameter is the number of new columns to be 
  24560. appended. The aWidth parameter is the width, in pixels, of each of the new columns. 
  24561. MacApp never calls InsColLast; it is provided for your convenience. You can use 
  24562. InsColLast to add columns to the right side of a TGridView object. 
  24563.  
  24564.  
  24565.  
  24566. æKY TGridView.InsRowBefore
  24567. æD PROCEDURE TGridView.InsRowBefore(aRow: INTEGER; numOfRows: INTEGER; 
  24568.   aHeight: INTEGER);
  24569. æFi UGridView.p
  24570. æT METHOD 
  24571. æC InsRowBefore inserts new rows above the specified row in the TGridView object . 
  24572. The aRow parameter specifies the row above which the new rows are to be 
  24573. inserted. TGridView rows are numbered from 1 to the value of the fNumOfRows field, 
  24574. beginning with the top row. The numOfRows parameter is the number of new rows to 
  24575. be inserted. The aHeight parameter is the height, in pixels, of each of the new 
  24576. rows. MacApp calls InsRowBefore from various methods that must adjust the 
  24577. number of rows in a grid. You can use InsRowBefore for the same purpose. 
  24578.  
  24579.  
  24580.  
  24581. æKY TGridView.InsRowFirst
  24582. æD PROCEDURE TGridView.InsRowFirst(numOfRows: INTEGER; aHeight: INTEGER);
  24583. æFi UGridView.p
  24584. æT METHOD 
  24585. æC InsRowFirst inserts the specified number of rows into the TGridView object. The 
  24586. topmost of the new rows becomes the top row in the grid. The numOfRows 
  24587. parameter is the number of rows to be inserted in the grid. The aHeight parameter is 
  24588. the height, in pixels, of each of the new rows. MacApp uses InsRowFirst to create 
  24589. the rows in a new TGridView object. You can use this method to insert new rows 
  24590. at the top of a TGridView object. 
  24591.  
  24592.  
  24593.  
  24594. æKY TGridView.InsRowLast
  24595. æD PROCEDURE TGridView.InsRowLast(numOfRows: INTEGER; aHeight: INTEGER);
  24596. æFi UGridView.p
  24597. æT METHOD 
  24598. æC InsRowLast appends new rows below the bottom row in the TGridView object. The 
  24599. numOfRows parameter is the number of new rows to be appended. The aHeight 
  24600. parameter is the height, in pixels, of each of the new rows. MacApp never calls 
  24601. InsRowLast; it is provided for your convenience. You can use InsRowLast to add rows 
  24602. to the bottom of a TGridView object. 
  24603.  
  24604.  
  24605.  
  24606. æKY TGridView.InvalidateCell
  24607. æD PROCEDURE TGridView.InvalidateCell(aCell: GridCell);
  24608. æFi UGridView.p
  24609. æT METHOD 
  24610. æC InvalidateCell marks a cell in the TGridView object so that MacApp will redraw 
  24611. it. The aCell parameter is the ID of the cell to be marked. MacApp calls 
  24612. InvalidateCell from TTextListView.InvalidateItem; you can use InvalidateCell to mark 
  24613. any cell that needs to be redrawn. 
  24614.  
  24615.  
  24616.  
  24617. æKY TGridView.InvalidateSelection
  24618. æD PROCEDURE TGridView.InvalidateSelection;
  24619. æFi UGridView.p
  24620. æT METHOD 
  24621. æC InvalidateSelection marks the region defining the selected cells in the 
  24622. TGridView object so that MacApp will redraw the selection. You can use 
  24623. InvalidateSelection to ensure that the selected area of a TGridView object is redrawn. 
  24624.  
  24625.  
  24626.  
  24627. æKY TGridView.IRes
  24628. æD PROCEDURE TGridView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  24629.   VAR itsParams: Ptr); OVERRIDE;
  24630. æFi UGridView.p
  24631. æT METHOD 
  24632. æC IRes initializes a TGridView object from a 'view' resource template. The 
  24633. itsDocument parameter specifies the document associated with the TGridView object. 
  24634. The itsSuperView parameter specifies the TView object into which the view is to be 
  24635. installed; for a TGridView object, this is usually a TScroller or TWindow 
  24636. object. The itsParams parameter is a pointer to the portion of the 'view' resource 
  24637. data used to initialize this view. When the IRes method finishes initializing 
  24638. the view, the method moves the pointer to the end of this data. MacApp calls 
  24639. this method for each of the views created from a 'view' resource template, usually 
  24640. in response to a NewTemplateWindow or a DoCreateViews call. You never need to 
  24641. call IRes yourself. 
  24642.  
  24643.  
  24644.  
  24645. æKY TGridView.IsCellSelected
  24646. æD FUNCTION TGridView.IsCellSelected(aCell: GridCell): BOOLEAN;
  24647. æFi UGridView.p
  24648. æT METHOD 
  24649. æC IsCellSelected returns the value TRUE if the specified cell is selected. The 
  24650. aCell parameter specifies the TGridView cell to be tested. MacApp calls 
  24651. IsCellSelected from TTextListView.IsItemSelected to determine if an element in a 
  24652. TTextListView list is selected. You can use this method to determine whether a 
  24653. specified cell in a TGridView object is selected. 
  24654.  
  24655.  
  24656.  
  24657. æKY TGridView.LastSelectedCell
  24658. æD FUNCTION TGridView.LastSelectedCell: GridCell;
  24659. æFi UGridView.p
  24660. æT METHOD 
  24661. æC LastSelectedCell returns the bottom-right cell in the selected range in the 
  24662. TGridView object. This method checks cells from right to left in the bottom row of 
  24663. the selection and then checks the row above the one just checked; therefore, it 
  24664. is possible for this method to return a cell that is located further to the 
  24665. left than any others in the selection if that cell is the bottom-most one in the 
  24666. selection. MacApp calls LastSelectedCell from TTextListView.LastSelectedItem to 
  24667. obtain a reference to the last selected item of a range in a TTextListView 
  24668. list. You can use LastSelectedCell to refer to the last first in a selected range 
  24669. of cells in a TGridView object. 
  24670.  
  24671.  
  24672.  
  24673. æKY TGridView.RowToVRect
  24674. æD PROCEDURE TGridView.RowToVRect(aRow: INTEGER; numOfRows: INTEGER; 
  24675.   VAR aRect: VRect);
  24676. æFi UGridView.p
  24677. æT METHOD 
  24678. æC RowToVRect calculates the rectangle that bounds the specified row or rows. The 
  24679. aRow parameter is the number of the row whose rectangle is to be calculated. 
  24680. Rows are numbered from top to bottom, starting with 1. The numOfRows parameter is 
  24681. the number of rows to include in the rectangle calculations. The aRect 
  24682. parameter contains the calculated rectangle when the method returns. MacApp calls this 
  24683. method from a variety of methods that must determine the rectangle bounding one 
  24684. or more rows of cells. You can use RowToVRect in a similar fashion. 
  24685.  
  24686.  
  24687.  
  24688. æKY TGridView.ScrollSelectionIntoView
  24689. æD PROCEDURE TGridView.ScrollSelectionIntoView(redraw: BOOLEAN);
  24690.  
  24691. æFi UGridView.p
  24692. æT METHOD 
  24693. æC ScrollSelectionIntoView scrolls the contents of the TGridView object until the 
  24694. current selection or insertion point is visible. If the selected area is too 
  24695. large to fit in the visible area of the window, then ScrollSelectionIntoView 
  24696. ensures that the upper-left part of the selection is visible. Set the value of the 
  24697. redraw parameter to TRUE if you want the view to be redrawn. When you know the 
  24698. view will be redrawn eventually and wish to avoid drawing it twice—which makes 
  24699. the screen appear to flash—you can set the value of the redraw parameter to 
  24700. FALSE. MacApp calls ScrollSelectionIntoView to ensure that the new selection will 
  24701. be visible when the current selection changes. You usually do not need to call 
  24702. this method yourself, but you can use it if you need to ensure that the 
  24703. selection or the insertion point is visible. 
  24704.  
  24705.  
  24706.  
  24707. æKY TGridView.SelectCell
  24708. æD PROCEDURE TGridView.SelectCell(theCell: GridCell; extendSelection, highlight, 
  24709.   select: BOOLEAN);
  24710. æFi UGridView.p
  24711. æT METHOD 
  24712. æC SelectCell manipulates the current selection with respect to the specified cell. 
  24713. The parameter theCell is the new cell affected by this method. If the value of 
  24714. the extendSelection parameter is kExtend, then MacApp includes in the 
  24715. selection the cells that were previously selected as well as the new cell; if the 
  24716. value of the extendSelection parameter is kDontExtend, then the cell specified by 
  24717. the parameter theCell becomes the only selected cell. If the value of the 
  24718. highlight parameter is kHighlight, then MacApp highlights the new selection. If the 
  24719. value of the select parameter is kSelect, then the specified cell becomes the new 
  24720. selection; if this parameter is set to kDeSelect, then all cells are 
  24721. unselected, regardless of the values of the other parameters. MacApp calls this method 
  24722. from methods such as TGridView.DoMouseCommand. You can call SelectCell to select 
  24723. specific cells in response to the user’s actions. 
  24724.  
  24725.  
  24726.  
  24727. æKY TGridView.SetColWidth
  24728. æD PROCEDURE TGridView.SetColWidth(aCol: INTEGER; numOfCols: INTEGER; aWidth: INTEGER);
  24729. æFi UGridView.p
  24730. æT METHOD 
  24731. æC SetColWidth sets the width of the specified columns. The aCol parameter is the 
  24732. leftmost column to be affected by the change. Columns are numbered from 1 to the 
  24733. value of the fNumOfCols field, beginning with the leftmost column. The 
  24734. numOfCols parameter is the number of columns to be affected by the change. The aWidth 
  24735. parameter is new width in pixels. MacApp sets all of the specified columns to 
  24736. the same new width. MacApp calls SetColWidth from several methods that 
  24737. manipulate columns in TGridview objects—for instance, the methods TTextGridView.IRes 
  24738. and TTextGridView.ITextGridView use TGridView.SetColWidthto set the initial width 
  24739. of a new TTextGridView list. You can use this method in a similar fashion. 
  24740.  
  24741.  
  24742.  
  24743. æKY TGridView.SetEmptySelection
  24744. æD PROCEDURE TGridView.SetEmptySelection(highlight: BOOLEAN);
  24745. æFi UGridView.p
  24746. æT METHOD 
  24747. æC SetEmptySelection empties the selection. When it returns, no cells in the 
  24748. TGridView object are selected. If the value of the highlight parameter is kHighlight 
  24749. (that is, TRUE), then MacApp removes highlighting from the old selection. 
  24750. MacApp never calls SetEmptySelection; it is provided for your convenience. You can 
  24751. use it to make the current selection in a TGridView object empty. 
  24752.  
  24753.  
  24754.  
  24755. æKY TGridView.SetRowHeight
  24756. æD PROCEDURE TGridView.SetRowHeight(aRow: INTEGER; numOfRows: INTEGER; 
  24757.   aHeight: INTEGER);
  24758. æFi UGridView.p
  24759. æT METHOD 
  24760. æC SetRowHeight sets the height of the specified rows to the given value. The aRow 
  24761. parameter is the topmost row to be affected by the change. MacApp numbers rows 
  24762. in a TGridView object from 1 to the value of the fNumOfRows field, beginning 
  24763. with the top row. The numOfRows parameter is the number of rows to be affected by 
  24764. the change. The aHeight parameter is the new height, in pixels, of the 
  24765. affected rows. MacApp calls SetRowHeight from two methods that set the height of one 
  24766. or more rows in a grid, TTextGridView.IRes and TTextListView.SetItemHeight. You 
  24767. can use this method in a similar fashion. 
  24768.  
  24769.  
  24770.  
  24771. æKY TGridView.SetSelection
  24772. æD PROCEDURE TGridView.SetSelection(cellsToSelect: RgnHandle; 
  24773.   extendSelection, highlight, select: BOOLEAN);
  24774. æFi UGridView.p
  24775. æT METHOD 
  24776. æC SetSelection sets the current selection in a TGridView object to the cells in 
  24777. the specified region. The cellsToSelect parameter is a handle to the region 
  24778. containing the cells to be selected. If the value of the extendSelection parameter 
  24779. is kExtend, then the cells specified by the parameter cellsToSelect are added to 
  24780. the current selection. If the value of the highlight parameter is kHighlight, 
  24781. then MacApp highlights the selection. The select parameter controls whether the 
  24782. cells specified by cellsToSelect are selected or deselected: If its value is 
  24783. kSelect, the cells are selected; if the value of the select parameter is 
  24784. kDeSelect, then the cells specified by cellsToSelect are deselected. MacApp calls 
  24785. SetSelection from TGridView and TCellSelectCommand methods that manipulate 
  24786. selections in TGridView objects. You can use this method to define a selection in a 
  24787. TGridView object. 
  24788.  
  24789.  
  24790.  
  24791. æKY TGridView.SetSelectionRect
  24792. æD PROCEDURE TGridView.SetSelectionRect(left, top, right, bottom: INTEGER; 
  24793.   extendSelection, highlight, select: BOOLEAN);
  24794. æFi UGridView.p
  24795. æT METHOD 
  24796. æC SetSelectionRect sets the current selection to the specified rectangle. The 
  24797. parameters left, top, right, and bottom specify the column and row coordinates that 
  24798. their names suggest. If the value of the extendSelection parameter is kExtend 
  24799. (that is, TRUE), then the cells specified by left, top, right, and bottom are 
  24800. added to the current selection. If the value of the highlight parameter is 
  24801. kHighlight (once again, TRUE), then MacApp highlights the selection. The select 
  24802. parameter controls whether the cells specified by the left, top, right, and bottom 
  24803. parameters are selected or deselected: If its value is kSelect (also TRUE), the 
  24804. cells are selected; if the value of the select parameter is kDeSelect, then 
  24805. the cells are deselected. MacApp calls SetSelectionRect from TGridView and 
  24806. TCellSelectCommand methods that manipulate selections in TGridView objects. You can 
  24807. use this method to define a selection in a TGridView object. 
  24808.  
  24809.  
  24810.  
  24811. æKY TGridView.SetSingleSelection
  24812. æD PROCEDURE TGridView.SetSingleSelection(theSetting: BOOLEAN);
  24813. æFi UGridView.p
  24814. æT METHOD 
  24815. æC SetSingleSelection sets the fSingleSelection field so that the selection methods 
  24816. of TGridView allow only one item or cell to be selected at a time. If the 
  24817. value of theSetting is TRUE, then only single items or cells may be selected. 
  24818. MacApp never calls SetSingleSelection; it is provided for your convenience. You can 
  24819. use it to specify that only single-item selections can be made in a TGridView 
  24820. object. 
  24821.  
  24822.  
  24823.  
  24824. æKY TGridView.VPointToCell
  24825. æD FUNCTION TGridView.VPointToCell(aPoint: VPoint): GridCell;
  24826. æFi UGridView.p
  24827. æT METHOD 
  24828. æC VPointToCell determines which cell contains a specified point. If the point 
  24829. doesn't lie within any cell, this method returns the null cell coordinates (0,0). 
  24830. The aPoint parameter specifies the point to be tested. MacApp calls VPointToCell 
  24831. from methods such as TGridView.IdentifyPoint and 
  24832. TCellSelectCommand.TrackMouse, that map the location of a mouse click to a cell in a 
  24833. TGridView object. You 
  24834. can use this method in a similar fashion. 
  24835.  
  24836.  
  24837.  
  24838. æKY TGridView.VPointToLastCell
  24839. æD FUNCTION TGridView.VPointToLastCell(aPoint: VPoint): GridCell;
  24840. æFi UGridView.p
  24841. æT METHOD 
  24842. æC VPointToLastCell returns the view coordinates of the cell in which the given 
  24843. point lies, or those of the last cell of the row or column if the point's 
  24844. horizontal or vertical coordinate lies beyond the last cell of the row or column. The 
  24845. aPoint parameter specifies the point to be tested. MacApp calls VPointToLastCell 
  24846. from methods such as TGridView.CellsToPixels and TGridView.Draw, that 
  24847. manipulate selections in TGridView objects. You can use this method to determine the 
  24848. view coordinates of the cell containing a specified point in a TGridView object, 
  24849. constraining the point's value to lie within the last row or column in the grid. 
  24850.  
  24851.  
  24852.  
  24853. æKY TGridView.WRes
  24854. æD PROCEDURE TGridView.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  24855. æFi UGridView.p
  24856. æT METHOD 
  24857. æC WRes writes the TGridView portion of the view’s resource template to the 
  24858. location specified by the itsParams parameter. The parameter theResource is a handle 
  24859. to the view’s resource template. The parameter itsParams is a pointer to the 
  24860. TGridView section of the view’s resource template. WRes is the inverse of the IRes 
  24861. method, and is used only by programs that write 'view' resources; for example, 
  24862. ViewEdit uses this method to create new 'view' resources from views that are 
  24863. active on the screen. You rarely need to call this method yourself. You must 
  24864. override this method in your subclasses to create your own 'view' resources. Your 
  24865. override should check the size of the space remaining in the template past the 
  24866. end of the previously-written resource data; if there is not enough space to 
  24867. write your data into the file, your override should call the global routine 
  24868. ExpandPtr, passing as arguments the current values of theResource, itsParams, and 
  24869. the size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  24870. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  24871. greater. You need not be concerned about making the 'view' resource handle too big, 
  24872. because MacApp reclaims unused space by returning a new value for itsParams when 
  24873. the WRes method completes. 
  24874.  
  24875.  
  24876.  
  24877. æKY TGridView.WriteRes
  24878. æD PROCEDURE TGridView.WriteRes(theResource: ViewRsrcHndl; 
  24879.   VAR itsParams: Ptr); OVERRIDE;
  24880. æFi UGridView.p
  24881. æT METHOD 
  24882. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('grid') and 
  24883. class name ('TGridView') for the 'view' resource template, and then calls WRes 
  24884. to actually write the resource. The parameter theResource is a handle to the 
  24885. view’s resource template. The parameter itsParams is a pointer to the parameters 
  24886. MacApp uses to create the new resource. MacApp calls this method to write a 
  24887. TGridView object as part of a 'view' resource; you can use it in a similar fashion. 
  24888. You can override this method to provide your own unique class name or 
  24889. signature. 
  24890.  
  24891.  
  24892.  
  24893. æKY TIcon.Draw
  24894. æD PROCEDURE TIcon.Draw(area: Rect); OVERRIDE;
  24895. æFi UDialog.p
  24896. æT METHOD 
  24897. æC This method draws an icon as a subview of a control and then calls INHERITED 
  24898. Draw to draw the rest of the control. The area parameter is a QuickDraw rectangle, 
  24899. described in local coordinates, that defines the part of the control that 
  24900. needs to be redrawn. You use the area parameter to optimize drawing speed. MacApp 
  24901. calls this method in response to an update event occurring in the TIcon view. 
  24902. You usually do not need to call this method yourself. 
  24903.  
  24904.  
  24905.  
  24906. æKY TIcon.Fields
  24907. æD PROCEDURE TIcon.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr;
  24908.   fieldType: INTEGER)); OVERRIDE;
  24909. æFi UDialog.p
  24910. æT METHOD 
  24911. æC Fields reports the contents of each field of the TIcon object to the MacApp 
  24912. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  24913. contents of each field. Fields iterates over all the fields of the TIcon object, 
  24914. performing DoToField on each one. The fieldName parameter is the name of the 
  24915. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  24916. parameter uses a predefined constant to tell Fields what type of information to 
  24917. look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  24918. override this method in your subclasses if you want the Inspector to display your 
  24919. fields. Your override must call INHERITED Fields as its last action to ensure 
  24920. that the inherited fields are also displayed. 
  24921.  
  24922.  
  24923.  
  24924. æKY TIcon.Free
  24925. æD PROCEDURE TIcon.Free; OVERRIDE;
  24926. æFi UDialog.p
  24927. æT METHOD 
  24928. æC Free releases the memory used by the TIcon object and then calls INHERITED Free 
  24929. to release the memory used by dependent structures. MacApp calls Free in the 
  24930. normal process of freeing objects. You must call Free if you allocated the icon 
  24931. and have managed it yourself. 
  24932.  
  24933.  
  24934.  
  24935. æKY TIcon.IIcon
  24936. æD PROCEDURE TIcon.IIcon(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  24937.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsRsrcID: INTEGER; preferColor: BOOLEAN);
  24938. æFi UDialog.p
  24939. æT METHOD 
  24940. æC This method initializes a TIcon object and installs it in the given superview. 
  24941. If the value of preferColor is TRUE, then MacApp tries to obtain the icon from a 
  24942. 'cicn' resource. If the value of preferColor is FALSE, or no 'cicn' is 
  24943. available, then MacApp tries to obtain the icon from an 'ICON' resource. The 
  24944. fDefChoice field is set to mIconHit. The itsSuperView parameter is the view in which 
  24945. the icon (which itself is a view) appears. The itsLocation parameter is the icon's 
  24946. location, in view coordinates. The itsSize parameter is the icon's size, in 
  24947. pixels. The itsHSizeDet and itsVSizeDet parameters determine how the view's 
  24948. horizontal and vertical dimensions are calculated, respectively. Possible values are 
  24949. sizeSuperView (subview is the same size as superview), sizeRelSuperView 
  24950. (subview size changes an equal amount relative to the superview's size), sizePage 
  24951. (view is made the size of one page), sizeFillPages (view grows to fill an exact 
  24952. number of pages), sizeVariable (view size fluctuates according to 
  24953. application-specific criteria), or sizeFixed (no special handling of size issues). The 
  24954. itsRsrcID parameter is the integer that MacApp uses to refer to the view's resource. 
  24955. Set preferColor to TRUE if you want the icon to created using a 'cicn' resource. 
  24956. MacApp does not call this method; it is included for your convenience. You can 
  24957. call this method to procedurally initialize a TIcon object. 
  24958.  
  24959.  
  24960.  
  24961. æKY TIcon.IRes
  24962. æD PROCEDURE TIcon.IRes(itsDocument: TDocument; itsSuperView: TView; 
  24963.   VAR itsParams: Ptr); OVERRIDE;
  24964. æFi UDialog.p
  24965. æT METHOD 
  24966. æC IRes initializes a TIcon object from a 'view' resource template. The fDefChoice 
  24967. field is set to mIconHit. The itsDocument parameter specifies the document 
  24968. associated with the TIcon object. The itsSuperView parameter specifies the view in 
  24969. which the icon appears. The itsParams parameter is a pointer to the portion of 
  24970. the 'view' resource data used to initialize this view. When the IRes method 
  24971. finishes initializing the view, the method moves the pointer to the end of this 
  24972. data. MacApp calls this method for each of the views created from a 'view' 
  24973. resource template, usually in response to a NewTemplateWindow or a DoCreateViews 
  24974. call. You never need to call IRes yourself. 
  24975.  
  24976.  
  24977.  
  24978. æKY TIcon.ReleaseIcon
  24979. æD PROCEDURE TIcon.ReleaseIcon;
  24980. æFi UDialog.p
  24981. æT METHOD 
  24982. æC This method releases memory used by the TIcon object. ReleaseIcon is called by 
  24983. TIcon.Free before it calls INHERITED Free. ReleaseIcon is also called by 
  24984. TIcon.SetIcon to release the old icon before setting the handle to the new icon data. 
  24985. You can use ReleaseIcon in a similar fashion. 
  24986.  
  24987.  
  24988.  
  24989. æKY TIcon.SetIcon
  24990. æD PROCEDURE TIcon.SetIcon(theIcon: Handle; redraw: BOOLEAN);
  24991.  
  24992. æFi UDialog.p
  24993. æT METHOD 
  24994. æC SetIcon accepts a handle to an icon bitmap and stores the handle in the 
  24995. fDataHandle field. This method will also redraw the icon if desired. The parameter 
  24996. theIcon is the handle to new icon data. When the value of the redraw parameter is 
  24997. TRUE, the icon is redrawn. When you set the value of redraw to FALSE, the icon 
  24998. is not redrawn even though its appearance may be affected by the change. You can 
  24999. set redraw to FALSE when you know the icon will be redrawn eventually and you 
  25000. wish to avoid drawing it twice, which makes the screen appear to flicker. You 
  25001. can call this method when you want an icon object to display a different icon. 
  25002.  
  25003.  
  25004.  
  25005. æKY TIcon.WRes
  25006. æD PROCEDURE TIcon.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  25007. æFi UDialog.p
  25008. æT METHOD 
  25009. æC WRes writes the TIcon portion of the view’s resource template to the location 
  25010. specified by the itsParams parameter. The parameter theResource is a handle to 
  25011. the view’s resource template. The parameter itsParams is a pointer to the TIcon 
  25012. section of the view’s resource template. WRes is the inverse of the IRes method, 
  25013. and is used only by programs that write 'view' resources; for example, 
  25014. ViewEdit uses this method to create new 'view' resources from views that are active on 
  25015. the screen. You rarely need to call this method yourself. You must override 
  25016. this method in your subclasses to create your own 'view' resources. Your override 
  25017. should check the size of the space remaining in the template past the end of 
  25018. the previously-written resource data; if there is not enough space to write your 
  25019. data into the file, your override should call the global routine ExpandPtr, 
  25020. passing as arguments the current values of theResource, itsParams, and the size 
  25021. of your resource data, in bytes. ExpandPtr expands the 'view' resource handle by 
  25022. the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. You 
  25023. need not be concerned about making the 'view' resource handle too big, because 
  25024. MacApp reclaims unused space by returning a new value for itsParams when the WRes 
  25025. method completes. 
  25026.  
  25027.  
  25028.  
  25029. æKY TIcon.WriteRes
  25030. æD PROCEDURE TIcon.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  25031. æFi UDialog.p
  25032. æT METHOD 
  25033. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('icon') and 
  25034. class name ('TIcon') for the 'view' resource template, and then calls WRes to 
  25035. actually write the resource. The parameter theResource is a handle to the view’s 
  25036. resource template. The parameter itsParams is a pointer to the parameters 
  25037. MacApp uses to create the new resource. MacApp calls this method to write a TIcon 
  25038. object as part of a 'view' resource; you can use it in a similar fashion. You can 
  25039. override this method to provide your own unique class name or signature. 
  25040.  
  25041.  
  25042.  
  25043. æKY TInspector.AddObject
  25044. æD PROCEDURE TInspector.AddObject(theObject: TObject);
  25045. æFm UInspector.inc1.p
  25046. æT METHOD 
  25047. æC AddObject adds an object to the TInspector object’s list. The parameter 
  25048. theObject specifies the object to be added to the Inspector's list of objects. (Do not 
  25049. add an object of type TObjectList; doing so creates an infinite loop.) MacApp 
  25050. calls AddObject from the global routine AddObjectToInspector when a new object 
  25051. is created. This method is internal to the MacApp Inspector; you cannot call it 
  25052. yourself or override it. 
  25053.  
  25054.  
  25055.  
  25056. æKY TInspector.AddObjectList
  25057. æD FUNCTION TInspector.AddObjectList(classId: ObjClassID): TObjectList;
  25058. æFm UInspector.inc1.p
  25059. æT METHOD 
  25060. æC AddObjectList creates and returns a new TObjectList object. The classID 
  25061. parameter specifies the class whose instances can be members of the new list. MacApp 
  25062. calls AddObjectList from TInspector.AddObject. This method is internal to the 
  25063. MacApp Inspector; you cannot call it yourself or override it. 
  25064.  
  25065.  
  25066.  
  25067. æKY TInspector.DoSetupMenus
  25068. æD PROCEDURE TInspector.DoSetupMenus; OVERRIDE;
  25069. æFm UInspector.inc1.p
  25070. æT METHOD 
  25071. æC DoSetupMenus sets the states of all menu items pertaining to the Inspector when 
  25072. a TInspector object’s window becomes the active window. The default version of 
  25073. this method simply calls INHERITED DoSetupMenus, then disables the Save As and 
  25074. Save A Copy menu items. MacApp calls DoSetupMenus when the Inspector window 
  25075. becomes active. This method is internal to the MacApp Inspector; you cannot call 
  25076. it yourself or override it. 
  25077.  
  25078.  
  25079.  
  25080. æKY TInspector.Fields
  25081. æD PROCEDURE TInspector.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  25082.   fieldType: INTEGER)); OVERRIDE;
  25083. æFm UInspector.inc1.p
  25084. æT METHOD 
  25085. æC Fields reports the contents of each of the TInspector object’s fields to the 
  25086. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  25087. the contents of each field. Fields iterates over all the fields of the 
  25088. TInspector object, performing DoToField on each one. The fieldName parameter is the 
  25089. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  25090. fieldType parameter uses a predefined constant to tell Fields what type of 
  25091. information to look for in a field. MacApp calls Fields from the Inspector. This 
  25092. method is internal to the MacApp Inspector; you cannot call it yourself or 
  25093. override it. 
  25094.  
  25095.  
  25096.  
  25097. æKY TInspector.Free
  25098. æD PROCEDURE TInspector.Free; OVERRIDE;
  25099. æFm UInspector.inc1.p
  25100. æT METHOD 
  25101. æC Free releases the memory used by the TInspector object and its component 
  25102. objects. MacApp calls Free when the user closes the TInspector object’s window. This 
  25103. method is internal to the Inspector; you cannot call it yourself or override it. 
  25104.  
  25105.  
  25106.  
  25107.  
  25108. æKY TInspector.GetObjectList
  25109. æD FUNCTION TInspector.GetObjectList(classId: ObjClassID): TObjectList;
  25110. æFm UInspector.inc1.p
  25111. æT METHOD 
  25112. æC GetObjectList searches the TInspector object’s fClassesByID field for objects of 
  25113. the specified type; it then returns a TObjectList object that contains all 
  25114. those that it finds. The classID parameter specifies the class of objects that 
  25115. will be returned in the TObjectList object. GetObjectList is called by 
  25116. TInspector.AddObject when adding a new object to the Inspector's list. It is also 
  25117. called by TInspector.RemoveObject when deleting an object from that list. 
  25118. GetObjectList is internal to the MacApp Inspector; you cannot call it yourself or 
  25119. override it. 
  25120.  
  25121.  
  25122.  
  25123. æKY TInspector.IInspector
  25124. æD PROCEDURE TInspector.IInspector;
  25125. æFm UInspector.inc1.p
  25126. æT METHOD 
  25127. æC IInspector initializes the fields of a new TInspector object. IInspector is 
  25128. called by the global routine MakeInspector when it creates a new Inspector 
  25129. document. This method is internal to the MacApp Inspector; you cannot call it yourself 
  25130. or override it. 
  25131.  
  25132.  
  25133.  
  25134. æKY TInspector.MakeWindow
  25135. æD FUNCTION TInspector.MakeWindow: TInspectWindow;
  25136. æFm UInspector.inc1.p
  25137. æT METHOD 
  25138. æC MakeWindow creates the Inspector window, displays its contents, and returns the 
  25139. TInspectWindow object. MacApp calls MakeWindow when it creates a new Inspector 
  25140. window. This method is internal to the MacApp Inspector; you cannot call it 
  25141. yourself or override it. 
  25142.  
  25143.  
  25144.  
  25145. æKY TInspector.RemoveObject
  25146. æD PROCEDURE TInspector.RemoveObject(theObject: TObject);
  25147. æFm UInspector.inc1.p
  25148. æT METHOD 
  25149. æC RemoveObject removes an object from the MacApp Inspector’s list of active 
  25150. objects. The parameter theObject is the object to be removed from the Inspector's 
  25151. list of objects. MacApp calls RemoveObject from TObject.Free when disposing of an 
  25152. object. This method is internal to the MacApp Inspector; you cannot call it 
  25153. yourself or override it. 
  25154.  
  25155.  
  25156.  
  25157. æKY TInspectorCommand.DoIt
  25158. æD PROCEDURE TInspectorCommand.DoIt; OVERRIDE;
  25159. æFi UMacApp.p
  25160. æT METHOD 
  25161. æC DoIt creates a new Inspector window. MacApp calls this method when the user 
  25162. creates a new Inspector window. (The user may create Inspector windows either by 
  25163. choosing the New Inspector Window menu item or clicking on a field in an existing 
  25164. Inspector window while pressing the Option key.) You never need to call the 
  25165. DoIt command yourself. 
  25166.  
  25167.  
  25168.  
  25169. æKY TInspectorCommand.Fields
  25170. æD PROCEDURE TInspectorCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  25171.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  25172.  
  25173. æFi UMacApp.p
  25174. æT METHOD 
  25175. æC Fields reports the contents of each field of the TInspectorCommand object to the 
  25176. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  25177. report the contents of each field. Fields iterates over all the fields of the 
  25178. TInspectorCommand object, performing DoToField on each one. The fieldName parameter 
  25179. is the name of the field. The fieldAddr parameter is the field’s location in 
  25180. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  25181. type of information to look for in a field. MacApp calls Fields from the MacApp 
  25182. Inspector. You must override this method in your subclasses if you want the 
  25183. Inspector to display your fields. Your override must call INHERITED Fields as its 
  25184. last action to ensure that the inherited fields are also displayed. 
  25185.  
  25186.  
  25187.  
  25188. æKY TInspectorCommand.IInspectorCommand
  25189. æD PROCEDURE TInspectorCommand.IInspectorCommand(itsCmdNumber: CmdNumber);
  25190. æFi UMacApp.p
  25191. æT METHOD 
  25192. æC IInspectorCommand initializes a TInspectorCommand object and associates it with 
  25193. a command number. The itsCmdNumber parameter is the command number associated 
  25194. with a particular menu command—in this case, the New Inspector Window command. 
  25195. The command number is used in the 'cmnu' resource in the resource description 
  25196. file; you typically define a constant to represent that number in both the 
  25197. resource description file and in the appropriate interface or implementation file of 
  25198. the application. MacApp calls this method when the user creates a new Inspector 
  25199. window. (The user may create Inspector windows either by choosing the New 
  25200. Inspector Window menu item or clicking on a field in an existing Inspector window 
  25201. while pressing the Option key.) You never need to call IInspectorCommand 
  25202. yourself. 
  25203.  
  25204.  
  25205.  
  25206. æKY TInspectWindow.CloseByUser
  25207. æD PROCEDURE TInspectWindow.CloseByUser; OVERRIDE;
  25208.  
  25209. æFm UInspector.inc1.p
  25210. æT METHOD 
  25211. æC CloseByUser is overridden to prevent closing the Inspector document when the 
  25212. last Inspector window is closed. The default version calls TWindow.Close, which 
  25213. does not close the document. MacApp calls this method when the user closes the 
  25214. last remaining Inspector window. This method is internal to the MacApp Inspector; 
  25215. you cannot call it yourself or override it. 
  25216.  
  25217.  
  25218.  
  25219. æKY TInspectWindow.Draw
  25220. æD PROCEDURE TInspectWindow.Draw(area: Rect); OVERRIDE;
  25221. æFm UInspector.inc1.p
  25222. æT METHOD 
  25223. æC This method draws the TInspectWindow object that the Inspector uses to display 
  25224. its data. Most of the window is drawn by calling INHERITED Draw; this override 
  25225. adds the horizontal line separating the upper pane of the Inspector window from 
  25226. the lower portion. The area parameter is the QuickDraw rectangle, specified in 
  25227. view coordinates, that defines the boundaries of the window. MacApp calls this 
  25228. method when the user creates a new Inspector window. This method is internal to 
  25229. the MacApp Inspector; you cannot call it yourself or override it. 
  25230.  
  25231.  
  25232.  
  25233. æKY TInspectWindow.Fields
  25234. æD PROCEDURE TInspectWindow.Fields(PROCEDURE DoToField(fieldName: Str255; 
  25235.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  25236. æFm UInspector.inc1.p
  25237. æT METHOD 
  25238. æC Fields reports the contents of each field of the TInspectWindow object to the 
  25239. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  25240. the contents of each field. Fields iterates over all the fields of the 
  25241. TInspectWindow object, performing DoToField on each one. The fieldName parameter is 
  25242. the name of the field. The fieldAddr parameter is the field’s location in memory. 
  25243. The fieldType parameter uses a predefined constant to tell Fields what type of 
  25244. information to look for in a field. MacApp calls Fields from the MacApp 
  25245. Inspector. This method is internal to the MacApp Inspector; you cannot call it 
  25246. yourself or override it. 
  25247.  
  25248.  
  25249.  
  25250. æKY TInspectWindow.IInspectWindow
  25251. æD PROCEDURE TInspectWindow.IInspectWindow;
  25252. æFm UInspector.inc1.p
  25253. æT METHOD 
  25254. æC IInspectWindow initializes a window and several subviews in which to display the 
  25255. Inspector window and its various scrolling views, then adds the window to the 
  25256. Inspector’s free window list. The Inspector window is initialized to have a 
  25257. close box and a resize box. If you disable the compile-time flag qTemplateViews, 
  25258. TInspector.MakeWindow calls IInspectWindow to initialize the window it creates; 
  25259. otherwise, it creates one from a 'view' resource and calls IRes to initialize 
  25260. it. This method is internal to the MacApp Inspector; you cannot call it yourself 
  25261. or override it. 
  25262.  
  25263.  
  25264.  
  25265. æKY TInspectWindow.InsertClass
  25266. æD PROCEDURE TInspectWindow.InsertClass(itemNo: INTEGER);
  25267. æFm UInspector.inc1.p
  25268. æT METHOD 
  25269. æC This method increments the size of the Inspector's class list (fClassListView) 
  25270. by 1 and sets the selection to the specified position. The itemNo parameter 
  25271. specifies the position in the list that becomes the new selection. InsertClass is 
  25272. called by TInspector.AddObjectList to insert a class name in the Inspector's 
  25273. class list view. This method is internal to the MacApp Inspector; you cannot call 
  25274. it yourself or override it. 
  25275.  
  25276.  
  25277.  
  25278. æKY TInspectWindow.IRes
  25279. æD PROCEDURE TInspectWindow.IRes(itsDocument: TDocument; itsSuperView: TView; 
  25280.   VAR itsParams: Ptr); OVERRIDE;
  25281. æFm UInspector.inc1.p
  25282. æT METHOD 
  25283. æC IRes initializes a TInspectWindow object from a 'view' resource template. The 
  25284. itsDocument parameter specifies the document associated with the TInspectWindow 
  25285. object. The itsSuperView parameter specifies the TView object into which the 
  25286. view is to be installed. The itsParams parameter is a pointer to the portion of 
  25287. the 'view' resource data used to initialize this view. When the IRes method 
  25288. finishes initializing the view, the method moves the pointer to the end of this 
  25289. data. MacApp calls this method for each of the views created from a 'view' resource 
  25290. template, usually in response to a NewTemplateWindow or a DoCreateViews call. 
  25291. This method is internal to the MacApp Inspector; you cannot call it yourself or 
  25292. override it. 
  25293.  
  25294.  
  25295.  
  25296. æKY TInspectWindow.Resize
  25297. æD PROCEDURE TInspectWindow.Resize(width, height: VCoordinate; 
  25298.   invalidate: BOOLEAN); OVERRIDE;
  25299. æFm UInspector.inc1.p
  25300. æT METHOD 
  25301. æC This method is overridden to resize the subviews of an Inspector window after 
  25302. first calling INHERITED Resize to resize the window itself. The width parameter 
  25303. is the window’s new horizontal dimension, expressed in local view coordinates. 
  25304. The height parameter is the window’s new vertical dimension, expressed in local 
  25305. view coordinates. If you set the value of the invalidate parameter to TRUE, the 
  25306. window and its subviews will be invalidated, forcing them to be redrawn in the 
  25307. update process. When you know the window will be redrawn eventually and wish 
  25308. to avoid drawing it twice—which makes the screen appear to flash—you can set the 
  25309. invalidate parameter to FALSE. MacApp calls Resize from 
  25310. TInspectWindow.IInspectWindow to adjust the height of the window being initialized; 
  25311. it is called again later from IInspectWindow to draw the resized window. This method 
  25312. is internal to the Inspector; you cannot call it yourself or override it. 
  25313.  
  25314.  
  25315.  
  25316. æKY TInspectWindow.SelectObject
  25317. æD PROCEDURE TInspectWindow.SelectObject(theObject: TObject; theType: INTEGER);
  25318. æFm UInspector.inc1.p
  25319. æT METHOD 
  25320. æC After making sure the specified object is a valid object, SelectObject installs 
  25321. it in the window as the selected object. SelectObject also ensures that the 
  25322. class and object list views are in sync. The parameter theObject is the TInspector 
  25323. object to be selected. Normally, you will coerce theObject to the correct type 
  25324. for this list. The parameter theType is an integer specifying the classID of 
  25325. the object to be installed. SelectObject is called by TObjectView.SelectField to 
  25326. select objects for display in the MacApp Inspector. This method is internal to 
  25327. the MacApp Inspector; you cannot call it yourself or override it. 
  25328.  
  25329.  
  25330.  
  25331. æKY TInspectWindow.SetNumberOfClasses
  25332. æD PROCEDURE TInspectWindow.SetNumberOfClasses(noOfClasses: INTEGER);
  25333.  
  25334. æFm UInspector.inc1.p
  25335. æT METHOD 
  25336. æC SetNumberOfClasses sets the number of classes in fClassListView and redraws the 
  25337. class list. The noOfClasses parameter is an integer specifying the number of 
  25338. items in the Inspector's class list. SetNumberOfClasses is called by 
  25339. TInspector.MakeWindow to set the number of classes shown in the new window. This 
  25340. method is internal to the MacApp Inspector; you cannot call it yourself or override it. 
  25341.  
  25342.  
  25343.  
  25344. æKY TInspectWindow.SetTitleForDoc
  25345. æD PROCEDURE TInspectWindow.SetTitleForDoc(newDocTitle: Str255); OVERRIDE;
  25346. æFm UInspector.inc1.p
  25347. æT METHOD 
  25348. æC This method sets the title of an Inspector window. The newDocTitle parameter is 
  25349. the Inspector window's title. This method is internal to the MacApp Inspector; 
  25350. you cannot call it yourself or override it. 
  25351.  
  25352.  
  25353.  
  25354. æKY TList.At
  25355. æD FUNCTION TList.At(index: ArrayIndex): TObject;
  25356.  
  25357. æFi UList.p
  25358. æT METHOD 
  25359. æC The At method returns the item that occupies a specified position in a TList 
  25360. list; the caller typically coerces the result into a descendant of TObject. If you 
  25361. set the compile flag qRangeCheck to TRUE, At ensures that the value of index 
  25362. is between 1 and the value of the fSize field. The index parameter is an Integer 
  25363. specifying a position in the list; the first item in the list is number 1. 
  25364. MacApp calls At to retrieve objects stored in TList lists. You can call At to 
  25365. retrieve an object from a specific position in a TList list. You can also use this 
  25366. method if you want to treat a list as an array. 
  25367.  
  25368.  
  25369.  
  25370. æKY TList.AtDelete
  25371. æD PROCEDURE TList.AtDelete(index: ArrayIndex);
  25372. æFi UList.p
  25373. æT METHOD 
  25374. æC AtDelete deletes an item in a list as specified by the index parameter. The 
  25375. index parameter is an Integer specifying a position in the list; the first item in 
  25376. the list is number 1. MacApp calls this method from TList.Delete and TList.Pop 
  25377. to remove an item from a list, using an index to specify the item to be 
  25378. removed. You can use this method in a similar fashion. 
  25379.  
  25380.  
  25381.  
  25382. æKY TList.AtPut
  25383. æD PROCEDURE TList.AtPut(index: ArrayIndex; newItem: TObject);
  25384. æFi UList.p
  25385. æT METHOD 
  25386. æC TList.AtPut replaces an item in the specified position in a list without freeing 
  25387. the old item. If you set the compile flag qRangeCheck to TRUE, AtPut ensures 
  25388. the validity of the value of the index parameter. If you set the qDebug flag to 
  25389. TRUE, this method verifies that newItem is a member of the same class as the 
  25390. other objects in the list, and that the list contains members of TObject or one 
  25391. of its subclasses. The index parameter is an integer specifying the position in 
  25392. the list occupied by the item to be replaced. The newItem parameter is the 
  25393. object that will replace the item in the position specified by the index parameter. 
  25394. WARNING: If you call AtPut from within an Each method, the results will be 
  25395. unpredictable. AtPut is called by TList.SortBy to order the elements in a list. 
  25396. You can use this method to replace an item in a TList list without freeing the 
  25397. old item. 
  25398.  
  25399.  
  25400.  
  25401. æKY TList.Delete
  25402. æD PROCEDURE TList.Delete(item: TObject);
  25403.  
  25404. æFi UList.p
  25405. æT METHOD 
  25406. æC This method deletes the first reference to the specified item from the list and 
  25407. reduces the number of items in the list (fSize) by 1, but does not free the 
  25408. item. If the item is not present in the list, this method does nothing. The item 
  25409. parameter is an object that is a member of TObject or one of its subclasses. 
  25410. Delete is called by MacApp to remove items from TList lists. You can use this 
  25411. method in a similar fashion. 
  25412.  
  25413.  
  25414.  
  25415. æKY TList.DeleteAll
  25416. æD PROCEDURE TList.DeleteAll;
  25417. æFi UList.p
  25418. æT METHOD 
  25419. æC DeleteAll deletes every element from a TList list and sets fSize to 0, but does 
  25420. not free any objects. DeleteAll is called by TList.FreeAll; you can call 
  25421. DeleteAll to delete all items from a TList list. 
  25422.  
  25423.  
  25424.  
  25425. æKY TList.DynamicFields
  25426. æD PROCEDURE TList.DynamicFields(PROCEDURE DoToField(fieldName: Str255; 
  25427.   fieldAddr: Ptr; fieldType: integer)); OVERRIDE;
  25428.  
  25429. æFi UList.p
  25430. æT METHOD 
  25431. æC DynamicFields reports the contents of each of the TList object’s elements to the 
  25432. MacApp Inspector. DoToField is a procedure that MacApp passes to DynamicFields 
  25433. to report the contents of each dynamic field. DynamicFields iterates over all 
  25434. the TList object’s elements, performing DoToField on each one. In this way 
  25435. DynamicFields reports the contents of each dynamic field to the Inspector. MacApp 
  25436. calls DynamicFields from the MacApp Inspector. You must override this method in 
  25437. your subclasses if you want the Inspector to display your dynamic fields in a 
  25438. different format than the default. Your override must not call INHERITED Fields; 
  25439. the override must be responsible for displaying all dynamic fields. 
  25440.  
  25441.  
  25442.  
  25443. æKY TList.Each
  25444. æD PROCEDURE TList.Each(PROCEDURE DoToItem(item: TObject));
  25445. æFi UList.p
  25446. æT METHOD 
  25447. æC Each calls DoToItem once for each element of the list, in order. If DoToItem 
  25448. calls InsertLast, the newly added element will NOT be enumerated. The DoToItem 
  25449. parameter is a procedure whose argument is a descendant of TObject. Because MacApp 
  25450. stores objects in TList lists, performing the same action on many objects is 
  25451. often as simple as calling Each with the procedure it needs to perform as the 
  25452. argument. You can use Each in this fashion. 
  25453.  
  25454.  
  25455.  
  25456. æKY TList.Fields
  25457. æD PROCEDURE TList.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  25458.   fieldType: INTEGER)); OVERRIDE;
  25459. æFi UList.p
  25460. æT METHOD 
  25461. æC Fields reports the contents of each field of the TList object to the MacApp 
  25462. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  25463. contents of each field. Fields iterates over all the fields of the TList object, 
  25464. performing DoToField on each one. The fieldName parameter is the name of the 
  25465. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  25466. parameter uses a predefined constant to tell Fields what type of information to 
  25467. look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  25468. override this method in your subclasses if you want the Inspector to display your 
  25469. fields. Your override must call INHERITED Fields as its last action to ensure 
  25470. that the inherited fields are also displayed. 
  25471.  
  25472.  
  25473.  
  25474. æKY TList.First
  25475. æD FUNCTION TList.First: TObject;
  25476.  
  25477. æFi UList.p
  25478. æT METHOD 
  25479. æC First returns the first item in a TList list; typically, the caller then coerces 
  25480. the result into a descendant of TObject. MacApp calls First, for example, in 
  25481. TView.MakeFirstSubview to return the first subview in the list of subviews, so 
  25482. that the method can insert a subview in the first position in the list. You can 
  25483. use First to obtain the first item in a list of objects. 
  25484.  
  25485.  
  25486.  
  25487. æKY TList.FirstThat
  25488. æD FUNCTION TList.FirstThat(FUNCTION TestItem(item: TObject): BOOLEAN): TObject;
  25489. æFi UList.p
  25490. æT METHOD 
  25491. æC FirstThat returns from a list the first item that meets specified criteria. If 
  25492. no item in the list satisfies the criteria, FirstThat returns NIL. It is typical 
  25493. for the caller to coerce the result into a descendant of TObject. If TestItem 
  25494. calls InsertLast, the newly added element will NOT be enumerated. FirstThat 
  25495. takes as its parameter the function TestItem, which looks for an item specified by 
  25496. its argument, item. The item parameter is typically a descendant of TObject. 
  25497. FirstThat is used internally by the methods TAssociation.FirstEntryThat, 
  25498. TView.FirstSubViewThat, and TInspectWindow.SelectObject. You can use it to obtain from 
  25499. a list the first object of a particular type that meets specified criteria. 
  25500.  
  25501.  
  25502.  
  25503. æKY TList.FreeAll
  25504. æD PROCEDURE TList.FreeAll;
  25505. æFi UList.p
  25506. æT METHOD 
  25507. æC FreeAll deletes each element in a TList list object, sets fSize to 0, and frees 
  25508. each list element. FreeAll deletes all of the elements in the list by calling 
  25509. Each with the argument FreeIfObject, but does not free the TList object. 
  25510.  
  25511.  
  25512.  
  25513. æKY TList.FreeList
  25514. æD PROCEDURE TList.FreeList;
  25515. æFi UList.p
  25516. æT METHOD 
  25517. æC FreeList frees each object in the list, then frees the list. To accomplish this, 
  25518. it simply calls Each with the procedure FreeIfObject as a parameter, then 
  25519. calls Free to free the list object itself. Because MacApp stores objects as TList 
  25520. lists, FreeList is often called when freeing objects. The following methods call 
  25521. FreeList: TAssociation.Free, TDocument.Free, TInspector.Free, and TView.Free. 
  25522. You can use FreeList in a similar fashion. 
  25523.  
  25524.  
  25525.  
  25526. æKY TList.GetEqualItemNo
  25527. æD FUNCTION TList.GetEqualItemNo(item: TObject): ArrayIndex;
  25528.  
  25529. æFi UList.p
  25530. æT METHOD 
  25531. æC GetEqualItemNo returns the index of the specified item, or 0 if the item is not 
  25532. in the list. The default behavior of this method is the same as that of the 
  25533. GetSameItemNo method; you can override GetEqualItemNo to implement behavior unique 
  25534. to your own list. The item parameter is an object of class TObject or one of 
  25535. its subclasses. MacApp calls this method when manipulating lists of objects. You 
  25536. can call this method to find out if an object is in the list, and, if so, 
  25537. obtain its index. 
  25538.  
  25539.  
  25540.  
  25541. æKY TList.GetInspectorName
  25542. æD PROCEDURE TList.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  25543. æFi UList.p
  25544. æT METHOD 
  25545. æC GetInspectorName customizes the name of a TList object displayed in the 
  25546. Inspector window; it creates a string consisting of the string “Of ”, the class name 
  25547. set by the method SetEltType, the string “Size: ”, and the number of dynamic 
  25548. array elements this object occupies in memory. The inspectorName parameter contains 
  25549. the TList object’s name when the method returns. MacApp calls this method when 
  25550. displaying items in Inspector windows. You usually do not need to call this 
  25551. method yourself. 
  25552.  
  25553.  
  25554.  
  25555. æKY TList.GetSameItemNo
  25556. æD FUNCTION TList.GetSameItemNo(item: TObject): ArrayIndex;
  25557. æFi UList.p
  25558. æT METHOD 
  25559. æC GetSameItemNo returns the index of the specified item, or zero if the item is 
  25560. not in the list. The item parameter is an object of class TObject or one of its 
  25561. subclasses. You can call this method to find out if an object is in the list, 
  25562. and, if so, obtain its index. 
  25563.  
  25564.  
  25565.  
  25566. æKY TList.IList
  25567. æD PROCEDURE TList.IList;
  25568. æFi UList.p
  25569. æT METHOD 
  25570. æC IList initializes a new list with no elements; that is, it sets fSize to 0. 
  25571. IList is called by several methods as part of their initialization procedures, 
  25572. including TAssociation.IAssociation, TInspector.IInspector, 
  25573. TObjectList.IObjectList, and the global routine NewList. You can call it to set 
  25574. initial values for the fields of a TList object; you must always call it once before 
  25575. calling any other method, but you must never call it twice. 
  25576.  
  25577.  
  25578.  
  25579. æKY TList.Insert
  25580. æD PROCEDURE TList.Insert(item: TObject);
  25581.  
  25582. æFi UList.p
  25583. æT METHOD 
  25584. æC Insert adds the specified item in the list in the order of arrival; that is, 
  25585. Insert appends the item to the end of the list. The item parameter specifies the 
  25586. item to be inserted. MacApp calls this method when manipulating the command 
  25587. queue, and when managing lists of objects for the Inspector. You can use this 
  25588. method to place an object at the end of a TList list. You can override this method 
  25589. to insert the item in any desired location. 
  25590.  
  25591.  
  25592.  
  25593. æKY TList.InsertBefore
  25594. æD PROCEDURE TList.InsertBefore(index: ArrayIndex; item: TObject);
  25595. æFi UList.p
  25596. æT METHOD 
  25597. æC InsertBefore inserts a reference to a specified item at a specified position and 
  25598. increments the value of fSize by 1. InsertBefore signals failure if it is 
  25599. unable to increase the size of the list. If the value of the qDebug flag is TRUE 
  25600. and TList.SetEltType was used to set the type of objects permitted in the list, 
  25601. InsertBefore makes sure it has not been called from within an Each method, 
  25602. checks the validity of the value of the index parameter, and verifies that the new 
  25603. item's type matches that of the other objects in the list. The index parameter 
  25604. is the new element’s position in the list. If the value of index is 1, 
  25605. InsertBefore places the new element at the beginning of the list. If the value of 
  25606. index is equal to fSize + 1, InsertBefore places the new element at the end of the 
  25607. list. The item parameter is the new object inserted in the list. InsertBefore is 
  25608. used internally by TSortedList.Insert, TList.InsertFirst, and TList.InsertLast. 
  25609. You can use it to insert a reference to any position in a TList list. 
  25610.  
  25611.  
  25612.  
  25613. æKY TList.InsertFirst
  25614. æD PROCEDURE TList.InsertFirst(item: TObject);
  25615. æFi UList.p
  25616. æT METHOD 
  25617. æC InsertFirst inserts a reference to the specified item at the beginnning of the 
  25618. list and increases the value of fSize by 1. InsertFirst signals failure if it is 
  25619. unable to increase the size of the list. If the value of the qDebug flag is 
  25620. TRUE and TList.SetEltType was used to set the type of objects permitted in the 
  25621. list, InsertFirst verifies that the new item's type matches that of the other 
  25622. objects in the list. The item parameter is the new object inserted in the list; it 
  25623. is a member of TObject or one of its subclasses. The index of the new element 
  25624. is 1. InsertFirst is called by TView.MakeFirstSubView to force a subview to be 
  25625. the first in the list of subviews. You can use this method to refer to the 
  25626. first item in a TList list. 
  25627.  
  25628.  
  25629.  
  25630. æKY TList.InsertLast
  25631. æD PROCEDURE TList.InsertLast(item: TObject);
  25632. æFi UList.p
  25633. æT METHOD 
  25634. æC InsertLast inserts a reference to the specified item at the end of the list and 
  25635. increases the value of fSize by 1. InsertLast signals failure if it is unable 
  25636. to increase the size of the list. If the value of the qDebug flag is TRUE and 
  25637. TList.SetEltType was used to set the type of objects permitted in the list, 
  25638. InsertLast verifies that the new item's type matches that of the other objects in 
  25639. the list. The item parameter is the new object inserted in the list; it is a 
  25640. member of TObject or one of its subclasses. MacApp callst this method to manipulate 
  25641. lists of objects, lists of documents and lists of views; methods that call 
  25642. InsertLast include TApplication.AddDocument, TApplication.AddFreeWindow, 
  25643. TList.InsertLast, TView.AddSubview, TDocument.AddView, TDocument.AddWindow, 
  25644. TSScrollBar.AttachScroller, and TView.MakeLastSubView. You can use this method in a 
  25645. similar fashion. 
  25646.  
  25647.  
  25648.  
  25649. æKY TList.IterateTil
  25650. æD FUNCTION TList.IterateTil(FUNCTION TestItem(item: TObject): Boolean;  
  25651.   IterateForward: Boolean; VAR itsIndex: ArrayIndex): TObject;
  25652.  
  25653. æFi UList.p
  25654. æT METHOD 
  25655. æC IterateTil is the basic list iterator. It calls TestItem once for each element 
  25656. of the list, in order, until TestItem returns TRUE. IterateTil then returns the 
  25657. element that satisfied the test; usually the caller coerces the result into a 
  25658. subclass of TObject. If no element in the list satisfies the test, both TestItem 
  25659. and IterateTil return NIL. TestItem is a procedure you define whose argument 
  25660. is typically a descendant of TObject. If TestItem calls InsertLast, the newly 
  25661. added element will NOT be enumerated. If TestItem calls AtPut, InsertBefore, 
  25662. InsertFirst, or DeleteAll, misbehavior will ensue. 
  25663.  
  25664.  
  25665.  
  25666. æKY TList.Last
  25667. æD FUNCTION TList.Last: TObject;
  25668.  
  25669. æFi UList.p
  25670. æT METHOD 
  25671. æC Last returns the last item in a TList list; typically, the caller then coerces 
  25672. the result into a subclass of TObject. If the compile flags qRangeCheck and 
  25673. qDebug are set to TRUE, Last performs a range check on the index. Last is called by 
  25674. TView.MakeLastSubview to place a subview in the last position in the list. 
  25675.  
  25676.  
  25677.  
  25678. æKY TList.LastThat
  25679. æD FUNCTION TList.LastThat(FUNCTION TestItem(item: TObject): BOOLEAN): TObject;
  25680. æFi UList.p
  25681. æT METHOD 
  25682. æC LastThat returns from a list the last item that meets specified criteria. If no 
  25683. item in the list satisfies the criteria, LastThat returns NIL. It is typical 
  25684. for the caller to coerce the result into a subclass of TObject. If TestItem calls 
  25685. InsertLast, the newly added element will NOT be enumerated. LastThat takes as 
  25686. its parameter the function TestItem, which looks for an item specified by its 
  25687. argument, item. The item parameter is typically a descendant of TObject. 
  25688. LastThat is used internally by TView.LastSubViewThat and TDocument.ShowWindows. You 
  25689. can use LastThat to obtain the last item in a list that meets your specified 
  25690. criteria—for example, the last item of a particular class. 
  25691.  
  25692.  
  25693.  
  25694. æKY TList.Pop
  25695. æD FUNCTION TList.Pop: TObject;
  25696. æFi UList.p
  25697. æT METHOD 
  25698. æC The Pop method pops an item from the list, in last-in, first-out order. 
  25699.  
  25700.  
  25701.  
  25702. æKY TList.Push
  25703. æD PROCEDURE TList.Push(item: TObject);
  25704. æFi UList.p
  25705. æT METHOD 
  25706. æC The Push method pushes an item onto the list so that it can be retrieved in 
  25707. last-in, first-out order. This method is equivalent to the InsertLast method. 
  25708.  
  25709.  
  25710.  
  25711. æKY TList.SetEltType
  25712. æD PROCEDURE TList.SetEltType(toClass: MAName);
  25713.  
  25714.  
  25715. æFi UList.p
  25716. æT METHOD 
  25717. æC SetEltType sets a string that identifies the name of the class of objects 
  25718. inserted in a TList list; take care not to confuse this method with 
  25719. TList.SetEltTypeID, which lets you specify the class to which new list elements are 
  25720. coerced. The 
  25721. classID, which actually determines the type to which list elements are 
  25722. coerced, is set not by SetEltType, but by SetEltTypeID. The toClass parameter is the 
  25723. class name of all objects in the list. The Inspector uses SetEltType internally; 
  25724. it is also used at initialization time. You can call SetEltType when you want 
  25725. to set the class name of objects to be inserted in a TList list. After creating 
  25726. and initializing the list, you must call SetEltType in debug mode only once, 
  25727. unless you pass the same argument in both calls. 
  25728.  
  25729.  
  25730.  
  25731. æKY TList.SetEltTypeID
  25732. æD PROCEDURE TList.SetEltTypeID(toClassID: ObjClassID);
  25733. æFi UList.p
  25734. æT METHOD 
  25735. æC SetEltTypeID sets the type of objects to be inserted in the TList list. The 
  25736. toClassID parameter is the class ID of all objects in the list. SetEltTypeID is 
  25737. used internally by TObjectList.IObjectList. You can use this method to set the 
  25738. classID to which objects inserted in a TList list will be coerced. After creating 
  25739. and initializing the list, you must call SetEltTypeID in debug mode only once, 
  25740. unless you pass the same argument in both calls. In debug mode, the TList 
  25741. insert methods coerce new list elements to the class specified by the toClassID 
  25742. parameter, thus ensuring that the list contains only elements of the specified 
  25743. type. 
  25744.  
  25745.  
  25746.  
  25747. æKY TList.SortBy
  25748. æD PROCEDURE TList.SortBy(FUNCTION CompareItems(item1, item2: TObject): CompareResult);
  25749.  
  25750. æFi UList.p
  25751. æT METHOD 
  25752. æC The SortBy method sorts a list by using a CompareItems function that you supply. 
  25753. Your CompareItems function must accept as its argument two TList objects and 
  25754. return a result that ranks them according to your specified criteria. The 
  25755. parameters item1 and item2 are the objects that CompareItems evaluates. CompareItems 
  25756. should return one of the constants kItem1LessThanItem2, kItem1EqualItem2, or 
  25757. kItem1GreaterThanItem2, according to whether the ObjClassID of item1 is less 
  25758. than, equal to, or greater than the ObjClassID of item2. MacApp predefines these 
  25759. constants for your convenience; however, you are not forced to use them. MacApp 
  25760. calls this method from TSortedList.Sort when ordering the items in a TSortedList 
  25761. list. You can use this method in a similar fashion. 
  25762.  
  25763.  
  25764.  
  25765. æKY TListView.CalcMinSize
  25766. æD PROCEDURE TListView.CalcMinSize(VAR minSize: VPoint); OVERRIDE;
  25767. æFm UInspector.inc1.p
  25768. æT METHOD 
  25769. æC CalcMinSize calculates the minimum dimensions of the TListView object. The 
  25770. minSize parameter contains the calculated size, represented as a view point, when 
  25771. the method returns. MacApp calls CalcMinSize to ensure that the view will not 
  25772. become smaller than a certain minimum size when it resizes the TListView object. 
  25773. This method is internal to the MacApp Inspector; you cannot call it yourself. 
  25774.  
  25775.  
  25776.  
  25777. æKY TListView.ChangeSelection
  25778. æD PROCEDURE TListView.ChangeSelection(index: INTEGER; highlight: BOOLEAN);
  25779. æFm UInspector.inc1.p
  25780. æT METHOD 
  25781. æC ChangeSelection sets the current selection in a TListView object and then calls 
  25782. TListView.SelectItem. SelectItem is an empty method; you can override it to do 
  25783. something to the new selection. The index parameter specifies the position in 
  25784. the list occupied by the object to be selected. Items are numbered from the 
  25785. beginning of the list, starting with 1. If the value of the highlight parameter is 
  25786. TRUE and the view is focused, ChangeSelection removes highlighting from the old 
  25787. selection and highlights the new selection. ChangeSelection is called by 
  25788. TObjListView.InstallObjectList, TClassListView.SelectItem, 
  25789. TInspectWindow.SelectObject, and TListView.DoMouseCommand. This method is internal to 
  25790. the MacApp Inspector; you cannot call it yourself or override it. 
  25791.  
  25792.  
  25793.  
  25794. æKY TListView.DeleteItem
  25795. æD PROCEDURE TListView.DeleteItem(itemNo: INTEGER);
  25796. æFm UInspector.inc1.p
  25797. æT METHOD 
  25798. æC DeleteItem removes the specified item from the TListView object’s list of items 
  25799. and then forces the view to be redrawn. The itemNo parameter is the index of 
  25800. the item to be deleted. Items in a TListView object are numbered from the 
  25801. beginning of the list, starting with 1. This method is internal to the MacApp 
  25802. Inspector; you cannot call it yourself or override it. 
  25803.  
  25804.  
  25805.  
  25806. æKY TListView.DoHighlightSelection
  25807. æD PROCEDURE TListView.DoHighlightSelection(fromHL, toHL: HLState); OVERRIDE;
  25808. æFm UInspector.inc1.p
  25809. æT METHOD 
  25810. æC DoHighlightSelection sets the highlight state of the TListView object’s 
  25811. selection. The parameter fromHL is the selection’s original highlight state; the toHL 
  25812. parameter is the desired highlight state. Possible highlight states are hlOff 
  25813. (selection is not highlighted), hlDim (selection is dimmed), and hlOn (selection 
  25814. is highlighted). MacApp calls DoHighlightSelection when drawing the contents of 
  25815. the view and when the view is activated or deactivated. This method is 
  25816. internal to the MacApp Inspector; you cannot call it yourself or override it. 
  25817.  
  25818.  
  25819.  
  25820. æKY TListView.DoMouseCommand
  25821. æD FUNCTION TListView.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  25822.   VAR hysteresis: Point): TCommand; OVERRIDE;
  25823. æFm UInspector.inc1.p
  25824. æT METHOD 
  25825. æC DoMouseCommand performs the appropriate actions to process a mouse click in a 
  25826. TListView object. This method maps the coordinates of the mouse click to an item 
  25827. in the list, selects that item, and returns NIL. The parameter theMouse is the 
  25828. mouse pointer’s current location, described in view coordinates. The info 
  25829. parameter is the event record of the mouse-down event that caused DoMouseCommand to 
  25830. be called. The hysteresis parameter is a point that represents the horizontal 
  25831. and vertical distance the mouse can travel between clicks and still be 
  25832. considered to be at the same location. MacApp uses this parameter to determine whether 
  25833. a double click has occurred or if a control has moved. DoMouseCommand is called 
  25834. when MacApp receives a mouse-down event in a TListView object. This method is 
  25835. internal to the Inspector; you cannot call it yourself or override it. 
  25836.  
  25837.  
  25838.  
  25839. æKY TListView.Draw
  25840. æD PROCEDURE TListView.Draw(area: Rect); OVERRIDE;
  25841. æFm UInspector.inc1.p
  25842. æT METHOD 
  25843. æC This method draws the image of the TListView object on the screen. The area 
  25844. parameter is a QuickDraw rectangle, described in local coordinates, that defines 
  25845. part of the control that needs to be redrawn. You use this parameter to optimize 
  25846. drawing speed. MacApp calls Draw when the image of the TListView object must be 
  25847. updated. This method is internal to the MacApp Inspector; you cannot call it 
  25848. yourself or override it. 
  25849.  
  25850.  
  25851.  
  25852. æKY TListView.DrawItem
  25853. æD PROCEDURE TListView.DrawItem(itemNumber: INTEGER; basePoint: Point);
  25854. æFm UInspector.inc1.p
  25855. æT METHOD 
  25856. æC DrawItem is an empty method; when overridden, it must draw a single item that 
  25857. appears in a specified position in a TListView list. The itemNumber parameter 
  25858. specifies the position in the list occupied by the item to be drawn. The basePoint 
  25859. parameter is the top-left point of the item’s defining rectangle, expressed in 
  25860. global coordinates. DrawItem is called by TListView.Draw to draw single items 
  25861. in a TListView list. This method is internal to the Inspector; you cannot call 
  25862. it yourself or override it. 
  25863.  
  25864.  
  25865.  
  25866. æKY TListView.Fields
  25867. æD PROCEDURE TListView.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  25868.   fieldType: INTEGER)); OVERRIDE;
  25869. æFm UInspector.inc1.p
  25870. æT METHOD 
  25871. æC Fields reports the contents of each field of the TListView object to the MacApp 
  25872. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  25873. contents of each field. Fields iterates over all the fields of the TListView 
  25874. object, performing DoToField on each one. The fieldName parameter is the name of 
  25875. the field. The fieldAddr parameter is the field’s location in memory. The 
  25876. fieldType parameter uses a predefined constant to tell Fields what type of 
  25877. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  25878. This method is internal to the MacApp Inspector; you cannot call it yourself or 
  25879. override it. 
  25880.  
  25881.  
  25882.  
  25883. æKY TListView.IListView
  25884. æD PROCEDURE TListView.IListView(itsDocument: TDocument; itsSuperView: TView; 
  25885.   itsLocation: VPoint; itsSize: VPoint; itsTextStyle: TextStyle; 
  25886.   itsNumberOfItems: INTEGER; itsHSizeDet: SizeDeterminer);
  25887. æFm UInspector.inc1.p
  25888. æT METHOD 
  25889. æC This method initializes the fields of a TListView object. The itsDocument 
  25890. parameter is the document associated with the list. The itsSuperView parameter is the 
  25891. view in which the list appears; usually this view is a TWindow or TScroller 
  25892. object. The itsLocation parameter is the location of the upper-left corner of the 
  25893. TListView object in the local coordinates of the superview. The itsSize 
  25894. parameter is the size of the list in pixels, represented as a view point. The 
  25895. itsTextStyle parameter specifies the style of the font displayed in the view; MacApp 
  25896. predefines certain constants that specify these styles in the file UMacApp.p. 
  25897. The itsNumberOfItems parameter is the number of items that initially appear in 
  25898. the list view. The view's horizontal and vertical dimensions are specified 
  25899. separately by the itsHSizeDet and the itsVSizeDet parameters, respectively. Possible 
  25900. values are sizeSuperView (subview is the same size as superview), 
  25901. sizeRelSuperView (subview size changes an equal amount relative to the superview's 
  25902. size), sizePage (view is to be the size of one page), sizeFillPages (view grows to 
  25903. fill an exact number of pages), sizeVariable (view size fluctuates according to 
  25904. application-specific criteria), or sizeFixed (no special handling of size issues). 
  25905. IListView is called by TClassListView.IClassListView, TObjectView.IObjectView, 
  25906. and TObjListView.IObjListView to perform initialization tasks common to objects 
  25907. in these classes. This method is internal to the MacApp Inspector; you cannot 
  25908. call it yourself or override it. 
  25909.  
  25910.  
  25911.  
  25912. æKY TListView.InsertItem
  25913. æD PROCEDURE TListView.InsertItem(itemNo: INTEGER);
  25914. æFm UInspector.inc1.p
  25915. æT METHOD 
  25916. æC InsertItem inserts a blank item at the specified position in a TListView list, 
  25917. adjusts the values of fCurrentSelection and fNumberOfItems accordingly, resizes 
  25918. the list, and then redraws the portion of the list from the inserted item to 
  25919. the list’s end. The itemNo parameter is the position in the list that the newly 
  25920. inserted item is to occupy. InsertItem is called by TInspector.AddObject and 
  25921. TInspectWindow.InsertClass when these methods add a new item to a list of objects 
  25922. displayed in an Inspector window. This method is internal to the MacApp 
  25923. Inspector; you cannot call it yourself or override it. 
  25924.  
  25925.  
  25926.  
  25927. æKY TListView.IRes
  25928. æD PROCEDURE TListView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  25929.   VAR itsParams: Ptr); OVERRIDE;
  25930. æFm UInspector.inc1.p
  25931. æT METHOD 
  25932. æC IRes initializes a TListView object from a 'view' resource template. The 
  25933. itsDocument parameter specifies the document associated with the TListView object. The 
  25934. itsSuperView parameter specifies the TView object into which the view is to be 
  25935. installed. The itsParams parameter is a pointer to the portion of the 'view' 
  25936. resource data used to initialize this view. When the IRes method finishes 
  25937. initializing the view, the method moves the pointer to the end of this data. MacApp 
  25938. calls this method for each of the views created from a 'view' resource template, 
  25939. usually in response to a NewTemplateWindow or a DoCreateViews call. This 
  25940. method is internal to the MacApp Inspector; you cannot call it yourself. 
  25941.  
  25942.  
  25943.  
  25944. æKY TListView.ItemToVRect
  25945. æD PROCEDURE TListView.ItemToVRect(index: INTEGER; VAR itemRect: VRect);
  25946. æFi UInspector.inc1.p
  25947. æT METHOD 
  25948. æC ItemToVRect maps a list item to a rectangle described in view coordinates. The 
  25949. index parameter is the position in the list that the specified item occupies. 
  25950. The itemRect parameter is the rectangle that defines the list item's text on the 
  25951. screen. MacApp calls ItemToVRect to define a selection for various operations 
  25952. it performs on TListView objects. Methods that call ItemToVRect are the 
  25953. following, all defined in the TListView class: DeleteItem, DoHighlightSelection, 
  25954. InsertItem, and RevealItem. This method is internal to the MacApp Inspector; you 
  25955. cannot call it yourself or override it. 
  25956.  
  25957.  
  25958.  
  25959. æKY TListView.RevealItem
  25960. æD PROCEDURE TListView.RevealItem(itemNumber: INTEGER);
  25961. æFm UInspector.inc1.p
  25962. æT METHOD 
  25963. æC RevealItem makes a specific item in the list visible. The itemNumber parameter 
  25964. is the number of the element in the list that is to be revealed. RevealItem is 
  25965. called by TInspectWindow.SelectObject to ensure that a new selection in an 
  25966. Inspector window's class list is visible. This method is internal to the MacApp 
  25967. Inspector; you cannot call it yourself or override it. 
  25968.  
  25969.  
  25970.  
  25971. æKY TListView.SelectItem
  25972. æD PROCEDURE TListView.SelectItem(itemNumber: INTEGER);
  25973. æFm UInspector.inc1.p
  25974. æT METHOD 
  25975. æC SelectItem is an empty method; when overridden, it can do something when the 
  25976. user selects an item. The itemNumber parameter is the selected item’s position in 
  25977. the TListView list. Items in a TListView list are numbered consecutively from 
  25978. the beginning of the list, starting with 1. TListView.ChangeSelection calls 
  25979. SelectItem as the last action it takes. TListView.SelectItem is also called as an 
  25980. inherited method by TClassListView.SelectItem and TObjListView.SelectItem. This 
  25981. method is internal to the Inspector; you cannot call it yourself or override it. 
  25982.  
  25983.  
  25984.  
  25985. æKY TListView.SetNumberOfItems
  25986. æD PROCEDURE TListView.SetNumberOfItems(numberOfItems: INTEGER);
  25987. æFm UInspector.inc1.p
  25988. æT METHOD 
  25989. æC SetNumberOfItems sets fNumberOfItems equal to the value specified in 
  25990. numberOfItems, adjusts the size of the TListView view, and forces the view to be 
  25991. redrawn. 
  25992. The numberOfItems parameter is the number of elements to be contained in the 
  25993. TListView list. SetNumberOfItems is called by the methods that perform operations 
  25994. on TListView lists; these methods include TObjectView.InstallObject, 
  25995. TObjListView.InstallObjectList, and TInspectWindow.SetNumberOfClasses. 
  25996. SetNumberOfItems is internal to the MacApp Inspector; you cannot call it yourself 
  25997. or override it. 
  25998.  
  25999.  
  26000.  
  26001. æKY TListView.SetPen
  26002. æD PROCEDURE TListView.SetPen;
  26003. æFm UInspector.inc1.p
  26004. æT METHOD 
  26005. æC SetPen resets the initial state of the pen and the text style in the current 
  26006. grafPort as follows: The value of the pnSize field is set to (1,1), the value of 
  26007. the pnMode field is set to patCopy, and the value of the pnPat field is set to 
  26008. black. The pen's location is not changed. The text style is set to the 
  26009. characteristics specified in the object's fTextStyle field. SetPen is called by 
  26010. TListView.Draw, TListView.SetStyle, and TObjectView.Draw as a precursor to drawing in 
  26011. TListView views. This method is internal to the MacApp Inspector; you cannot 
  26012. call it yourself or override it. 
  26013.  
  26014.  
  26015.  
  26016. æKY TListView.SetStyle
  26017. æD PROCEDURE TListView.SetStyle(itsTextStyle: TextStyle);
  26018. æFi UInspector.inc1.p
  26019. æT METHOD 
  26020. æC SetStyle sets the fItemHeight and fLineAscent fields according to information 
  26021. about the text style specified in itsTextStyle; it then adjusts the size of the 
  26022. TListView view to accommodate the settings. The itsTextStyle parameter specifies 
  26023. the style of the font displayed in the view; MacApp predefines certain 
  26024. constants that specify these styles in the file UMacApp.p. SetStyle is called by 
  26025. TListView.IRes and TListView.IListView to set an initial text style for TListView 
  26026. objects. This method is internal to the MacApp Inspector; you cannot call it 
  26027. yourself or override it. 
  26028.  
  26029.  
  26030.  
  26031. æKY TListView.VPointToItem
  26032. æD FUNCTION TListView.VPointToItem(thePoint: VPoint): INTEGER;
  26033. æFm UInspector.inc1.p
  26034. æT METHOD 
  26035. æC VPointToItem maps a specified point to an item in the TListView list and returns 
  26036. the item’s index. The parameter thePoint is the point, described in view 
  26037. coordinates, that this method maps to an item in a TListView list. VPointToItem is 
  26038. called by the DoMouseCommand methods of TListView and TObjectView to map mouse 
  26039. clicks to user selections in a TListView list. This method is internal to the 
  26040. MacApp Inspector; you cannot call it yourself or override it. 
  26041.  
  26042.  
  26043.  
  26044. æKY TNewDocCommand.DoIt
  26045. æD PROCEDURE TNewDocCommand.DoIt; OVERRIDE;
  26046.  
  26047. æFi UMacApp.p
  26048. æT METHOD 
  26049. æC DoIt creates a new document when the user chooses the New command from the File 
  26050. menu. MacApp calls this method when the user chooses the New item from the 
  26051. application's File menu. You never need to call the DoIt method yourself. 
  26052.  
  26053.  
  26054.  
  26055. æKY TNewDocCommand.Fields
  26056. æD PROCEDURE TNewDocCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  26057.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  26058.  
  26059. æFi UMacApp.p
  26060. æT METHOD 
  26061. æC Fields reports the contents of each field of the TNewDocCommand object to the 
  26062. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  26063. the contents of each field. Fields iterates over all the fields of the 
  26064. TNewDocCommand object, performing DoToField on each one. The fieldName parameter is 
  26065. the name of the field. The fieldAddr parameter is the field’s location in memory. 
  26066. The fieldType parameter uses a predefined constant to tell Fields what type of 
  26067. information to look for in a field. MacApp calls Fields from the MacApp 
  26068. Inspector. You must override this method in your subclasses if you want the Inspector 
  26069. to display your fields. Your override must call INHERITED Fields as its last 
  26070. action to ensure that the inherited fields are also displayed. 
  26071.  
  26072.  
  26073.  
  26074. æKY TNewDocCommand.INewDocCommand
  26075. æD PROCEDURE TNewDocCommand.INewDocCommand(itsCmdNumber: CmdNumber);
  26076. æFi UMacApp.p
  26077. æT METHOD 
  26078. æC INewDocCommand initializes a TNewDocCommand object and associates it with a 
  26079. command number. The itsCmdNumber parameter is the command number that is associated 
  26080. with a particular menu command—in this case, the New command normally found in 
  26081. an application's File menu. The command number is used in the 'cmnu' resource 
  26082. in the resource description file; you will typically define a constant to 
  26083. represent that number in both the resource description file and in the appropriate 
  26084. interface or implementation file of the application. MacApp calls this method 
  26085. when the user chooses the New item from the File menu. You never need to call 
  26086. INewDocCommand yourself. 
  26087.  
  26088.  
  26089.  
  26090. æKY TNoChangesCommand.Fields
  26091. æD PROCEDURE TNoChangesCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  26092.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  26093.  
  26094. æFi UMacApp.p
  26095. æT METHOD 
  26096. æC Fields reports the contents of each field of the TNoChangesCommand object to the 
  26097. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  26098. report the contents of each field. Fields iterates over all the fields of the 
  26099. TNoChangesCommand object, performing DoToField on each one. The fieldName parameter 
  26100. is the name of the field. The fieldAddr parameter is the field’s location in 
  26101. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  26102. type of information to look for in a field. MacApp calls Fields from the MacApp 
  26103. Inspector. You must override this method in your subclasses if you want the 
  26104. Inspector to display your fields. Your override must call INHERITED Fields as its 
  26105. last action to ensure that the inherited fields are also displayed. 
  26106.  
  26107.  
  26108.  
  26109. æKY TNoChangesCommand.INoChangesCommand
  26110. æD PROCEDURE TNoChangesCommand.INoChangesCommand(itsCmdNumber: CmdNumber;
  26111.   itsDocument: TDocument; itsView: TView; itsScroller: TScroller);
  26112.  
  26113. æFi UMacApp.p
  26114. æT METHOD 
  26115. æC INoChangesCommand initializes a TNoChangesCommand object and associates it with 
  26116. a command number. The method also sets the fCanUndo and fCausesChange fields to 
  26117. FALSE. The itsCmdNumber parameter specifies which menu command was chosen by 
  26118. the user. The itsDocument parameter is a reference to the document associated 
  26119. with the command object. The itsView parameter is a reference to the view 
  26120. associated with the command object. The itsScroller parameter is a reference to the 
  26121. scroller associated with the command object. If you create a subclass of 
  26122. TNoChangesCommand, you can call INoChangesCommand from the initialization method of 
  26123. that subclass. 
  26124.  
  26125.  
  26126.  
  26127. æKY TNumberText.Fields
  26128. æD PROCEDURE TNumberText.Fields (PROCEDURE DoToField (fieldName: Str255; 
  26129.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  26130. æFi UDialog.p
  26131. æT METHOD 
  26132. æC Fields reports the contents of each field of the TNumberText object to the 
  26133. MacApp Inspector. 
  26134. DoToField is a procedure that MacApp passes to Fields to report the contents of each 
  26135. field. Fields iterates over all the fields of the TNumberText object, performing 
  26136. DoToField on each one. The fieldName parameter is the name of the field. The fieldAddr 
  26137. parameter is the field’s location in memory. The fieldType parameter uses a predefined 
  26138. constant to tell Fields what type of information to look for in a field. 
  26139. MacApp calls Fields from the MacApp Inspector. You must override this method in 
  26140. your subclasses if you want the Inspector to display your fields. Your override must 
  26141. call INHERITED Fields as its last action to ensure that the inherited fields are also 
  26142. displayed. 
  26143.  
  26144.  
  26145.  
  26146. æKY TNumberText.GetValue
  26147. æD FUNCTION TNumberText.GetValue: LONGINT;
  26148. æFi UDialog.p
  26149. æT METHOD 
  26150. æC This method converts the object's string value to the corresponding integer and 
  26151. returns the result. The number text may begin with a plus or minus sign. 
  26152. GetValue is called by TNumberText.WRes to initialize certain fields of a TNumberText 
  26153. object. You can use GetValue to convert a string value to an Integer value. 
  26154.  
  26155.  
  26156.  
  26157. æKY TNumberText.INumberText
  26158. æD PROCEDURE TNumberText.INumberText (itsSuperView: TView; itsLocation, 
  26159.   itsSize: VPoint; itsValue, itsMinimum, itsMaximum: INTEGER);
  26160. æFi UDialog.p
  26161. æT METHOD 
  26162. æC This method initializes a TNumberText text item and installs it in the given 
  26163. superview. The itsSuperView parameter is the view in which the text appears. The 
  26164. itsLocation parameter is the location of the control in view coordinates. The 
  26165. itsSize parameter is the size of the control in pixels. The itsValue parameter is 
  26166. the current value of the number text. The itsMinimum parameter is the minimum 
  26167. allowable value of the number text. The itsMaximum parameter is the maximum 
  26168. allowable value of the number text. 
  26169.  
  26170.  
  26171.  
  26172. æKY TNumberText.IRes
  26173. æD PROCEDURE TNumberText.IRes (itsDocument: TDocument; itsSuperView: TView; 
  26174.   VAR itsParams: Ptr); OVERRIDE;
  26175. æFi UDialog.p
  26176. æT METHOD 
  26177. æC IRes initializes a TNumberText object from a 'view' resource template. The 
  26178. fDefChoice field is set to mEditTextHit. The itsDocument parameter specifies the 
  26179. document associated with the TNumberText object. The itsSuperView parameter 
  26180. specifies the TView object into which the view is to be installed; for a TNumberText 
  26181. object, this is usually a TEditText object. The itsParams parameter is a 
  26182. pointer to the portion of the 'view' resource data used to initialize this view. When 
  26183. the IRes method finishes initializing the view, the method moves the pointer 
  26184. to the end of this data. MacApp calls this method for each of the views created 
  26185. from a 'view' resource template, usually in response to a NewTemplateWindow or 
  26186. a DoCreateViews call. You never need to call IRes yourself. 
  26187.  
  26188.  
  26189.  
  26190. æKY TNumberText.SetValue
  26191. æD PROCEDURE TNumberText.SetValue (newValue: LONGINT; redraw: BOOLEAN);
  26192. æFi UDialog.p
  26193. æT METHOD 
  26194. æC This method sets the text to the given value, redrawing the view if requested. 
  26195. The newValue parameter is the value to be set. If redraw is set to TRUE, the 
  26196. view is redrawn with the new text. If redraw is set to FALSE, then the view is not 
  26197. redrawn even though the new text may affect its appearance. You should set 
  26198. redraw to FALSE only when you know the view will eventually be redrawn and you 
  26199. want to avoid drawing it twice, which makes the screen appear to flicker. 
  26200.  
  26201.  
  26202.  
  26203. æKY TNumberText.Validate
  26204. æD FUNCTION  TNumberText.Validate: BOOLEAN; OVERRIDE;
  26205. æFi UDialog.p
  26206. æT METHOD 
  26207. æC Validate returns TRUE if the number is a valid number within the range fMinimum 
  26208. to fMaximum, inclusive. MacApp does not call this method; it is included for 
  26209. your convenience. You can use Validate to ensure that numbers entered in a 
  26210. TNumberText view fall within the range defined by the values of the fields fMinimum 
  26211. and fMaximum. 
  26212.  
  26213.  
  26214.  
  26215. æKY TNumberText.WRes
  26216. æD PROCEDURE TNumberText.WRes (theResource: ViewRsrcHndl; 
  26217.   VAR itsParams: Ptr); OVERRIDE;
  26218. æFi UDialog.p
  26219. æT METHOD 
  26220. æC WRes writes the TNumberText portion of the view’s resource template to the 
  26221. location specified by the itsParams parameter. The parameter theResource is a handle 
  26222. to the view’s resource template. The parameter itsParams is a pointer to the 
  26223. TNumberText section of the view’s resource template. WRes is the inverse of the 
  26224. IRes method, and is used only by programs that write 'view' resources; for 
  26225. example, ViewEdit uses this method to create new 'view' resources from views that 
  26226. are active on the screen. You rarely need to call this method yourself. You must 
  26227. override this method in your subclasses to create your own 'view' resources. 
  26228. Your override should check the size of the space remaining in the template past 
  26229. the end of the previously-written resource data; if there is not enough space 
  26230. to write your data into the file, your override should call the global routine 
  26231. ExpandPtr, passing as arguments the current values of theResource, itsParams, 
  26232. and the size of your resource data, in bytes. ExpandPtr expands the 'view' 
  26233. resource handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  26234. greater. You need not be concerned about making the 'view' resource handle too 
  26235. big, because MacApp reclaims unused space by returning a new value for itsParams 
  26236. when the WRes method completes. 
  26237.  
  26238.  
  26239.  
  26240. æKY TNumberText.WriteRes
  26241. æD PROCEDURE TNumberText.WriteRes (theResource: ViewRsrcHndl; 
  26242.   VAR itsParams: Ptr); OVERRIDE;
  26243.  
  26244. æFi UDialog.p
  26245. æT METHOD 
  26246. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('nmbr') and 
  26247. class name ('TNumberText') for the ‘view’ resource template, and then calls WRes 
  26248. to actually write the resource. The parameter theResource is a handle to the 
  26249. view’s resource template. The parameter itsParams is a pointer to the parameters 
  26250. MacApp uses to create the new resource. MacApp calls this method to write a 
  26251. TNumberText object as part of a 'view' resource; you can use it in a similar 
  26252. fashion. You can override this method to provide your own unique class name or 
  26253. signature. 
  26254.  
  26255.  
  26256.  
  26257. æKY TObject.Clone
  26258. æD FUNCTION TObject.Clone: TObject;
  26259. æFi UObject.p
  26260. æT METHOD 
  26261. æC Clone returns a copy of the TObject object. MacApp calls Clone from methods that 
  26262. must create copies of objects. You can use this method in a similar fashion. 
  26263.  
  26264.  
  26265.  
  26266. æKY TObject.DynamicFields
  26267. æD PROCEDURE TObject.DynamicFields(PROCEDURE DoToField(fieldName: Str255; 
  26268.   fieldAddr: Ptr; fieldType: integer));
  26269.  
  26270. æFi UObject.p
  26271. æT METHOD 
  26272. æC DynamicFields reports the contents of each of an object’s dynamic areas to the 
  26273. MacApp Inspector. DoToField is a procedure that MacApp passes to DynamicFields 
  26274. to report the contents of each dynamic field. DynamicFields iterates over all 
  26275. the object’s dynamic fields, performing DoToField on each one. In this way, 
  26276. DynamicFields reports the contents of each dynamic field to the Inspector. MacApp 
  26277. calls DynamicFields from the Inspector. You must override this method in your 
  26278. subclasses if you want the Inspector to display your dynamic fields. Your version 
  26279. of the method should call INHERITED DynamicFields so that the inherited dynamic 
  26280. fields will also be displayed. 
  26281.  
  26282.  
  26283.  
  26284. æKY TObject.Fields
  26285. æD PROCEDURE TObject.Fields(PROCEDURE  DoToField(fieldName: Str255; fieldAddr: Ptr; 
  26286.   fieldType: INTEGER)); OVERRIDE;
  26287. æFi UObject.p
  26288. æT METHOD 
  26289. æC Fields reports the contents of each field of the TObject object to the MacApp 
  26290. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  26291. contents of each field. Fields iterates over all the fields of the TObject 
  26292. object, performing DoToField on each one. The fieldName parameter is the name of the 
  26293. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  26294. parameter uses a predefined constant to tell Fields what type of information 
  26295. to look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  26296. override this method in your subclasses if you want the Inspector to display 
  26297. your fields. Your override must call INHERITED Fields as its last action to 
  26298. ensure that the inherited fields are also displayed. 
  26299.  
  26300.  
  26301.  
  26302. æKY TObject.ForAllSubClassesDo
  26303. æD PROCEDURE TObject.ForAllSubClassesDo(PROCEDURE DoToSubClass(theClass: ObjClassID));
  26304. æFi UObject.p
  26305. æT METHOD 
  26306. æC ForAllSubClassesDo iterates over all subclasses of the object’s class in 
  26307. undefined order, performing the specified procedure on each one. DoToSubClass is the 
  26308. procedure that MacApp performs on each subclass. You supply the procedure, 
  26309. defining it yourself and passing a reference to it in the parameter DoToSubClass. 
  26310. The procedure you write must accept one parameter, theClass; MacApp binds each 
  26311. subclass in turn to this parameter and calls the DoToSubClass procedure. MacApp 
  26312. does not call ForAllSubClassesDo. You can use this method to perform some 
  26313. operation once for each subclass of a specified object’s class. 
  26314.  
  26315.  
  26316.  
  26317. æKY TObject.ForAllSuperClassesDo
  26318. æD PROCEDURE TObject.ForAllSuperClassesDo(PROCEDURE
  26319.    DoToSubClass(theClass: ObjClassID));
  26320. æFi UObject.p
  26321. æT METHOD 
  26322. æC ForAllSuperClassesDo iterates over all superclasses of the object’s class, 
  26323. performing the specified procedure on each one. DoToSubClass is the procedure that 
  26324. MacApp performs on each subclass. You supply the procedure, defining it yourself 
  26325. and passing a reference to it in the parameter DoToSubClass. The procedure you 
  26326. write must accept one parameter, theClass; MacApp binds each subclass in turn 
  26327. to this parameter and calls the DoToSubClass procedure. MacApp does not call 
  26328. ForAllSuperClassesDo. You can call this method to perform an operation once for 
  26329. each superclass of a specified object’s class. 
  26330.  
  26331.  
  26332.  
  26333. æKY TObject.Free
  26334. æD PROCEDURE TObject.Free;
  26335. æFi UObject.p
  26336. æT METHOD 
  26337. æC Free releases the memory used by the object. MacApp calls Free from a variety of 
  26338. methods that dispose of objects. You must call Free only when you no longer 
  26339. need access to the TObject object. You can override this method in TObject 
  26340. subclasses to dispose of other objects to which the TObject object contains 
  26341. references. 
  26342.  
  26343.  
  26344.  
  26345. æKY TObject.GetClass
  26346. æD FUNCTION TObject.GetClass: ObjClassID;
  26347. æFi UObject.p
  26348. æT METHOD 
  26349. æC GetClass returns the class identifier of the TObject object. MacApp calls 
  26350. GetClass from a variety of methods whose behavior depends on the class of an object. 
  26351. You can use this method in the same fashion. 
  26352.  
  26353.  
  26354.  
  26355. æKY TObject.GetClassName
  26356. æD PROCEDURE TObject.GetClassName(VAR clName: MAName);
  26357. æFi UObject.p
  26358. æT METHOD 
  26359. æC GetClassName returns a string containing the name of this object’s class. MacApp 
  26360. calls GetClassName from a variety of methods that use the name of a class—for 
  26361. example, the MacApp Inspector uses this method to obtain the name of an 
  26362. object’s class for display in the Inspector window. You can use this method in a 
  26363. similar fashion. 
  26364.  
  26365.  
  26366.  
  26367. æKY TObject.GetClassSize
  26368. æD FUNCTION TObject.GetClassSize: INTEGER;
  26369. æFi UObject.p
  26370. æT METHOD 
  26371. æC GetClassSize returns the minimum size, in bytes, of instances of this class. 
  26372. MacApp calls GetClassSize from TObject.SetInstanceSize. You usually do not need to 
  26373. call this method yourself. 
  26374.  
  26375.  
  26376.  
  26377. æKY TObject.GetDynamicPtr
  26378. æD FUNCTION TObject.GetDynamicPtr: Ptr;
  26379.  
  26380. æFi UObject.p
  26381. æT METHOD 
  26382. æC GetDynamicPtr returns a direct heap pointer to the start of the dynamic area 
  26383. available to objects. It is important that you use this method with caution, 
  26384. because the pointer can be invalidated if the heap is compacted. 
  26385.  
  26386.  
  26387.  
  26388. æKY TObject.GetDynamicSize
  26389. æD FUNCTION TObject.GetDynamicSize: Size;
  26390.  
  26391. æFi UObject.p
  26392. æT METHOD 
  26393. æC GetDynamicSize returns the current size, in bytes, of an instance, including the 
  26394. fixed fields and the dynamic area. 
  26395.  
  26396.  
  26397.  
  26398. æKY TObject.GetInspectorName
  26399. æD PROCEDURE TObject.GetInspectorName(VAR inspectorName: Str255);
  26400. æFi UObject.p
  26401. æT METHOD 
  26402. æC GetInspectorName, when overridden, must return a string containing additional 
  26403. information for display in the Inspector window. The default version is an empty 
  26404. method. The inspectorName parameter must contain a text string when the method 
  26405. returns; presumably, this string contains additional useful information about 
  26406. the object. MacApp uses the various overrides of GetInspectorName to obtain 
  26407. additional information about an object for display in the Inspector. You usually do 
  26408. not need to call this method yourself. 
  26409.  
  26410.  
  26411.  
  26412. æKY TObject.GetInstanceSize
  26413. æD FUNCTION TObject.GetInstanceSize: INTEGER;
  26414. æFi UObject.p
  26415. æT METHOD 
  26416. æC GetInstanceSize returns the size, in bytes, of this object. MacApp calls 
  26417. GetInstanceSize from methods that manipulate memory directly, such as TList methods. 
  26418. A TList object can vary in size, so some TList methods call GetInstanceSize to 
  26419. get the current size of the instance; most objects, however, are of a fixed 
  26420. size. You usually do not need to call this method yourself. 
  26421.  
  26422.  
  26423.  
  26424. æKY TObject.GetSuperClass
  26425. æD FUNCTION GetSuperClass: ObjClassID;
  26426. æFi UObject.p
  26427. æT METHOD 
  26428. æC GetSuperClass returns the class identifier of the TObject object’s superclass. 
  26429. You can use this method if the behavior of one of your methods varies according 
  26430. to the class of an object. 
  26431.  
  26432.  
  26433.  
  26434. æKY TObject.Initialize
  26435. æD PROCEDURE TObject.Initialize;
  26436. æFi UObject.p
  26437. æT METHOD 
  26438. æC This method initializes a newly created instance of the TObject class. In MacApp 
  26439. 2.0, the default version is an empty method; in a future version of MacApp, 
  26440. this method will be overridden for all MacApp subclasses to put the object into a 
  26441. safe state. Eventually, all classes should override Initialize and call 
  26442. INHERITED Initialize. Until all MacApp classes implement this behavior, calling 
  26443. Initialize is appropriate only for immediate descendants of TObject, as is done for 
  26444. the TShape object in the DrawShapes sample program and the TCell object in the 
  26445. Calc sample program. 
  26446.  
  26447.  
  26448.  
  26449. æKY TObject.Inspect
  26450. æD PROCEDURE TObject.Inspect;
  26451. æFi UObject.p
  26452. æT METHOD 
  26453. æC Inspect creates a MacApp Inspector window for examining the contents of the 
  26454. TObject object’s fields. It is provided for use with the MacApp debugger. MacApp 
  26455. calls Inspect from applications compiled with debugging code when you use the I 
  26456. command in the debugger. You usually do not need to call this method yourself. 
  26457.  
  26458.  
  26459.  
  26460. æKY TObject.IObject
  26461. æD PROCEDURE TObject.IObject;
  26462. æFi UObject.p
  26463. æT METHOD 
  26464. æC IObject initializes a newly created TObject object by calling 
  26465. TObject.Initialize; that method puts the object in a safe state. MacApp calls IObject 
  26466. when a new TObject object is created. Your IYourSubclass method should call its 
  26467. ISuperClass method, which will call its ISuperClass method, and so on up the hierarchy 
  26468. until TObject.IObject is called. If you create an immediate subclass of TObject, 
  26469. the IYourClass method should call INHERITED IObject. 
  26470.  
  26471.  
  26472.  
  26473. æKY TObject.IsMemberClass
  26474. æD FUNCTION TObject.IsMemberClass(testClass: ObjClassID): BOOLEAN;
  26475. æFi UObject.p
  26476. æT METHOD 
  26477. æC MacAppIsMemberClass returns the value TRUE if the TObject is an instance of a 
  26478. subclass of the specified class. The testClass parameter is the class identifier 
  26479. that specifies the class in question. MacApp does not call IsMemberClass. You 
  26480. can use this method to determine whether an object’s class is a subclass of a 
  26481. specified class. 
  26482.  
  26483.  
  26484.  
  26485. æKY TObject.IsSameClass
  26486. æD FUNCTION TObject.IsSameClass(testClass: ObjClassID): BOOLEAN;
  26487. æFi UObject.p
  26488. æT METHOD 
  26489. æC IsSameClass returns TRUE if this instance is an instance of the specified class 
  26490. and the specified object belongs to the same class. The testClass parameter is 
  26491. the class identifier that specifies the class in question. MacApp does not call 
  26492. IsSameClass. You can use this method if you need to determine whether an 
  26493. object belongs to a specified class. 
  26494.  
  26495.  
  26496.  
  26497. æKY TObject.Lock
  26498. æD FUNCTION TObject.Lock(lockIt: BOOLEAN): BOOLEAN;
  26499. æFi UObject.p
  26500. æT METHOD 
  26501. æC This method locks or unlocks the object and returns its previous state. A locked 
  26502. object cannot be moved in the heap. If the lockIt parameter is set to TRUE, 
  26503. MacApp locks the object; if the lockIt parameter is set to FALSE, MacApp unlocks 
  26504. the object. MacApp calls Lock from methods that must temporarily prevent an 
  26505. object from moving in memory. You can use this method in a similar fashion. 
  26506.  
  26507.  
  26508.  
  26509. æKY TObject.SetDynamicSize
  26510. æD PROCEDURE TObject.SetDynamicSize(newSize: Size);
  26511. æFi UObject.p
  26512. æT METHOD 
  26513. æC SetDynamicSize sets the size, in bytes, of this instance's dynamic area. The 
  26514. dynamic area is at first unallocated. The size setting applies only to the dynamic 
  26515. area. The newsize parameter specifies the size of the dynamic area. 
  26516.  
  26517.  
  26518.  
  26519. æKY TObject.SetInstanceSize
  26520. æD PROCEDURE TObject.SetInstanceSize(newSize: Size);
  26521.  
  26522. æFi UObject.p
  26523. æT METHOD 
  26524. æC SetInstanceSize sets the size, in bytes, of the memory block that the object 
  26525. occupies. The newSize parameter is the size that MacApp associates with the 
  26526. object. If newSize is smaller than the value returned by TObject.GetClassSize, then 
  26527. this method fails. MacApp calls SetInstanceSize when it creates a new object. 
  26528. You usually do not need to call this method yourself. 
  26529.  
  26530.  
  26531.  
  26532. æKY TObject.ShallowClone
  26533. æD FUNCTION TObject.ShallowClone: TObject;
  26534. æFi UObject.p
  26535. æT METHOD 
  26536. æC ShallowClone returns an exact copy of the object. MacApp calls ShallowClone from 
  26537. TObject.Clone. You usually do not need to call ShallowClone yourself. You can 
  26538. call TObject.Clone to make copies of an object.TObject 
  26539.  
  26540.  
  26541.  
  26542. æKY TObject.ShallowFree
  26543. æD PROCEDURE TObject.ShallowFree;
  26544. æFi UObject.p
  26545. æT METHOD 
  26546. æC ShallowFree frees the instance without deallocating any of the objects to which 
  26547. fields of this instance refer. MacApp calls ShallowFree from TObject.Free. You 
  26548. usually do not need to call this method yourself. You can call TObject.Free if 
  26549. you need to free an object. 
  26550.  
  26551.  
  26552.  
  26553. æKY TObjectList.AddObject
  26554. æD PROCEDURE TObjectList.AddObject(theObject: TObject);
  26555. æFm UInspector.inc1.p
  26556. æT METHOD 
  26557. æC AddObject appends an item to a TObjectList list. The parameter theObject is the 
  26558. item that is added to the list. AddObject is used by TInspector.AddObject and 
  26559. the global routine AddObjectToInspector. This method is internal to the MacApp 
  26560. Inspector; you cannot call it yourself or override it. 
  26561.  
  26562.  
  26563.  
  26564. æKY TObjectList.Fields
  26565. æD PROCEDURE TObjectList.Fields(PROCEDURE DoToField(fieldName: Str255; 
  26566.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  26567. æFm UInspector.inc1.p
  26568. æT METHOD 
  26569. æC Fields reports the contents of each field of the TObjectList object to the 
  26570. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  26571. the contents of each field. Fields iterates over all the fields of the 
  26572. TObjectList object, performing DoToField on each one. The fieldName parameter is the 
  26573. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  26574. fieldType parameter uses a predefined constant to tell Fields what type of 
  26575. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  26576. This method is internal to the MacApp Inspector; you cannot call it yourself or 
  26577. override it. 
  26578.  
  26579.  
  26580.  
  26581. æKY TObjectList.IObjectList
  26582. æD PROCEDURE TObjectList.IObjectList(classId: ObjClassID);
  26583. æFm UInspector.inc1.p
  26584. æT METHOD 
  26585. æC IObjectList initializes a TObjectList object and sets its object class ID. The 
  26586. classId parameter is the object class ID of the objects that the list will 
  26587. store. IObjectList is used internally by TInspector.AddObjectList; you cannot call 
  26588. it yourself or override it. 
  26589.  
  26590.  
  26591.  
  26592. æKY TObjectList.RemoveObject
  26593. æD PROCEDURE TObjectList.RemoveObject(theObject: TObject);
  26594. æFm UInspector.inc1.p
  26595. æT METHOD 
  26596. æC RemoveObject removes an item from a TObjectList list. The parameter theObject is 
  26597. the item to be removed from the list. RemoveObject is called by 
  26598. TInspector.RemoveObject and the global routine RemoveObjectFromInspector. This method 
  26599. is internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26600.  
  26601. æKY John
  26602. æD 
  26603. æT METHOD 
  26604. æC Greetings, MacApp Hackers, from the authors of this reference!
  26605.  
  26606. æKY Bill
  26607. æD 
  26608. æT METHOD 
  26609. æC Greetings, MacApp Hackers, from the authors of this reference!
  26610.  
  26611. æKY Mikel
  26612. æD 
  26613. æT METHOD 
  26614. æC Greetings, MacApp Hackers, from the authors of this reference!
  26615.  
  26616.  
  26617.  
  26618. æKY TObjectView.ChangeSelection
  26619. æD PROCEDURE TObjectView.ChangeSelection(index: INTEGER; highlight: BOOLEAN); OVERRIDE;
  26620. æFm UInspector.inc1.p
  26621. æT METHOD 
  26622. æC ChangeSelection selects a specified field in the Inspector window referenced by 
  26623. fInspectWindow. The index parameter specifies the position in the list occupied 
  26624. by the object to be selected. Items are numbered from the beginning of the 
  26625. list, starting with 1. The highlight parameter is not used; it is included to keep 
  26626. this method's declaration line consistent with its inherited method. This 
  26627. method is internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26628.  
  26629.  
  26630.  
  26631. æKY TObjectView.DoMouseCommand
  26632. æD FUNCTION TObjectView.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  26633.   VAR hysteresis: Point): TCommand; OVERRIDE;
  26634. æFm UInspector.inc1.p
  26635. æT METHOD 
  26636. æC DoMouseCommand creates a new Inspector window that has the current selection 
  26637. highlighted; it returns NIL if the user presses the Option key while clicking on 
  26638. an item in an Inspector window. If the Option key is not pressed, this method 
  26639. simply calls INHERITED DoMouseCommand. The parameter theMouse is the mouse 
  26640. pointer’s current location, described in view coordinates. The info parameter is the 
  26641. event record of the mouse-down event that caused DoMouseCommand to be called. 
  26642. The hysteresis parameter is a point that represents the horizontal and vertical 
  26643. distance the mouse can travel between clicks and still be considered to be at 
  26644. the same location. MacApp uses this parameter to determine whether a double 
  26645. click has occurred or if a control has moved. DoMouseCommand is called by 
  26646. TView.HandleMouseDown when the user clicks on the content view of an Inspector window. 
  26647. This method is internal to the Inspector; you cannot call it yourself or 
  26648. override it. 
  26649.  
  26650.  
  26651.  
  26652. æKY TObjectView.Draw
  26653. æD PROCEDURE TObjectView.Draw(area: Rect); OVERRIDE;
  26654. æFm UInspector.inc1.p
  26655. æT METHOD 
  26656. æC This method draws an object’s name and type in a TObjectView list view, 
  26657. truncating the string if necessary. The area parameter is a QuickDraw rectangle, 
  26658. described in local coordinates, that defines part of the view that needs to be 
  26659. redrawn. You can use this parameter to optimize drawing speed. MacApp calls this 
  26660. method in response to an update event occurring in an Inspector window’s object 
  26661. list subview. This method is internal to the MacApp Inspector; you cannot call it 
  26662. yourself or override it. 
  26663.  
  26664.  
  26665.  
  26666. æKY TObjectView.Fields
  26667. æD PROCEDURE TObjectView.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  26668.   fieldType: INTEGER)); OVERRIDE;
  26669. æFm UInspector.inc1.p
  26670. æT METHOD 
  26671. æC Fields reports the contents of each field of the TObjectView object to the 
  26672. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  26673. the contents of each field. Fields iterates over all the fields of the 
  26674. TObjectView object, performing DoToField on each one. The fieldName parameter is the 
  26675. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  26676. fieldType parameter uses a predefined constant to tell Fields what type of 
  26677. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  26678. This method is internal to the Inspector; you cannot call it yourself or 
  26679. override it. 
  26680.  
  26681.  
  26682.  
  26683. æKY TObjectView.FirstFieldThat
  26684. æD PROCEDURE TObjectView.FirstFieldThat(FUNCTION  TestField(fieldName: StringPtr; 
  26685.   fieldAddr: Ptr; fieldType: INTEGER): BOOLEAN); 
  26686.  
  26687. æFm UInspector.inc1.p
  26688. æT METHOD 
  26689. æC FirstFieldThat calls TestField for all of the fields of the current TObjectView 
  26690. object. The MacApp Inspector calls this method when manipulating field data for 
  26691. display in the Inspector window. This method is internal to the MacApp 
  26692. Inspector; you cannot call it yourself or override it. 
  26693.  
  26694.  
  26695.  
  26696. æKY TObjectView.InspectControlHandle
  26697. æD PROCEDURE TObjectView.InspectControlHandle
  26698.   (PROCEDURE InspectField(fieldName: Str255; fieldAddr: Ptr; fieldType: INTEGER));
  26699. æFm UInspector.inc1.p
  26700. æT METHOD 
  26701. æC InspectControlHandle displays a Control Manager control record in the Inspector 
  26702. window. InspectField is a procedure that MacApp passes to InspectControlHandle. 
  26703. It determines how the fields of the control record will appear in the 
  26704. Inspector window. The fieldName parameter is the name of the field. The fieldAddr 
  26705. parameter is the field's location in memory. The fieldType parameter uses a 
  26706. predefined constant to specify the type of information that is displayed in a field. 
  26707. InspectControlHandle is called by TObjectView.EachFieldDo when the Inspector 
  26708. displays information about an object that represents a Control Manager control; 
  26709. these objects are instances of TCtlMgr and its subclasses. This method is internal 
  26710. to the MacApp Inspector; you cannot call it yourself or override it. 
  26711.  
  26712.  
  26713.  
  26714. æKY TObjectView.InspectGrafPtr
  26715. æD PROCEDURE TObjectView.InspectGrafPtr(PROCEDURE InspectField(fieldName: Str255; 
  26716.   fieldAddr: Ptr; fieldType: INTEGER));
  26717. æFm UInspector.inc1.p
  26718. æT METHOD 
  26719. æC InspectGrafPtr displays a QuickDraw grafPtr in the Inspector window. 
  26720. InspectField is a procedure passed to InspectGrafPtr by MacApp. It determines how the 
  26721. fields of the grafPtr’s associated grafPort will appear in the Inspector window. 
  26722. The fieldName parameter is the name of the field. The fieldAddr parameter is the 
  26723. field's location in memory. The fieldType parameter uses a predefined constant 
  26724. to specify the type of information that is displayed in a field. InspectGrafPtr 
  26725. is called by TObjectView.EachFieldDo and TObjectView.InspectWindowPtr when the 
  26726. Inspector displays information about a QuickDraw grafPtr. This method is 
  26727. internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26728.  
  26729.  
  26730.  
  26731. æKY TObjectView.InspectHandle
  26732. æD PROCEDURE TObjectView.InspectHandle(PROCEDURE InspectField(fieldName: StringPtr;
  26733.   fieldAddr: Ptr; fieldType: INTEGER));
  26734.  
  26735. æFm UInspector.inc1.p
  26736. æT METHOD 
  26737. æC InspectHandle displays the contents of a specified handle in the Inspector 
  26738. window. InspectField is a procedure that MacApp passes to InspectHandle. It 
  26739. determines how the contents of the handle will appear in the Inspector window. The 
  26740. fieldName parameter is the name of the field. The fieldAddr parameter is the 
  26741. field's location in memory. The fieldType parameter uses a predefined constant to 
  26742. specify the type of information that is displayed in a field. InspectHandle is 
  26743. called when the Inspector displays the fields of the record associated with a 
  26744. handle. This method is internal to the MacApp Inspector; you cannot call it 
  26745. yourself or override it. 
  26746.  
  26747.  
  26748.  
  26749. æKY TObjectView.InspectRgnHandle
  26750. æD PROCEDURE TObjectView.InspectRgnHandle(PROCEDURE InspectField(fieldName: Str255; 
  26751.   fieldAddr: Ptr; fieldType: INTEGER));
  26752. æFm UInspector.inc1.p
  26753. æT METHOD 
  26754. æC InspectRgnHandle displays a QuickDraw region in the Inspector window. 
  26755. InspectField is a procedure passed to InspectRgnHandle by MacApp. It determines how 
  26756. the fields of the region associated with the handle will appear in the Inspector 
  26757. window. The fieldName parameter is the name of the field. The fieldAddr parameter 
  26758. is the field's location in memory. The fieldType parameter uses a predefined 
  26759. constant to specify the type of information that is displayed in a field. 
  26760. InspectRgnHandle is called by TObjectView.EachFieldDo when the Inspector displays 
  26761. information about a QuickDraw region. This method is internal to the MacApp 
  26762. Inspector; you cannot call it yourself or override it. 
  26763.  
  26764.  
  26765.  
  26766. æKY TObjectView.InspectTEHandle
  26767. æD PROCEDURE TObjectView.InspectTEHandle(PROCEDURE InspectField(fieldName: Str255; 
  26768.   fieldAddr: Ptr; fieldType: INTEGER));
  26769. æFm UInspector.inc1.p
  26770. æT METHOD 
  26771. æC InspectTEHandle displays a TextEdit record in the Inspector window. InspectField 
  26772. is a procedure passed to InspectTEHandle by MacApp. It determines how the 
  26773. fields of the record associated with the handle will appear in the Inspector 
  26774. window. The fieldName parameter is the name of the field. The fieldAddr parameter is 
  26775. the field's location in memory. The fieldType parameter uses a predefined 
  26776. constant to specify the type of information that is displayed in a field. 
  26777. InspectTEHandle is called by TObjectView.EachFieldDo when the Inspector displays a 
  26778. TextEdit record. This method is internal to the MacApp Inspector; you cannot call it 
  26779. yourself or override it. 
  26780.  
  26781.  
  26782.  
  26783. æKY TObjectView.InspectWindowPtr
  26784. æD PROCEDURE TObjectView.InspectWindowPtr(PROCEDURE InspectField(fieldName: Str255; 
  26785.   fieldAddr: Ptr; fieldType: INTEGER));
  26786. æFm UInspector.inc1.p
  26787. æT METHOD 
  26788. æC InspectWindowPtr displays a Window Manager window record in the Inspector 
  26789. window. InspectField is a procedure passed to InspectWindowPtr by MacApp. It 
  26790. determines how the fields of the record associated with the pointer will appear in the 
  26791. Inspector window. The fieldName parameter is the name of the field. The fieldAddr 
  26792. parameter is the field's location in memory. The fieldType parameter uses a 
  26793. predefined constant to specify the type of information that is displayed in a 
  26794. field. InspectWindowPtr is called by TObjectView.EachFieldDo when the Inspector 
  26795. displays information about a Window Manager window record. This method is 
  26796. internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26797.  
  26798.  
  26799.  
  26800. æKY TObjectView.InstallObject
  26801. æD PROCEDURE TObjectView.InstallObject(theObject: TObject; theObjectType: INTEGER);
  26802. æFm UInspector.inc1.p
  26803. æT METHOD 
  26804. æC InstallObject installs the specified object in the view. The parameter theObject 
  26805. specifies the new object to be installed. The parameter theObjectType 
  26806. specifies the type of the object. MacApp predefines certain constants that serve as 
  26807. object type identifiers in the file UObject.p. MacApp calls InstallObject when the 
  26808. user selects a particular object from the list of active objects in the 
  26809. Inspector window.This method is internal to the MacApp Inspector; you cannot call it 
  26810. yourself or override it. 
  26811.  
  26812.  
  26813.  
  26814. æKY TObjectView.IObjectView
  26815. æD PROCEDURE TObjectView.IObjectView(itsWindow: TInspectWindow; itsLocation: VPoint; 
  26816.   itsSize: VPoint);
  26817. æFm UInspector.inc1.p
  26818. æT METHOD 
  26819. æC IObjectView initializes the fields of the TObjectView object. The itsWindow 
  26820. parameter specifies the window in which the TObjectView object will appear. The 
  26821. itsLocation parameter specifies the upper-left corner of the view in the window’s 
  26822. local coordinates. The itsSize parameter is the size, in pixels, of the 
  26823. TObjectView object, represented as a point in the window’s local coordinates. 
  26824. IObjectView is called by TInspectWindow.IInspectWindow when it creates a new Inspector 
  26825. window. This method is internal to the MacApp Inspector; you cannot call it 
  26826. yourself or override it. 
  26827.  
  26828.  
  26829.  
  26830. æKY TObjectView.IRes
  26831. æD PROCEDURE TObjectView.IRes(itsDocument: TDocument; itsSuperView: TView;
  26832.   VAR itsParams: Ptr); OVERRIDE;
  26833. æFm UInspector.inc1.p
  26834. æT METHOD 
  26835. æC IRes initializes a TObjectView object from a 'view' resource template. The 
  26836. itsDocument parameter specifies the document associated with the TObjectView object. 
  26837. The itsSuperView parameter specifies the superview in which this view is to be 
  26838. installed. The itsParams parameter is a pointer to the portion of the 'view' 
  26839. resource data used to initialize this view. When the IRes method finishes 
  26840. initializing the view, the method moves the pointer to the end of this data. MacApp 
  26841. calls this method for each of the views created from a 'view' resource template, 
  26842. usually in response to a NewTemplateWindow or a DoCreateViews call. This 
  26843. method is internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26844.  
  26845.  
  26846.  
  26847. æKY TObjectView.LockObject
  26848. æD PROCEDURE TObjectView.LockObject;
  26849. æFm UInspector.inc1.p
  26850. æT METHOD 
  26851. æC LockObject locks an active object so that it cannot be moved. MacApp uses 
  26852. LockObject to protect objects that it is inspecting; methods that call LockObject are 
  26853. TObjectView.Draw, TObjectView.InstallObject, and TObjectView.SelectField. This 
  26854. method is internal to the MacApp Inspector; you cannot call it yourself or 
  26855. override it. 
  26856.  
  26857.  
  26858.  
  26859. æKY TObjectView.Resize
  26860. æD PROCEDURE TObjectView.Resize(width, height: VCoordinate;  invalidate: BOOLEAN); 
  26861. OVERRIDE; 
  26862. æFm UInspector.inc1.p
  26863. æT METHOD 
  26864. æC Resize forces the view to redraw itself if the invalidate parameter is TRUE and 
  26865. either of the width or height parameters has changed. The method then calls 
  26866. INHERITED Resize. The width parameter is the view’s new horizontal dimension, 
  26867. expressed in view coordinates. The height parameter is the view’s new vertical 
  26868. dimension, expressed in view coordinates. If you set the value of the invalidate 
  26869. parameter to TRUE, the view is invalidated, forcing it to be redrawn in the 
  26870. update process. When you know the view will be redrawn eventually and wish to avoid 
  26871. drawing it twice—which makes the screen appear to flash—you can set the 
  26872. invalidate parameter to FALSE. MacApp calls Resize from methods that create or resize 
  26873. Inspector windows. This method is internal to the Inspector; you cannot call it 
  26874. yourself or override it. 
  26875.  
  26876.  
  26877.  
  26878. æKY TObjectView.SelectField
  26879. æD PROCEDURE TObjectView.SelectField(index: INTEGER; inspectWindow: TInspectWindow);
  26880. æFm UInspector.inc1.p
  26881. æT METHOD 
  26882. æC SelectField displays the contents of the specified field of the currently 
  26883. selected object in the Inspector window. The index parameter specifies which field is 
  26884. to be displayed. Fields are numbered from the beginning of the list in the 
  26885. MacApp Inspector window, starting with 1. The inspectWindow parameter is the 
  26886. TWindow object in which the Inspector displays the field. MacApp calls SelectField 
  26887. when the user selects a field in the Inspector’s window. This method is internal 
  26888. to the MacApp Inspector; you cannot call it yourself or override it. 
  26889.  
  26890.  
  26891.  
  26892. æKY TObjectView.SuperViewChangedSize
  26893. æD PROCEDURE TObjectView.SuperViewChangedSize(delta: VPoint;  
  26894.   invalidate: BOOLEAN); OVERRIDE; 
  26895. æFm UInspector.inc1.p
  26896. æT METHOD 
  26897. æC SuperViewChangedSize forces a redraw of the view if the value of the invalidate 
  26898. parameter is TRUE, and then calls INHERITED SuperViewChangedSize. The delta 
  26899. parameter specifies the amount by which the view changed size, expressed as a view 
  26900. point. If you set the invalidate parameter to TRUE, the view is redrawn 
  26901. immediately; if you set invalidate to FALSE, the view is not redrawn immediately, 
  26902. even though the new values may affect its appearance. When you know the view will 
  26903. be redrawn eventually and wish to avoid drawing it twice - which makes the 
  26904. screen appear to flash - you can set the invalidate parameter to FALSE. MacApp 
  26905. calls this method when resizing the views in an Inspector window. This method is 
  26906. internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26907.  
  26908.  
  26909.  
  26910. æKY TObjectView.UnlockObject
  26911. æD PROCEDURE TObjectView.UnlockObject;
  26912. æFm UInspector.inc1.p
  26913. æT METHOD 
  26914. æC UnlockObject unlocks an object that has been locked by TObjectView.LockObject, 
  26915. allowing it to be moved. MacApp calls UnlockObject when the Inspector is 
  26916. finished inspecting an object. This method is internal to the MacApp Inspector; you 
  26917. cannot call it yourself or override it. 
  26918.  
  26919. æKY SwenskaFlicka
  26920. æD 
  26921. æT METHOD 
  26922. æC Hi honey!!   XOXOX
  26923.  
  26924.  
  26925. æKY TObjListView.DrawItem
  26926. æD PROCEDURE TObjListView.DrawItem(itemNumber: INTEGER; basePoint: Point); OVERRIDE;
  26927. æFm UInspector.inc1.p
  26928. æT METHOD 
  26929. æC DrawItem draws an item occupying a specific position in a TObjListView list. The 
  26930. itemNumber parameter specifies the position in the list occupied by the item 
  26931. to be drawn. The basePoint parameter is the pen’s starting position, expressed 
  26932. in global coordinates. DrawItem is called by the MacApp Inspector once for each 
  26933. item in a TObjListView list when it is drawing that list. This method is 
  26934. internal to the Inspector; you cannot call it yourself or override it. 
  26935.  
  26936.  
  26937.  
  26938. æKY TObjListView.Fields
  26939. æD PROCEDURE TObjListView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  26940.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  26941. æFm UInspector.inc1.p
  26942. æT METHOD 
  26943. æC Fields reports the contents of each field of the TObjListView object to the 
  26944. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  26945. the contents of each field. Fields iterates over all the fields of the 
  26946. TObjListView object, performing DoToField on each one. The fieldName parameter is the 
  26947. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  26948. fieldType parameter uses a predefined constant to tell Fields what type of 
  26949. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  26950. This method is internal to the MacApp Inspector; you cannot call it yourself 
  26951. or override it. 
  26952.  
  26953.  
  26954.  
  26955. æKY TObjListView.InstallObjectList
  26956. æD PROCEDURE TObjListView.InstallObjectList(theObjectList: TObjectList);
  26957. æFm UInspector.inc1.p
  26958. æT METHOD 
  26959. æC This method installs a TObjListView list in a view, selects and highlights the 
  26960. first item in the list, sets the size of the list, and then redraws it, making 
  26961. sure the selection is visible. The parameter theObjectList is the TObjectList 
  26962. list to be installed in the view. MacApp calls InstallObjectList to install a 
  26963. TObjListView object in an Inspector window. This method is internal to the MacApp 
  26964. Inspector; you cannot call it yourself or override it. 
  26965.  
  26966.  
  26967.  
  26968. æKY TObjListView.IObjListView
  26969. æD PROCEDURE TObjListView.IObjListView(itsWindow: TInspectWindow; 
  26970.   itsLocation: VPoint; itsSize: VPoint);
  26971. æFm UInspector.inc1.p
  26972. æT METHOD 
  26973. æC IObjListView initializes a scrolling TObjListView list that contains no items 
  26974. and installs it in a window. The itsWindow parameter is the Inspector window in 
  26975. which the class list is displayed. The itsLocation parameter is the location of 
  26976. the list expressed in the window's local view coordinates. The itsSize 
  26977. parameter is the size of the list expressed in pixels. IObjListView is called by 
  26978. TInspectWindow.IInspectWindow when initializing a new Inspector window. This method 
  26979. is internal to the MacApp Inspector; you cannot call it yourself or override it. 
  26980.  
  26981.  
  26982.  
  26983.  
  26984. æKY TObjListView.IRes
  26985. æD PROCEDURE TObjListView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  26986.   VAR itsParams: Ptr); OVERRIDE;
  26987. æFm UInspector.inc1.p
  26988. æT METHOD 
  26989. æC IRes initializes a TObjListView object from a 'view' resource template. The 
  26990. itsDocument parameter specifies the document associated with the TObjListView 
  26991. object. The itsSuperView parameter specifies the superview in which this view is to 
  26992. be installed. The itsParams parameter is a pointer to the portion of the 'view' 
  26993. resource data used to initialize this view. When the IRes method finishes 
  26994. initializing the view, the method moves the pointer to the end of this data. MacApp 
  26995. calls this method for each of the views created from a 'view' resource 
  26996. template, usually in response to a NewTemplateWindow or a DoCreateViews call. This 
  26997. method is internal to the MacApp Inspector; you cannot call it yourself or 
  26998. override it. 
  26999.  
  27000.  
  27001.  
  27002. æKY TObjListView.SelectItem
  27003. æD PROCEDURE TObjListView.SelectItem(itemNumber: INTEGER); OVERRIDE;
  27004. æFm UInspector.inc1.p
  27005. æT METHOD 
  27006. æC SelectItem selects a specified TObjListView element and then calls INHERITED 
  27007. SelectItem. INHERITED SelectItem is empty; when overridden, it can do something to 
  27008. the new selection. The itemNumber parameter is the selected item’s position in 
  27009. the TObjListView list. Items in a TObjListView list are numbered consecutively 
  27010. from the beginning of the list, starting with 1. This method is internal to 
  27011. the Inspector; you cannot call it yourself or override it. 
  27012.  
  27013.  
  27014.  
  27015. æKY TOldDocCommand.DoIt
  27016. æD PROCEDURE TOldDocCommand.DoIt; OVERRIDE;
  27017.  
  27018. æFi UMacApp.p
  27019. æT METHOD 
  27020. æC DoIt presents the user with a Standard File dialog box and then opens the 
  27021. document selected by the user. MacApp calls this method when the user chooses the 
  27022. Open item from the application's File menu. You never need to call the DoIt method 
  27023. yourself. 
  27024.  
  27025.  
  27026.  
  27027. æKY TOldDocCommand.Fields
  27028. æD PROCEDURE TOldDocCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  27029.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  27030.  
  27031. æFi UMacApp.p
  27032. æT METHOD 
  27033. æC Fields reports the contents of each field of the TOldDocCommand object to the 
  27034. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  27035. the contents of each field. Fields iterates over all the fields of the 
  27036. TOldDocCommand object, performing DoToField on each one. The fieldName parameter is 
  27037. the name of the field. The fieldAddr parameter is the field’s location in memory. 
  27038. The fieldType parameter uses a predefined constant to tell Fields what type of 
  27039. information to look for in a field. MacApp calls Fields from the MacApp 
  27040. Inspector. You must override this method in your subclasses if you want the Inspector 
  27041. to display your fields. Your override must call INHERITED Fields as its last 
  27042. action to ensure that the inherited fields are also displayed. 
  27043.  
  27044.  
  27045.  
  27046. æKY TOldDocCommand.IOldDocCommand
  27047. æD PROCEDURE TOldDocCommand.IOldDocCommand(itsCmdNumber: CmdNumber);
  27048. æFi UMacApp.p
  27049. æT METHOD 
  27050. æC IOldDocCommand initializes a TOldDocCommand object and associates it with a 
  27051. command number. The itsCmdNumber parameter is the command number that is associated 
  27052. with a particular menu command—in this case, the Open command in the 
  27053. application's File menu. The command number is used in the 'cmnu' resource in the 
  27054. resource description file; you typically define a constant to represent that number 
  27055. in both the resource description file and in the appropriate interface or 
  27056. implementation file of the application. MacApp calls this method when the user 
  27057. chooses the Open item from the File menu. You never need to call IOldDocCommand 
  27058. yourself. 
  27059.  
  27060.  
  27061.  
  27062. æKY TPattern.Draw
  27063. æD PROCEDURE TPattern.Draw(area: Rect); OVERRIDE;
  27064. æFi UDialog.p
  27065. æT METHOD 
  27066. æC This method draws a fill pattern and then calls INHERITED Draw to draw the rest 
  27067. of the control. The area parameter is a QuickDraw rectangle, described in local 
  27068. coordinates, that defines part of the control that needs to be redrawn. You 
  27069. can use this parameter to optimize drawing speed. MacApp does not call this 
  27070. method; it is provided for your convenience. You can call this method to fill a 
  27071. specified rectangle with the pattern of your choice. 
  27072.  
  27073.  
  27074.  
  27075. æKY TPattern.Fields
  27076. æD PROCEDURE TPattern.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  27077.   fieldType: INTEGER)); OVERRIDE;
  27078. æFi UDialog.p
  27079. æT METHOD 
  27080. æC Fields reports the contents of each field of the TPattern object to the MacApp 
  27081. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  27082. contents of each field. Fields iterates over all the fields of the TPattern 
  27083. object, performing DoToField on each one. The fieldName parameter is the name of 
  27084. the field. The fieldAddr parameter is the field’s location in memory. The 
  27085. fieldType parameter uses a predefined constant to tell Fields what type of information 
  27086. to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  27087. must override this method in your subclasses if you want the Inspector to display 
  27088. your fields. Your override must call INHERITED Fields as its last action to 
  27089. ensure that the inherited fields are also displayed. 
  27090.  
  27091.  
  27092.  
  27093. æKY TPattern.Free
  27094. æD PROCEDURE TPattern.Free; OVERRIDE;
  27095. æFi UDialog.p
  27096. æT METHOD 
  27097. æC Free releases the memory used by the TPattern fill pattern and then calls 
  27098. INHERITED Free to release the memory used by dependent structures. MacApp calls Free 
  27099. in the normal process of freeing TView objects; for example, if the pattern is 
  27100. a subview of a dialog box, the dialog view will free the pattern for you when 
  27101. the dialog box is closed. You must call this method if you allocated and managed 
  27102. the pattern object yourself. 
  27103.  
  27104.  
  27105.  
  27106. æKY TPattern.IPattern
  27107. æD PROCEDURE TPattern.IPattern(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  27108.   itsHSizeDet,itsVSizeDet: SizeDeterminer; itsRsrcID: INTEGER; preferColor: BOOLEAN);
  27109. æFi UDialog.p
  27110. æT METHOD 
  27111. æC This method initializes a TPattern item and installs it in the given superview. 
  27112. The fDefChoice field is set to mPatternHit. The itsSuperView parameter is the 
  27113. view in which the pattern appears. The itsLocation parameter is the pattern's 
  27114. location, in view coordinates. The itsSize parameter is the pattern's size, in 
  27115. pixels. The itsHSizeDet and itsVSizeDet parameters determine how the view's 
  27116. horizontal and vertical dimensions are calculated, respectively. Possible values 
  27117. are: sizeSuperView (subview is the same size as superview), sizeRelSuperView 
  27118. (subview size changes an equal amount relative to the superview's size), sizePage 
  27119. (view is made the size of one page), sizeFillPages (view grows to fill an exact 
  27120. number of pages), sizeVariable (view size fluctuates according to 
  27121. application-specific criteria), or sizeFixed (no special handling of size issues). The 
  27122. itsRsrcID parameter is the integer that MacApp uses to refer to the view's resource. 
  27123. Set preferColor to TRUE if you want MacApp to create the pattern using a 'ppat' 
  27124. resource; otherwise, MacApp uses a 'PAT ' resource. You can call this method 
  27125. to initialize a TPattern object. 
  27126.  
  27127.  
  27128.  
  27129. æKY TPattern.IRes
  27130. æD PROCEDURE TPattern.IRes(itsDocument: TDocument; itsSuperView: TView; 
  27131.   VAR itsParams: Ptr); OVERRIDE;
  27132. æFi UDialog.p
  27133. æT METHOD 
  27134. æC IRes initializes a TPattern object from a 'view' resource template. The 
  27135. fDefChoice field is set to mPatternHit. The itsDocument parameter specifies the 
  27136. document associated with the control for which this pattern is being created. The 
  27137. itsSuperView parameter specifies the view in which this pattern appears. The 
  27138. itsParams parameter is a pointer to the portion of the 'view' resource data used to 
  27139. initialize this view. When the IRes method finishes initializing the view, the 
  27140. method moves the pointer to the end of this data. MacApp calls this method for 
  27141. each of the views created from a 'view' resource template, usually in response 
  27142. to a NewTemplateWindow or a DoCreateViews call. You never need to call IRes 
  27143. yourself. 
  27144.  
  27145.  
  27146.  
  27147. æKY TPattern.ReleasePattern
  27148. æD PROCEDURE TPattern.ReleasePattern;
  27149. æFi UDialog.p
  27150. æT METHOD 
  27151. æC This method releases memory used by a TPattern resource. ReleasePattern is 
  27152. called byTPattern.SetPattern before creating a new pattern. It is also called by 
  27153. TPattern.Free. You probably will not need to call this method. 
  27154.  
  27155.  
  27156.  
  27157. æKY TPattern.SetPattern
  27158. æD PROCEDURE TPattern.SetPattern(thePattern: Handle; redraw: BOOLEAN);
  27159. æFi UDialog.p
  27160. æT METHOD 
  27161. æC SetPattern sets a control's pattern to that specified. This handle is stored in 
  27162. the fDataHandle field. The parameter thePattern is a handle to the pattern 
  27163. resource designated as the control's fill pattern. When the value of the redraw 
  27164. parameter is TRUE, the control is redrawn. When you set the value of redraw to 
  27165. FALSE, the control is not redrawn even though its appearance may be affected by 
  27166. the change. You can set redraw to FALSE when you know the control will be redrawn 
  27167. eventually and you wish to avoid drawing it twice, which makes the screen 
  27168. appear to flicker. You can call this method when you want to change the displayed 
  27169. pattern. 
  27170.  
  27171.  
  27172.  
  27173. æKY TPattern.WRes
  27174. æD PROCEDURE TPattern.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  27175. æFi UDialog.p
  27176. æT METHOD 
  27177. æC WRes writes the TPattern portion of the view’s resource template to the location 
  27178. specified by the itsParams parameter. The parameter theResource is a handle to 
  27179. the view’s resource template. The parameter itsParams is a pointer to the 
  27180. TPattern section of the view’s resource template. WRes is the inverse of the IRes 
  27181. method, and is used only by programs that write 'view' resources; for example, 
  27182. ViewEdit uses this method to create new 'view' resources from views that are 
  27183. active on the screen. You rarely need to call this method yourself. You must 
  27184. override this method in your subclasses to create your own 'view' resources. Your 
  27185. override should check the size of the space remaining in the template past the 
  27186. end of the previously-written resource data; if there is not enough space to 
  27187. write your data into the file, your override should call the global routine 
  27188. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  27189. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  27190. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  27191. You need not be concerned about making the 'view' resource handle too big, 
  27192. because MacApp reclaims unused space by returning a new value for itsParams when 
  27193. the WRes method completes. 
  27194.  
  27195.  
  27196.  
  27197. æKY TPattern.WriteRes
  27198. æD PROCEDURE TPattern.WriteRes(theResource: ViewRsrcHndl; 
  27199.   VAR itsParams: Ptr); OVERRIDE;
  27200. æFi UDialog.p
  27201. æT METHOD 
  27202. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('patn') and 
  27203. class name ('TPattern') for the ‘view’ resource template, and then calls WRes to 
  27204. actually write the resource. The parameter theResource is a handle to the 
  27205. view’s resource template. The parameter itsParams is a pointer to the parameters 
  27206. MacApp uses to create the new resource. MacApp calls this method to write a 
  27207. TPattern object as part of a 'view' resource; you can use it in a similar fashion. 
  27208. You can override this method to provide your own unique class name or signature. 
  27209.  
  27210.  
  27211.  
  27212.  
  27213. æKY TPicture.Draw
  27214. æD PROCEDURE TPicture.Draw(area: Rect); OVERRIDE;
  27215. æFi UDialog.p
  27216. æT METHOD 
  27217. æC This method draws to scale the picture specified by the object’s fDataHandle 
  27218. field. It then calls INHERITED Draw to finish drawing the rest of the control. The 
  27219. area parameter is a QuickDraw rectangle, described in local coordinates, that 
  27220. defines part of the control that needs to be redrawn. You can use this 
  27221. parameter to optimize drawing speed. MacApp calls this method in response to an update 
  27222. event occurring in the TPicture view. You usually do not need to call this 
  27223. method yourself. 
  27224.  
  27225.  
  27226.  
  27227. æKY TPicture.Fields
  27228. æD PROCEDURE TPicture.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  27229.   fieldType: INTEGER)); OVERRIDE;
  27230. æFi UDialog.p
  27231. æT METHOD 
  27232. æC Fields reports the contents of each field of the TPicture object to the MacApp 
  27233. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  27234. contents of each field. Fields iterates over all the fields of the TPicture 
  27235. object, performing DoToField on each one. The fieldName parameter is the name of 
  27236. the field. The fieldAddr parameter is the field’s location in memory. The 
  27237. fieldType parameter uses a predefined constant to tell Fields what type of information 
  27238. to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  27239. must override this method in your subclasses if you want the Inspector to display 
  27240. your fields. Your override must call INHERITED Fields as its last action to 
  27241. ensure that the inherited fields are also displayed. 
  27242.  
  27243.  
  27244.  
  27245. æKY TPicture.Free
  27246. æD PROCEDURE TPicture.Free; OVERRIDE;
  27247. æFi UDialog.p
  27248. æT METHOD 
  27249. æC Free releases the memory used by the TPicture object and then calls INHERITED 
  27250. Free to release memory used by dependent structures. Free is called by 
  27251. TPicture.IPicture when the initalization fails. In this case, the old TPicture object 
  27252. is freed before a new one is created. Similarly, TPicture.IRes frees the old 
  27253. resource when the initialization fails. You can use the Free method in a similar 
  27254. fashion. 
  27255.  
  27256.  
  27257.  
  27258. æKY TPicture.IPicture
  27259. æD PROCEDURE TPicture.IPicture(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  27260.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsRsrcID: INTEGER);
  27261. æFi UDialog.p
  27262. æT METHOD 
  27263. æC IPicture creates a TPicture object and installs it in the given superview. The 
  27264. fDefChoice field is set to mPictureHit. The itsSuperView parameter is the view 
  27265. in which the picture appears. The itsLocation parameter is the picture's 
  27266. location, in view coordinates. The itsSize parameter is the picture's size in pixels. 
  27267. The itsHSizeDet and itsVSizeDet parameters determine how the view's horizontal 
  27268. and vertical dimensions are calculated, respectively. Possible values are: 
  27269. sizeSuperView (subview is the same size as superview), sizeRelSuperView (subview 
  27270. size changes an equal amount relative to the superview's size), sizePage (view is 
  27271. made the size of one page), sizeFillPages (view grows to fill an exact number 
  27272. of pages), sizeVariable (view size fluctuates according to application-specific 
  27273. criteria), or sizeFixed (no special handling of size issues). The itsRsrcID 
  27274. parameter is the integer that MacApp uses to refer to the view's resource. You 
  27275. can call this method to initialize a TPicture object. 
  27276.  
  27277.  
  27278.  
  27279. æKY TPicture.IRes
  27280. æD PROCEDURE TPicture.IRes(itsDocument: TDocument; itsSuperView: TView; 
  27281.   VAR itsParams: Ptr); OVERRIDE;
  27282. æFi UDialog.p
  27283. æT METHOD 
  27284. æC IRes initializes a TPicture object from a 'view' resource template. The 
  27285. fDefChoice field is set to mPictureHit. The itsDocument parameter specifies the 
  27286. document associated with the TPicture object. The itsSuperView parameter specifies the 
  27287. view in which this picture appears. The itsParams parameter is a pointer to 
  27288. the portion of the 'view' resource data used to initialize this view. When the 
  27289. IRes method finishes initializing the view, the method moves the pointer to the 
  27290. end of this data. MacApp calls this method for each of the views created from a 
  27291. 'view' resource template, usually in response to a NewTemplateWindow or a 
  27292. DoCreateViews call. You never need to call IRes yourself. 
  27293.  
  27294.  
  27295.  
  27296. æKY TPicture.ReleasePicture
  27297. æD PROCEDURE TPicture.ReleasePicture;
  27298. æFi UDialog.p
  27299. æT METHOD 
  27300. æC This method releases memory used by the handle to the picture data. 
  27301. ReleasePicture is called by TPicture.SetPicture before creating a new picture. It is 
  27302. also called by TPicture.Free. You probably will not need to call this method. 
  27303.  
  27304.  
  27305.  
  27306. æKY TPicture.SetPicture
  27307. æD PROCEDURE TPicture.SetPicture(thePicture: PicHandle; redraw: BOOLEAN);
  27308. æFi UDialog.p
  27309. æT METHOD 
  27310. æC SetPicture saves a handle to the picture data associated with a TPicture object, 
  27311. and redraws it if requested. The parameter thePicture is the handle to the 
  27312. picture data. If the value of the redraw parameter is TRUE, the picture will be 
  27313. redrawn. If the value of redraw is FALSE, the picture will not be redrawn even 
  27314. though its appearance may be affected by the change. You set redraw to FALSE only 
  27315. when you know the picture will eventually be redrawn and you want to avoid 
  27316. drawing it twice, which makes the screen appear to flicker. You can call this 
  27317. method when you want to change the displayed picture. 
  27318.  
  27319.  
  27320.  
  27321. æKY TPicture.WRes
  27322. æD PROCEDURE TPicture.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  27323. æFi UDialog.p
  27324. æT METHOD 
  27325. æC WRes writes the TPicture portion of the view’s resource template to the location 
  27326. specified by the itsParams parameter. The parameter theResource is a handle to 
  27327. the view’s resource template. The parameter itsParams is a pointer to the 
  27328. TPicture section of the view’s resource template. WRes is the inverse of the IRes 
  27329. method, and is used only by programs that write 'view' resources; for example, 
  27330. ViewEdit uses this method to create new 'view' resources from views that are 
  27331. active on the screen. You rarely need to call this method yourself. You must 
  27332. override this method in your subclasses to create your own 'view' resources. Your 
  27333. override should check the size of the space remaining in the template past the 
  27334. end of the previously-written resource data; if there is not enough space to 
  27335. write your data into the file, your override should call the global routine 
  27336. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  27337. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  27338. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  27339. You need not be concerned about making the 'view' resource handle too big, 
  27340. because MacApp reclaims unused space by returning a new value for itsParams when 
  27341. the WRes method completes. 
  27342.  
  27343.  
  27344.  
  27345. æKY TPicture.WriteRes
  27346. æD PROCEDURE TPicture.WriteRes(theResource: ViewRsrcHndl; 
  27347.   VAR itsParams: Ptr); OVERRIDE;
  27348. æFi UDialog.p
  27349. æT METHOD 
  27350. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('pict') and 
  27351. class name ('TPicture') for the ‘view’ resource template, and then calls WRes to 
  27352. actually write the resource. The parameter theResource is a handle to the 
  27353. view’s resource template. The parameter itsParams is a pointer to the parameters 
  27354. MacApp uses to create the new resource. MacApp calls this method to write a 
  27355. TPicture object as part of a 'view' resource; you can use it in a similar fashion. 
  27356. You can override this method to provide your own unique class name or signature. 
  27357.  
  27358.  
  27359.  
  27360.  
  27361. æKY TPopup.AdjustBotRight
  27362. æD PROCEDURE TPopup.AdjustBotRight;
  27363. æFi UDialog.p
  27364. æT METHOD 
  27365. æC AdjustBotRight is a utility method that determines the bottom and right sides of 
  27366. the view, based on the menu information, and adjusts the view accordingly. 
  27367. AdjustBotRight is called by TPopup.SetPopup when the user clicks on a pop-up menu. 
  27368. You call this method yourself only when you are changing items in the pop-up menu. 
  27369.  
  27370.  
  27371.  
  27372. æKY TPopup.CalcLabelRect
  27373. æD PROCEDURE TPopup.CalcLabelRect(VAR theRect: Rect);
  27374. æFi UDialog.p
  27375. æT METHOD 
  27376. æC This method calculates the rectangle for a pop-up menu item's label. The 
  27377. parameter theRect passes the rectangle that bounds the menu's label and returns the 
  27378. new value of this rectangle once the inset has been calculated. CalcLabelRect is 
  27379. called by TPopup.DoMouseCommand and TPopup.DrawLabel when the user chooses a 
  27380. pop-up menu item. You never need to call it yourself. 
  27381.  
  27382.  
  27383.  
  27384. æKY TPopup.CalcMenuRect
  27385. æD PROCEDURE TPopup.CalcMenuRect(VAR theRect: Rect);
  27386. æFi UDialog.p
  27387. æT METHOD 
  27388. æC This method calculates the rectangle for the pop-up menu itself—that is, the 
  27389. menu minus its title string. The parameter theRect passes the rectangle that 
  27390. bounds the menu item's active area and returns the new value of this rectangle once 
  27391. the inset has been calculated. CalcMenuRect is called by TPopup.DoMouseCommand, 
  27392. TPopup.Draw, and TPopup.DrawPopupBox when the user clicks on a pop-up menu. 
  27393.  
  27394.  
  27395.  
  27396. æKY TPopup.DoMouseCommand
  27397. æD FUNCTION TPopup.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  27398.   VAR hysteresis: Point): TCommand; OVERRIDE;
  27399. æFi UDialog.p
  27400. æT METHOD 
  27401. æC DoMouseCommand performs the appropriate actions to process a mouse click in a 
  27402. pop-up menu and returns NIL. This method determines which command was chosen, 
  27403. sets the value of the object’s fCurrentItem field, and calls TPopup.DoChoice to 
  27404. perform the specified command or make the specified choice. The parameter 
  27405. theMouse is the mouse pointer’s current location, described in view coordinates. The 
  27406. info parameter is the event record of the mouse-down event that caused 
  27407. DoMouseCommand to be called. The hysteresis parameter is a point that represents the 
  27408. horizontal and vertical distance the mouse can travel between clicks and still be 
  27409. considered to be at the same location. MacApp uses this parameter to determine 
  27410. whether a double click has occurred or if a control has moved. DoMouseCommand 
  27411. is called when MacApp receives a mouse-down event in a TPopup object. Do not 
  27412. call this method yourself. 
  27413.  
  27414.  
  27415.  
  27416. æKY TPopup.Draw
  27417. æD PROCEDURE TPopup.Draw(area: Rect); OVERRIDE;
  27418. æFi UDialog.p
  27419. æT METHOD 
  27420. æC This method draws the pop-up box and the menu’s label and then calls INHERITED 
  27421. Draw. The area parameter is a QuickDraw rectangle, described in local 
  27422. coordinates, that defines part of the control that needs to be redrawn. You use the 
  27423. parameter to optimize drawing speed. MacApp calls this method in response to an 
  27424. update event occurring in the pop-up menu. You usually do not need to call this 
  27425. method yourself. 
  27426.  
  27427.  
  27428.  
  27429. æKY TPopup.DrawLabel
  27430. æD PROCEDURE TPopup.DrawLabel(area: Rect);
  27431. æFi UDialog.p
  27432. æT METHOD 
  27433. æC This method draws the pop-up menu's label. The area parameter is the rectangle 
  27434. that defines the active area of the pop-up menu. DrawLabel is called by 
  27435. TPopup.Draw and TPopup.DoMouseCommand when the user clicks on a pop-up menu. 
  27436.  
  27437.  
  27438.  
  27439. æKY TPopup.DrawPopupBox
  27440. æD PROCEDURE TPopup.DrawPopupBox(area: Rect);
  27441. æFi UDialog.p
  27442. æT METHOD 
  27443. æC DrawPopupBox draws a blank pop-up menu—that is, minus the menu's label—with a 
  27444. one-pixel drop shadow. The area parameter is a QuickDraw rectangle described in 
  27445. local coordinates that defines the part of the control that needs to be redrawn. 
  27446. You use the parameter to optimize drawing speed. DrawPopupBox is called by 
  27447. TPopup.Draw and TPopup.SetCurrentItem when the user clicks on or chooses an item 
  27448. from a pop-up menu. 
  27449.  
  27450.  
  27451.  
  27452. æKY TPopup.Fields
  27453. æD PROCEDURE TPopup.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr;
  27454.   fieldType: INTEGER)); OVERRIDE;
  27455. æFi UDialog.p
  27456. æT METHOD 
  27457. æC Fields reports the contents of each field of the TPopup object to the MacApp 
  27458. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  27459. contents of each field. Fields iterates over all the fields of the TPopup object, 
  27460. performing DoToField on each one. The fieldName parameter is the name of the 
  27461. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  27462. parameter uses a predefined constant to tell Fields what type of information to 
  27463. look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  27464. override this method in your subclasses if you want the Inspector to display your 
  27465. fields. Your override must call INHERITED Fields as its last action to ensure 
  27466. that the inherited fields are also displayed. 
  27467.  
  27468.  
  27469.  
  27470. æKY TPopup.Free
  27471. æD PROCEDURE TPopup.Free; OVERRIDE;
  27472. æFi UDialog.p
  27473. æT METHOD 
  27474. æC Free releases the memory used by the TPopup object and its resources and then 
  27475. calls INHERITED Free to release the memory used by dependent structures. MacApp 
  27476. calls this method in the normal process of freeing objects. You must call Free 
  27477. if you allocated the pop-up menu and have managed it yourself. 
  27478.  
  27479.  
  27480.  
  27481. æKY TPopup.GetCurrentItem
  27482. æD FUNCTION TPopup.GetCurrentItem: INTEGER;
  27483.  
  27484.  
  27485. æFi UDialog.p
  27486. æT METHOD 
  27487. æC This method returns the number of the currently selected menu item. Menu items 
  27488. are numbered starting from 1. You can call this method when you need to know 
  27489. which menu item is currently selected. 
  27490.  
  27491.  
  27492.  
  27493. æKY TPopup.GetItemText
  27494. æD PROCEDURE TPopup.GetItemText(item: INTEGER; VAR theText: Str255);
  27495.  
  27496. æFi UDialog.p
  27497. æT METHOD 
  27498. æC GetItemText returns the text of the menu item specified in the item parameter. 
  27499. The item parameter is the integer associated with a particular menu item. The 
  27500. parameter theText stores the string associated with that menu item. MacApp does 
  27501. not call this method; if is included for your convenience. You can call this 
  27502. method to obtain the text of the menu item. 
  27503.  
  27504.  
  27505.  
  27506. æKY TPopup.IPopup
  27507. æD PROCEDURE TPopup.IPopup(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  27508.   itsHSizeDet,itsVSizeDet: SizeDeterminer; itsRsrcID, 
  27509.   itsCurrentItem,itsItemOffset: INTEGER);
  27510. æFi UDialog.p
  27511. æT METHOD 
  27512. æC IPopup initializes a pop-up menu and installs it in the given superview. The 
  27513. menu's title is drawn flush right, starting at fItemOffset. The pop-up selector is 
  27514. drawn to the right of fItemOffset, the width and height being determined from 
  27515. the dimensions of the pop-up menu. The fDefChoice field is set to mPopupHit. 
  27516. The itsSuperView parameter is the view in which the pop-up menu appears. The 
  27517. itsLocation parameter is the pop-up menu's location, in view coordinates. The 
  27518. itsSize parameter is the pop-up menu's size, in pixels. The itsHSizeDet and 
  27519. itsVSizeDet parameters determine how the view's horizontal and vertical dimensions are 
  27520. calculated, respectively. Possible values are sizeSuperView (subview is the 
  27521. same size as superview), sizeRelSuperView subview size changes an equal amount 
  27522. relative to the superview's size), sizePage (view is made the size of one page), 
  27523. sizeFillPages (view grows to fill an exact number of pages), sizeVariable (view 
  27524. size fluctuates according to application-specific criteria), or sizeFixed no 
  27525. special handling of size issues). The itsRsrcID parameter is the pop-up menu's 
  27526. resource identifier. The itsCurrentItem parameter is an integer that specifies 
  27527. which menu item should be the default selection; that is, the first one selected. 
  27528. The itsItemOffset parameter is an integer specifying the distance from the 
  27529. left edge of the view to the pop-up box. MacApp does not call this method; it is 
  27530. included for your convenience. You call this method to initialize your pop-up object. 
  27531.  
  27532.  
  27533.  
  27534. æKY TPopup.IRes
  27535. æD PROCEDURE TPopup.IRes(itsDocument: TDocument; itsSuperView: TView; 
  27536.   VAR itsParams: Ptr); OVERRIDE;
  27537. æFi UDialog.p
  27538. æT METHOD 
  27539. æC IRes initializes a TPopup object from a 'view' resource template. The fDefChoice 
  27540. field is set to mPopupHit. The itsDocument parameter specifies the document 
  27541. associated with the TPopup object. The itsSuperView parameter specifies the view 
  27542. in which the menu appears. The itsParams parameter is a pointer to the portion 
  27543. of the 'view' resource data used to initialize this view. When the IRes method 
  27544. finishes initializing the view, the method moves the pointer to the end of this 
  27545. data. MacApp calls this method for each of the views created from a 'view' 
  27546. resource template, usually in response to a NewTemplateWindow or a DoCreateViews 
  27547. call. You never need to call IRes yourself. 
  27548.  
  27549.  
  27550.  
  27551. æKY TPopup.ReleasePopup
  27552. æD PROCEDURE TPopup.ReleasePopup;
  27553. æFi UDialog.p
  27554. æT METHOD 
  27555. æC ReleasePopup frees memory for a TPopup object's menu resource. ReleasePopup is 
  27556. called by TPopup.SetPopup before creating a new pop-up menu. It is also called 
  27557. by TPopup.Free. You probably will not need to call this method. 
  27558.  
  27559.  
  27560.  
  27561. æKY TPopup.SetCurrentItem
  27562. æD PROCEDURE TPopup.SetCurrentItem(item: INTEGER; redraw: BOOLEAN);
  27563. æFi UDialog.p
  27564. æT METHOD 
  27565. æC This method sets fCurrentItem to the specified item in a pop-up menu, redrawing 
  27566. the menu if requested. The item parameter is the element to be selected in a 
  27567. particular pop-up menu. If the value of the value of the redraw parameter is 
  27568. TRUE, MacApp redraws the menu to reflect the new selection. If the value of the 
  27569. redraw parameter is FALSE, the menu will not be redrawn, even though the new 
  27570. selection may affect its appearance. You set redraw to FALSE only when you know the 
  27571. menu will eventually be redrawn and you want to avoid drawing it twice, which 
  27572. makes the screen appear to flicker. SetCurrentItem is called by TPopup.SetPopup 
  27573. when initializing a new pop-up menu and by TPopup.DoMouseCommand when the user 
  27574. chooses an item from a pop-up menu. 
  27575.  
  27576.  
  27577.  
  27578. æKY TPopup.SetPopup
  27579. æD PROCEDURE TPopup.SetPopup(theMenu: MenuHandle; theRsrcID, currentItem: INTEGER; 
  27580.   redraw: BOOLEAN);
  27581. æFi UDialog.p
  27582. æT METHOD 
  27583. æC This method stores the information pointed at by theMenu in the fields of the 
  27584. pop-up menu, sets the currently selected item, and redraws the menu if requested 
  27585. to do so. The parameter theMenu is a handle to the menu's parameters. The 
  27586. parameter theRsrcID is the integer that identifies the 'view' resource template used 
  27587. to create the menu. The currentItem parameter is the current selection in the 
  27588. menu. If you set the value of the redraw parameter to TRUE, the menu is redrawn 
  27589. to reflect the new selection. If you set the value of the redraw parameter to 
  27590. FALSE, the menu is not redrawn even though the new selection may affect its 
  27591. appearance. You can set redraw to FALSE when you know the control will be redrawn 
  27592. eventually and you wish to avoid drawing it twice, which makes the screen 
  27593. appear to flicker. SetPopup is called by TPopup.IPopup when initializing a pop-up 
  27594. menu procedurally; it is also called by TPopup.IRes when creating a pop-up menu 
  27595. from a 'view' resource. You can use it to set the contents of the fields of a 
  27596. pop-up menu. 
  27597.  
  27598.  
  27599.  
  27600. æKY TPopup.WRes
  27601. æD PROCEDURE TPopup.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  27602. æFi UDialog.p
  27603. æT METHOD 
  27604. æC WRes writes the TPopup portion of the view’s resource template to the location 
  27605. specified by the itsParams parameter. The parameter theResource is a handle to 
  27606. the view’s resource template. The parameter itsParams is a pointer to the TPopup 
  27607. section of the view’s resource template. WRes is the inverse of the IRes 
  27608. method, and is used only by programs that write 'view' resources; for example, 
  27609. ViewEdit uses this method to create new 'view' resources from views that are active 
  27610. on the screen. You rarely need to call this method yourself. You must override 
  27611. this method in your subclasses to create your own 'view' resources. Your 
  27612. override should check the size of the space remaining in the template past the end of 
  27613. the previously-written resource data; if there is not enough space to write 
  27614. your data into the file, your override should call the global routine ExpandPtr, 
  27615. passing as arguments the current values of theResource, itsParams, and the size 
  27616. of your resource data, in bytes. ExpandPtr expands the 'view' resource handle 
  27617. by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. You 
  27618. need not be concerned about making the 'view' resource handle too big, because 
  27619. MacApp reclaims unused space by returning a new value for itsParams when the 
  27620. WRes method completes. 
  27621.  
  27622.  
  27623.  
  27624. æKY TPopup.WriteRes
  27625. æD PROCEDURE TPopup.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  27626. æFi UDialog.p
  27627. æT METHOD 
  27628. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('popp') and 
  27629. class name ('TPopup') for the 'view' resource template, and then calls WRes to 
  27630. actually write the resource. The parameter theResource is a handle to the view’s 
  27631. resource template. The parameter itsParams is a pointer to the parameters 
  27632. MacApp uses to create the new resource. MacApp calls this method to write a TPopup 
  27633. object as part of a 'view' resource; you can use it in a similar fashion. You 
  27634. can override this method to provide your own unique class name or signature. 
  27635.  
  27636.  
  27637.  
  27638. æKY TPrintCommand.DoIt
  27639. æD PROCEDURE TPrintCommand.DoIt;
  27640.  
  27641. æFi UPrinting.p
  27642. æT METHOD 
  27643. æC DoIt does the actual printing using the print handler referenced by 
  27644. fStdPrintHandler. MacApp calls this method when the user chooses the Print or 
  27645. Print One item from the File menu. You never need to call the DoIt method yourself. 
  27646.  
  27647.  
  27648.  
  27649. æKY TPrintCommand.Fields
  27650. æD PROCEDURE TPrintCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  27651.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  27652.  
  27653. æFi UPrinting.p
  27654. æT METHOD 
  27655. æC Fields reports the contents of each field of the TPrintCommand object to the 
  27656. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  27657. the contents of each field. Fields iterates over all the fields of the 
  27658. TPrintCommand object, performing DoToField on each one. The fieldName parameter is the 
  27659. name of the field. The fieldAddr parameter is the field’s location in memory. 
  27660. The fieldType parameter uses a predefined constant to tell Fields what type of 
  27661. information to look for in a field. MacApp calls Fields from the MacApp 
  27662. Inspector. You must override this method in your subclasses if you want the Inspector 
  27663. to display your fields. Your override must call INHERITED Fields as its last 
  27664. action to ensure that the inherited fields are also displayed. 
  27665.  
  27666.  
  27667.  
  27668. æKY TPrintCommand.IPrintCommand
  27669. æD PROCEDURE TPrintCommand.IPrintCommand(itsCmdNumber: CmdNumber; 
  27670.   theStdPrintHandler: TStdPrintHandler);
  27671. æFi UPrinting.p
  27672. æT METHOD 
  27673. æC IPrintCommand initializes a TPrintCommand object, associates it with a command 
  27674. number, and does some miscellaneous initialization for printing. The 
  27675. itsCmdNumber parameter is the command number that is associated with a particular menu 
  27676. command—in this case, the Print command typically found in an application's File 
  27677. menu. The command number is used in the 'cmnu' resource in the resource 
  27678. description file; you typically define a constant to represent that number in both the 
  27679. resource description file and in the appropriate interface or implementation 
  27680. file of the application. The parameter theStdPrintHandler is the object of class 
  27681. TStdPrintHandler that prints a particular view or document. IPrintCommand is 
  27682. called by TStdPrintHandler.DoMenuCommand when the user chooses the Print, Print 
  27683. One, Page Setup, or Show Page Breaks items normally found in the File menu. You 
  27684. never need to call it yourself. 
  27685.  
  27686.  
  27687.  
  27688. æKY TPrintHandler.BreakFollowing
  27689. æD FUNCTION TPrintHandler.BreakFollowing(vhs: VHSelect; prevBreak: VCoordinate; 
  27690.   VAR automatic: BOOLEAN): VCoordinate;
  27691.  
  27692.  
  27693. æFi UMacApp.p
  27694. æT METHOD 
  27695. æC BreakFollowing, when overridden, must return the location of the page break that 
  27696. follows the specified page break. The vhs parameter specifies whether the page 
  27697. break to be found is a horizontal or vertical page break; a value of h 
  27698. specifies a horizontal break, and a value of v specifies a vertical one. The prevBreak 
  27699. parameter specifies the page break preceding the one that is to be found. 
  27700. BreakFollowing must set the parameter automatic to TRUE if the returned value 
  27701. specifies an automatic page break—that is, a page break that is computed by the 
  27702. application rather than one that the user has set. The default version of the 
  27703. method causes a program break with an error message in debug mode; TPrintHandler 
  27704. subclasses must override it to provide useful behavior. MacApp calls 
  27705. BreakFollowing from TView.DoBreakFollowing when it needs to determine the location of 
  27706. a particular page break. You usually do not need to call this method yourself. 
  27707.  
  27708.  
  27709.  
  27710. æKY TPrintHandler.CalcPageStrips
  27711. æD PROCEDURE TPrintHandler.CalcPageStrips(VAR pageStrips: Point);
  27712. æFi UMacApp.p
  27713. æT METHOD 
  27714. æC CalcPageStrips calculates the height and width of the TPrintHandler’s associated 
  27715. view. The result is expressed in numbers of pages in each dimension. 
  27716. CalcPageStrips stores the result of its calculation in pageStrips. MacApp calls 
  27717. CalcPageStrips from methods that prepare the view’s image for printing. You usually do 
  27718. not need to call this method yourself. The default version of the method causes 
  27719. a program break with an error message in debug mode; TPrintHandler subclasses 
  27720. must override it to provide useful behavior. 
  27721.  
  27722.  
  27723.  
  27724. æKY TPrintHandler.CalcViewPerPage
  27725. æD PROCEDURE TPrintHandler.CalcViewPerPage(VAR amtPerPage: VPoint);
  27726. æFi UMacApp.p
  27727. æT METHOD 
  27728. æC CalcViewPerPage calculates the portion of the TPrintHandler’s associated view 
  27729. that will appear on each printed page. The result is expressed in numbers of 
  27730. pixels in each dimension. CalcViewPerPage stores the result of its calculation in 
  27731. amtPerPage. MacApp calls CalcViewPerPage from methods that prepare the view’s 
  27732. image for printing. You usually do not need to call this method yourself. The 
  27733. default version of the method causes a program break with an error message; 
  27734. TPrintHandler subclasses must override it to provide useful behavior. 
  27735.  
  27736.  
  27737.  
  27738. æKY TPrintHandler.CheckPrinter
  27739. æD PROCEDURE TPrintHandler.CheckPrinter;
  27740. æFi UMacApp.p
  27741. æT METHOD 
  27742. æC CheckPrinter determines whether the printer-configuration parameters have 
  27743. changed. If they have changed, then this method changes the object’s corresponding 
  27744. fields to reflect the new configuration. MacApp calls CheckPrinter from a variety 
  27745. of methods that use printer-configuration information. You usually do not need 
  27746. to call this method yourself. The default version of CheckPrinter is an empty 
  27747. method; TPrintHandler subclasses must override this method to provide useful 
  27748. behavior. 
  27749.  
  27750.  
  27751.  
  27752. æKY TPrintHandler.DrawPageBreak
  27753. æD PROCEDURE TPrintHandler.DrawPageBreak(vhs: VHSelect; whichBreak: INTEGER; 
  27754.   loc: VCoordinate; automatic: BOOLEAN);
  27755.  
  27756. æFi UMacApp.p
  27757. æT METHOD 
  27758. æC DrawPageBreak, when overridden, must draw a representation of a page break at a 
  27759. specified location in a view. The default method is empty. The vhs parameter 
  27760. specifies whether the page break to be drawn is vertical or horizontal; a value 
  27761. of v specifies that page 2 is below page 1, and h specifies that page 2 is to 
  27762. the right of page 1. The whichBreak parameter specifies which page break in 
  27763. numerical sequence is to be drawn. Page breaks are numbered from the end of the 
  27764. first page, beginning with 1. The loc parameter specifies the top-left corner of 
  27765. the page in view coordinates. The parameter automatic specifies whether the page 
  27766. break was computed automatically by the application or was placed manually by 
  27767. the user; if the value of automatic is TRUE, then the page break was computed 
  27768. automatically. MacApp calls DrawPageBreak when it needs to draw the contents of a 
  27769. printable view. You usually do not need to call this method yourself. 
  27770.  
  27771.  
  27772.  
  27773. æKY TPrintHandler.DrawPrintFeedback
  27774. æD PROCEDURE TPrintHandler.DrawPrintFeedback(area: Rect);
  27775. æFi UMacApp.p
  27776. æT METHOD 
  27777. æC DrawPrintFeedback draws the associated view’s page breaks, page numbers, and 
  27778. borders. It can also draw additional information, such as tab stops and rulers. 
  27779. The area parameter specifies the rectangular area of the view that is visible on 
  27780. the screen. MacApp calls DrawPrintFeedback when it needs to display a view’s 
  27781. printing information, such as page breaks and page numbers. You usually do not 
  27782. need to call this method yourself. 
  27783.  
  27784.  
  27785.  
  27786. æKY TPrintHandler.Fields
  27787. æD PROCEDURE TPrintHandler.Fields(PROCEDURE DoToField(fieldName: Str255; 
  27788.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  27789. æFi UMacApp.p
  27790. æT METHOD 
  27791. æC Fields reports the contents of each field of the TPrintHandler object to the 
  27792. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  27793. the contents of each field. Fields iterates over all the fields of the 
  27794. TPrintHandler object, performing DoToField on each one. The fieldName parameter is the 
  27795. name of the field. The fieldAddr parameter is the field’s location in memory. 
  27796. The fieldType parameter uses a predefined constant to tell Fields what type of 
  27797. information to look for in a field. MacApp calls Fields from the MacApp 
  27798. Inspector. You must override this method in your subclasses if you want the Inspector 
  27799. to display your fields. Your override must call INHERITED Fields as its last 
  27800. action to ensure that the inherited fields are also displayed. 
  27801.  
  27802.  
  27803.  
  27804. æKY TPrintHandler.FocusOnInterior
  27805. æD PROCEDURE TPrintHandler.FocusOnInterior; OVERRIDE;
  27806. æFi UMacApp.p
  27807. æT METHOD 
  27808. æC FocusOnInterior sets the QuickDraw clipping region to the printable area of the 
  27809. view. MacApp calls FocusOnInterior from TStdPrintHandler.PrintPage. You usually 
  27810. do not need to call this method yourself. The default version of 
  27811. FocusOnInterior is an empty method. TPrintHandler subclasses must override 
  27812. FocusOnInterior 
  27813. to provide the appropriate behavior. 
  27814.  
  27815.  
  27816.  
  27817. æKY TPrintHandler.GetInspectorName
  27818. æD PROCEDURE TPrintHandler.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  27819. æFi UMacApp.p
  27820. æT METHOD 
  27821. æC GetInspectorName retrieves the name of the TPrintHandler object for display in 
  27822. the Inspector window. GetInspectorName uses the value of inspectorName when the 
  27823. method is called to create the name that will appear in he MacApp Inspector. 
  27824. The method appends the name and the address in memory of the TPrintHandler object 
  27825. to the value passed in inspectorName, then stores the result back into 
  27826. inspectorName. The parameter then holds that result when the method returns. MacApp 
  27827. calls GetInspectorName when the Inspector displays information about the 
  27828. TPrintHandler object. You usually do not need to call this method yourself. 
  27829.  
  27830.  
  27831.  
  27832. æKY TPrintHandler.IPrintHandler
  27833. æD PROCEDURE TPrintHandler.IPrintHandler(itsView: TView);
  27834. æFi UMacApp.p
  27835. æT METHOD 
  27836. æC IPrintHandler initializes the TPrintHandler object and associates it with its 
  27837. view. The itsView parameter is the TView object with which the TPrintHandler 
  27838. object is to be associated. MacApp calls IPrintHandler when it creates a new 
  27839. TPrintHandler object. You must call this method when you create TPrintHandler 
  27840. objects. Do not override IPrintHandler. 
  27841.  
  27842.  
  27843.  
  27844. æKY TPrintHandler.LocatePageInterior
  27845. æD PROCEDURE TPrintHandler.LocatePageInterior(pageNumber: INTEGER; VAR loc: Point);
  27846. æFi UMacApp.p
  27847. æT METHOD 
  27848. æC LocatePageInterior determines the view coordinates of the top-left corner of a 
  27849. printed page that corresponds to the TPrintHandler object’s associated view. The 
  27850. pageNumber parameter is the number of the page whose interior is to be 
  27851. located. MacApp stores the resulting location in the loc parameter. MacApp calls 
  27852. LocatePageInterior when it must specify the area of a view that is to be printed on 
  27853. a page. You usually do not need to call this method yourself. The default 
  27854. version of LocatePageInterior is an empty method. TPrintHandler subclasses must 
  27855. override this method to provide useful behavior. 
  27856.  
  27857.  
  27858.  
  27859. æKY TPrintHandler.MaxPageNumber
  27860. æD FUNCTION TPrintHandler.MaxPageNumber: INTEGER;
  27861. æFi UMacApp.p
  27862. æT METHOD 
  27863. æC MaxPageNumber returns the highest page number that could be reasonably printed, 
  27864. given the properties of the view. The default version sets the maximum page 
  27865. number to 0. The resulting value is not necessarily as large as the actual number 
  27866. of pages if the view to be printed is very large—for example, spreadsheets can 
  27867. occupy more area than could reasonably be printed. MacApp calls MaxPageNumber 
  27868. when it prepares to print a view. You usually do not need to call this method 
  27869. yourself. 
  27870.  
  27871.  
  27872.  
  27873. æKY TPrintHandler.Print
  27874. æD FUNCTION TPrintHandler.Print(itsCmdNumber: CmdNumber; 
  27875.   VAR proceed: BOOLEAN): TCommand;
  27876. æFi UMacApp.p
  27877. æT METHOD 
  27878. æC Print handles a request to print the contents of the TPrintHandler’s associated 
  27879. view and returns a TCommand object to handle printing. The itsCmdNumber 
  27880. parameter is a command number that specifies how the printing is to be done. MacApp 
  27881. defines several predefined command numbers for printing from the File menu. These 
  27882. predefined command numbers include the following: cPrFileBase (= 176) 
  27883. cPrFileMax (= 195) ( Note: Command numbers between cPrFileBase and cPrFileMax are sent 
  27884. to a document's fDocPrintHandler even if it is not in the fTarget chain.) 
  27885. cPageSetup (Page Setup) cPrintOne(Print One) cPrint(Print) cPrintToFile(Print to 
  27886. File) cPrintSpoolFile(Print Spooled File) cPrViewBase (= 201) cPrViewMax (= 250) 
  27887. (Note: Command numbers between cPrViewBase and cPrViewMax are printing commands 
  27888. applied to a displayed view in the fTarget chain.) cShowBorders (Show View 
  27889. Borders). The proceed parameter is a flag that is set to TRUE when MacApp 
  27890. determines that it is okay to print. The default version of this method simply sets 
  27891. proceed to TRUE. MacApp calls Print to print the contents of the TPrintHandler’s 
  27892. associated view. You usually do not need to call this method yourself. The 
  27893. default version of Print does not actually print the associated view, and returns 
  27894. NIL. TPrintHandler subclasses must override Print to provide appropriate behavior. 
  27895.  
  27896.  
  27897.  
  27898.  
  27899. æKY TPrintHandler.PrinterChanged
  27900. æD PROCEDURE TPrintHandler.PrinterChanged;
  27901. æFi UMacApp.p
  27902. æT METHOD 
  27903. æC PrinterChanged changes the fields of the TPrintHandler object in accordance with 
  27904. new printer-configuration information. MacApp calls PrinterChanged when it 
  27905. determines that printer-configuration information has changed. The default version 
  27906. is an empty method. TPrintHandler subclasses must override this method to 
  27907. provide useful behavior. You usually do not need to call this method yourself. 
  27908.  
  27909.  
  27910.  
  27911. æKY TPrintHandler.RedoPageBreaks
  27912. æD PROCEDURE TPrintHandler.RedoPageBreaks;
  27913.  
  27914. æFi UMacApp.p
  27915. æT METHOD 
  27916. æC RedoPageBreaks recalculates the locations of page breaks in the TPrintHandler 
  27917. object’s associated view. MacApp calls RedoPageBreaks from TView.DoPagination. 
  27918. The default version is an empty method. TPrintHandler subclasses must override 
  27919. this method to provide useful behavior. You usually do not need to call this 
  27920. method yourself, although you can call it when you want to ensure that the view’s 
  27921. page breaks are correct. 
  27922.  
  27923.  
  27924.  
  27925. æKY TPrintHandler.Reset
  27926. æD PROCEDURE TPrintHandler.Reset;
  27927. æFi UMacApp.p
  27928. æT METHOD 
  27929. æC Reset changes the state of the print handler to use its default values. MacApp 
  27930. calls Reset from methods that restore the TPrintHandler object’s default 
  27931. settings. The default version is an empty method. TPrintHandler subclasses must 
  27932. override this method to provide useful behavior. 
  27933.  
  27934.  
  27935.  
  27936. æKY TPrintHandler.SetDefaultPrintInfo
  27937. æD PROCEDURE TPrintHandler.SetDefaultPrintInfo;
  27938. æFi UMacApp.p
  27939. æT METHOD 
  27940. æC SetDefaultPrintInfo sets the default values for the TPrintHandler object’s 
  27941. fields. MacApp calls SetDefaultPrintInfo from methods that establish a default state 
  27942. for the TPrintHandler object, such as IPrintHandler. The default version is an 
  27943. empty method. TPrintHandler subclasses must override this method to provide 
  27944. useful behavior. 
  27945.  
  27946.  
  27947.  
  27948. æKY TPrintHandler.SetPageInterior
  27949. æD PROCEDURE TPrintHandler.SetPageInterior(pageNumber: INTEGER);
  27950. æFi UMacApp.p
  27951. æT METHOD 
  27952. æC SetPageInterior creates the margin around the image that is to be printed. The 
  27953. image is the portion of the TPrintHandler object’s associated view that will be 
  27954. printed. The pageNumber parameter specifies the page of the view that is to be 
  27955. printed. MacApp calls SetPageInterior when it creates the page image that it 
  27956. will send to the printer. You usually do not need to call this method yourself. 
  27957. The default version of SetPageInterior is an empty method. TPrintHandler 
  27958. subclasses must override this method to provide useful behavior. 
  27959.  
  27960.  
  27961.  
  27962. æKY TPrintHandler.SetPageOffset
  27963. æD PROCEDURE TPrintHandler.SetPageOffset(coord: VPoint);
  27964. æFi UMacApp.p
  27965. æT METHOD 
  27966. æC SetPageOffset sets the value of the global variable gPageOffset to the specified 
  27967. value. The value of gPageOffset defines the top=left corner, in view 
  27968. coordinates, of a page to be printed from the TPrintHandler object’s associated view. 
  27969. The coord parameter is the view point that will become the top-left corner of the 
  27970. page. MacApp calls SetPageOffset from TView.DoSetPageOffset when the view is 
  27971. about to be printed. You usually do not need to call this method yourself. The 
  27972. default version of SetPageOffset is an empty method. TPrintHandler subclasses 
  27973. must override this method to provide useful behavior. 
  27974.  
  27975.  
  27976.  
  27977. æKY TPrintHandler.SetupForFinder
  27978. æD FUNCTION TPrintHandler.SetupForFinder: BOOLEAN;
  27979. æFi UMacApp.p
  27980. æT METHOD 
  27981. æC SetupForFinder sets up the TPrintHandler object for printing from the Finder. 
  27982. MacApp calls SetupForFinder when the user has selected a document created by the 
  27983. TApplication object and then chosen the Print command from the Finder’s File 
  27984. menu. You usually do not need to call this method yourself. The default version 
  27985. of SetupForFinder causes a WriteLn with an error message in debug mode. 
  27986. TPrintHandler subclasses must override this method to provide useful behavior. 
  27987.  
  27988.  
  27989.  
  27990. æKY TPrintStyleChangeCommand.DoIt
  27991. æD PROCEDURE TPrintStyleChangeCommand.DoIt; OVERRIDE;
  27992.  
  27993. æFi UPrinting.p
  27994. æT METHOD 
  27995. æC DoIt looks for changes to the Page Setup dialog box and writes the changes to a 
  27996. new copy of the print record. MacApp calls this method when the user makes 
  27997. changes in the Page Setup dialog box. You usually do not need to call DoIt 
  27998. yourself, although you can call it from the RedoIt method. 
  27999.  
  28000.  
  28001.  
  28002. æKY TPrintStyleChangeCommand.Fields
  28003. æD PROCEDURE TPrintStyleChangeCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  28004.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  28005. æFi UPrinting.p
  28006. æT METHOD 
  28007. æC Fields reports the contents of each field of the TPrintStyleChangeCommand object 
  28008. to the MacApp Inspector. DoToField is a procedure that MacApp passes to Fields 
  28009. to report the contents of each field. Fields iterates over all the fields of 
  28010. the TPrintStyleChangeCommand object, performing DoToField on each one. The 
  28011. fieldName parameter is the name of the field. The fieldAddr parameter is the field’s 
  28012. location in memory. The fieldType parameter uses a predefined constant to tell 
  28013. Fields what type of information to look for in a field. MacApp calls Fields 
  28014. from the MacApp Inspector. You must override this method in your subclasses if 
  28015. you want the Inspector to display your fields. Your override must call INHERITED 
  28016. Fields as its last action to ensure that the inherited fields are also 
  28017. displayed. 
  28018.  
  28019.  
  28020.  
  28021. æKY TPrintStyleChangeCommand.Free
  28022. æD PROCEDURE TPrintStyleChangeCommand.Free; OVERRIDE;
  28023. æFi UPrinting.p
  28024. æT METHOD 
  28025. æC Free releases the memory used by both the old and new print records and then 
  28026. calls INHERITED Free. MacApp calls Free when the user chooses the Page Setup 
  28027. dialog box but does not make a change to the settings in the box. Free is also 
  28028. called by TApplication.PerformCommand after the command has been handled. 
  28029. TApplication.CommitLastCommand also calls it after the user chooses another complex 
  28030. command . (In MacApp, a “complex command” is one that changes the document and can 
  28031. be undone, or one that requires mouse tracking.) You never need to call this 
  28032. method yourself. 
  28033.  
  28034.  
  28035.  
  28036. æKY TPrintStyleChangeCommand.IPrintStyleChangeCommand
  28037. æD PROCEDURE TPrintStyleChangeCommand.IPrintStyleChangeCommand
  28038.   (itsPrintHandler TStdPrintHandler);
  28039. æFi UPrinting.p
  28040. æT METHOD 
  28041. æC IPrintStyleChangeCommand makes a copy of the existing print record for 
  28042. TPrintStyleChangeCommand.DoIt to alter when creating the new print record; it also 
  28043. keeps the original print record for TPrintStyleChangeCommand.UndoIt to use in 
  28044. restoring the state of the Page Setup dialog box. The parameter itsPrintHandler is 
  28045. the object of class TStdPrintHandler that prints a particular view or document. 
  28046. MacApp calls IPrintStyleChangeCommand when the user chooses the Page Setup 
  28047. commandk . You never need to call this method yourself. 
  28048.  
  28049.  
  28050.  
  28051. æKY TPrintStyleChangeCommand.RedoIt
  28052. æD PROCEDURE TPrintStyleChangeCommand.RedoIt; OVERRIDE;
  28053. æFi UPrinting.p
  28054. æT METHOD 
  28055. æC The RedoIt method redoes page setup changes by writing a copy of the changed 
  28056. print record into the new print record. MacApp calls this method when the user 
  28057. selects the Redo menu item to redo changes in the Page Setup dialog box. You never 
  28058. need to call RedoIt yourself. 
  28059.  
  28060.  
  28061.  
  28062. æKY TPrintStyleChangeCommand.UndoIt
  28063. æD PROCEDURE TPrintStyleChangeCommand.UndoIt; OVERRIDE;
  28064. æFi UPrinting.p
  28065. æT METHOD 
  28066. æC The UndoIt method undoes page setup changes by writing a copy of the old print 
  28067. record into the new print record. MacApp calls this method when the user selects 
  28068. the Undo menu item to undo changes in the Page Setup dialog box. You never 
  28069. need to call UndoIt yourself. 
  28070.  
  28071.  
  28072.  
  28073. æKY TPtrBasedDoublyLinkedList.AppendNode
  28074. æD PROCEDURE TPtrBasedDoublyLinkedList.AppendNode
  28075.   (thisNode: UNIV PtrBasedDoublyLinkedListNodePtr);
  28076.  
  28077. æFi UList.p
  28078. æT METHOD 
  28079. æC AppendNode adds a new node to the list of pointers. The thisNode parameter 
  28080. identifies the node to be added. TDynamicArray.EachElementDoTil calls AppendNode to 
  28081. add a node to the dynamic array. You never need to call this method. 
  28082.  
  28083.  
  28084.  
  28085. æKY TPtrBasedDoublyLinkedList.EachNodeDo
  28086. æD PROCEDURE TPtrBasedDoublyLinkedList.EachNodeDo(PROCEDURE DoToNode
  28087.   (thisNode: UNIV PtrBasedDoublyLinkedListNodePtr));
  28088.  
  28089. æFi UList.p
  28090. æT METHOD 
  28091. æC EachNodeDo calls DoToNode for each node in the list. The thisNode parameter 
  28092. identifies the node that is currently being iterated. 
  28093. TDynamicArray.DeleteElementsAt and TDynamicArray.InsertElementsBefore call EachNodeDo. 
  28094. You never need to call this method. 
  28095.  
  28096.  
  28097.  
  28098. æKY TPtrBasedDoublyLinkedList.Fields
  28099. æD PROCEDURE TPtrBasedDoublyLinkedList.Fields(PROCEDURE DoToField(fieldName: Str255; 
  28100.   fieldAddr: Ptr; fieldType: integer)); OVERRIDE;
  28101.  
  28102. æFi UList.p
  28103. æT METHOD 
  28104. æC Fields iterates over all the fields of the TPtrBasedDoublyLinkedList object, 
  28105. performing DoToField on each one. 
  28106. DoToField is a procedure that MacApp passes to Fields to report the contents of 
  28107. each field. The fieldName parameter is the name of the field. The fieldAddr parameter 
  28108. is the field’s location in memory. The fieldType parameter uses a predefined constant 
  28109. to tell Fields what type of information to look for in a field. 
  28110. MacApp calls Fields from the MacApp Inspector. You must override this method in 
  28111. your subclasses if you want the Inspector to display your fields. Your override must 
  28112. call INHERITED Fields as its last action to ensure that the inherited fields are also 
  28113. displayed. 
  28114.  
  28115.  
  28116.  
  28117. æKY TPtrBasedDoublyLinkedList.IPtrBasedDoublyLinkedList
  28118. æD PROCEDURE TPtrBasedDoublyLinkedList.IPtrBasedDoublyLinkedList;
  28119.  
  28120. æFi UList.p
  28121. æT METHOD 
  28122. æC IPtrBasedDoublyLinkedList initializes a new linked list. 
  28123. TDynamicArray.IDynamicArray calls IPtrBasedDoublyLinkedList to initialize the linked 
  28124. list. You never need to call this method. 
  28125.  
  28126.  
  28127.  
  28128. æKY TPtrBasedDoublyLinkedList.RemoveNode
  28129. æD PROCEDURE TPtrBasedDoublyLinkedList.RemoveNode 
  28130.   (thisNode: UNIV PtrBasedDoublyLinkedListNodePtr);
  28131.  
  28132. æFi UList.p
  28133. æT METHOD 
  28134. æC RemoveNode removes a node from the list of pointers. The thisNode parameter 
  28135. identifies the node to be removed. TDynamicArray.EachElementDoTil calls RemoveNode 
  28136. to remove the node. You never need to call this method. 
  28137.  
  28138.  
  28139.  
  28140. æKY TQuitCommand.DoIt
  28141. æD PROCEDURE TQuitCommand.DoIt; OVERRIDE;
  28142. æFi UMacApp.p
  28143. æT METHOD 
  28144. æC DoIt closes the application. The command object is created by 
  28145. TApplication.DoMenuCommand and is intended to endure for the entire lifetime 
  28146. of the application. 
  28147. MacApp calls this method when the user chooses the Quit item from the File menu. 
  28148. You never need to call this method yourself. 
  28149.  
  28150.  
  28151.  
  28152. æKY TQuitCommand.Fields
  28153. æD PROCEDURE TQuitCommand.Fields(PROCEDURE DoToField(fieldName: Str255;  
  28154.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  28155.  
  28156. æFi UMacApp.p
  28157. æT METHOD 
  28158. æC Fields reports the contents of each field of the TQuitCommand object to the 
  28159. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  28160. the contents of each field. Fields iterates over all the fields of the 
  28161. TQuitCommand object, performing DoToField on each one. The fieldName parameter is the 
  28162. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  28163. fieldType parameter uses a predefined constant to tell Fields what type of 
  28164. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  28165. You must override this method in your subclasses if you want the Inspector to 
  28166. display your fields. Your override must call INHERITED Fields as its last 
  28167. action to ensure that the inherited fields are also displayed. 
  28168.  
  28169.  
  28170.  
  28171. æKY TQuitCommand.IQuitCommand
  28172. æD PROCEDURE TQuitCommand.IQuitCommand(itsCmdNumber: CmdNumber);
  28173.  
  28174. æFi UMacApp.p
  28175. æT METHOD 
  28176. æC IQuitCommand initializes a TQuitCommand object and associates it with a command 
  28177. number. The itsCmdNumber parameter is the command number that is associated 
  28178. with a particular menu command—in this case, the Quit command normally found in an 
  28179. application's File menu. MacApp calls this method when it creates the 
  28180. TQuitCommand object in TApplication.DoMenuCommand. You never need to call IQuitCommand 
  28181. yourself. 
  28182.  
  28183.  
  28184.  
  28185. æKY TRadio.DoChoice
  28186. æD PROCEDURE TRadio.DoChoice(origView: TView; itsChoice: INTEGER);
  28187. æFi UDialog.p
  28188. æT METHOD 
  28189. æC DoChoice toggles the radio button and sends the mRadioHit message to its 
  28190. superview if the radio button is off and the itsChoice parameter is equal to 
  28191. mRadioHit. DoChoice then calls INHERITED DoChoice. The origView parameter is the 
  28192. original view that received the mRadioHit message. The itsChoice parameter is an 
  28193. integer that tells whether the user clicked a button, a check box, a text string, or 
  28194. another control. DoChoice is called when the user clicks the mouse in a 
  28195. control’s active area; methods that call TRadio.DoChoice are TCtlMgr.DoMouseCommand 
  28196. and TControl.TrackMouse. 
  28197.  
  28198.  
  28199.  
  28200. æKY TRadio.Fields
  28201. æD PROCEDURE TRadio.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  28202.   fieldType: INTEGER)); OVERRIDE;
  28203. æFi UDialog.p
  28204. æT METHOD 
  28205. æC Fields reports the contents of each field of the TRadio object to the MacApp 
  28206. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  28207. contents of each field. Fields iterates over all the fields of the TRadio object, 
  28208. performing DoToField on each one. The fieldName parameter is the name of the 
  28209. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  28210. parameter uses a predefined constant to tell Fields what type of information to 
  28211. look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  28212. override this method in your subclasses if you want the Inspector to display your 
  28213. fields. Your override must call INHERITED Fields as its last action to ensure 
  28214. that the inherited fields are also displayed. 
  28215.  
  28216.  
  28217.  
  28218. æKY TRadio.IRadio
  28219. æD PROCEDURE TRadio.IRadio(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  28220.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsLabel: Str255; isTurnedOn: BOOLEAN);
  28221. æFi UDialog.p
  28222. æT METHOD 
  28223. æC IRadio initializes a TRadio object and associates it with a superview. The 
  28224. itsSuperView parameter is the view containing the radio button. The itsLocation 
  28225. parameter is the location, in view coordinates, of the radio button . The itsSize 
  28226. parameter is the size of the control, expressed in pixels. The itsHSizeDet and 
  28227. itsVSizeDet parameters determine how the view’s horizontal and vertical 
  28228. dimensions are calculated, respectively. Possible values are: sizeSuperView (subview 
  28229. is the same size as superview), sizeRelSuperView (subview size changes an equal 
  28230. amount relative to the superview's size), sizePage (view is the size of one 
  28231. page), sizeFillPages (view expands to fill an exact number of pages), sizeVariable 
  28232. (view size fluctuates according to application-specific criteria), and 
  28233. sizeFixed (no special handling of size issues). The itsLabel parameter is the string 
  28234. that is the button's label. If the value of isTurnedOn is TRUE, the control is 
  28235. initialized to be on. You can use IRadio to initialize TRadio objects that are 
  28236. created procedurally. 
  28237.  
  28238.  
  28239.  
  28240. æKY TRadio.IRes
  28241. æD PROCEDURE TRadio.IRes(itsDocument: TDocument; itsSuperView: TView; 
  28242.   VAR itsParams: Ptr); OVERRIDE;
  28243. æFi UDialog.p
  28244. æT METHOD 
  28245. æC IRes initializes a TRadio object from a 'view' resource template. The fDefChoice 
  28246. field is set to mRadioHit. The itsDocument parameter specifies the document 
  28247. affected by the radio button’s action. The itsSuperView parameter specifies the 
  28248. view in which the control appears; for a TRadio object, this is usually a 
  28249. TCluster or TDialogView object. The itsParams parameter is a pointer to the portion 
  28250. of the 'view' resource data used to initialize this view. When the IRes method 
  28251. finishes initializing the view, the method moves the pointer to the end of this 
  28252. data. MacApp calls this method for each of the views created from a 'view' 
  28253. resource template, usually in response to a NewTemplateWindow or a DoCreateViews 
  28254. call. You never need to call IRes yourself. 
  28255.  
  28256.  
  28257.  
  28258. æKY TRadio.IsOn
  28259. æD FUNCTION TRadio.IsOn: BOOLEAN;
  28260.  
  28261.  
  28262. æFi UDialog.p
  28263. æT METHOD 
  28264. æC IsOn returns TRUE if the radio button is highlighted. IsOn is called when a 
  28265. method needs to check the current status of a radio button; you can use this method 
  28266. in a similar fashion. Methods that call IsOn are: TRadio.DoChoice, 
  28267. TCluster.ReportCurrent, TRadio.Toggle, TRadio.ToggleIf, and TRadio.WRes. 
  28268.  
  28269.  
  28270.  
  28271. æKY TRadio.SetState
  28272. æD PROCEDURE TRadio.SetState(state, redraw: BOOLEAN);
  28273. æFi UDialog.p
  28274. æT METHOD 
  28275. æC This method turns the radio button on or off, depending on the value of the 
  28276. state parameter, and redraws the radio button if requested. The value of the state 
  28277. parameter sets the control's appearance; setting state to 1 fills a check box 
  28278. or radio button with the appropriate mark; setting state to 0 clears it. If the 
  28279. value of the redraw parameter is TRUE, the control is immediately redrawn with 
  28280. the current value; otherwise, it is not, even though the new value may affect 
  28281. its appearance. You can set redraw to FALSE when you know the control will 
  28282. eventually be redrawn and you want to avoid drawing it twice, which makes the screen 
  28283. appear to flicker. SetState is called by TRadio.IRadio when initializing a 
  28284. TRadio object. It is also called by TCluster.DoChoice to set a user selection in a 
  28285. cluster of radio buttons. You can call it to set the state of a TRadio 
  28286. control, whether it is a single object or a member of a cluster of radio buttons. 
  28287.  
  28288.  
  28289.  
  28290. æKY TRadio.Toggle
  28291. æD PROCEDURE TRadio.Toggle(redraw: BOOLEAN);
  28292. æFi UDialog.p
  28293. æT METHOD 
  28294. æC This method acts as a toggle, turning the radio button on or off. If the value 
  28295. of the redraw parameter is TRUE, the control is immediately redrawn with the 
  28296. current value; otherwise, it is not, even though the new value may affect its 
  28297. appearance. You can set redraw to FALSE when you know the control will eventually 
  28298. be redrawn and you want to avoid drawing it twice, which makes the screen appear 
  28299. to flicker. Toggle is called by TRadio.DoChoice to toggle the value of a 
  28300. TRadio object when the user clicks on it. You can call this method to change the 
  28301. state of the radio button. 
  28302.  
  28303.  
  28304.  
  28305. æKY TRadio.ToggleIf
  28306. æD PROCEDURE TRadio.ToggleIf(matchState, redraw: BOOLEAN);
  28307. æFi UDialog.p
  28308. æT METHOD 
  28309. æC ToggleIf changes the state of a TRadio button if the control's current state 
  28310. equals the value of the matchState parameter. If the matchState parameter is TRUE, 
  28311. the control must be on to be toggled. If matchState is FALSE, the control must 
  28312. be off to be toggled. If the value of the redraw parameter is TRUE, the 
  28313. control is redrawn with the current value; otherwise, it is not, even though the new 
  28314. value may affect its appearance. You can set redraw to FALSE when you know the 
  28315. control will eventually be redrawn and you want to avoid drawing it twice, 
  28316. which makes the screen appear to flicker. 
  28317.  
  28318.  
  28319.  
  28320. æKY TRadio.WRes
  28321. æD PROCEDURE TRadio.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  28322. æFi UDialog.p
  28323. æT METHOD 
  28324. æC WRes writes the TRadio portion of the view’s resource template to the location 
  28325. specified by the itsParams parameter. The parameter theResource is a handle to 
  28326. the view’s resource template. The parameter itsParams is a pointer to the TRadio 
  28327. section of the view’s resource template. WRes is the inverse of the IRes 
  28328. method, and is used only by programs that write 'view' resources; for example, 
  28329. ViewEdit uses this method to create new 'view' resources from views that are active 
  28330. on the screen. You rarely need to call this method yourself. You must override 
  28331. this method in your subclasses to create your own 'view' resources. Your 
  28332. override should check the size of the space remaining in the template past the end of 
  28333. the previously-written resource data; if there is not enough space to write 
  28334. your data into the file, your override should call the global routine ExpandPtr, 
  28335. passing as arguments the current values of theResource, itsParams, and the size 
  28336. of your resource data, in bytes. ExpandPtr expands the 'view' resource handle 
  28337. by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. You 
  28338. need not be concerned about making the 'view' resource handle too big, because 
  28339. MacApp reclaims unused space by returning a new value for itsParams when the 
  28340. WRes method completes. 
  28341.  
  28342.  
  28343.  
  28344. æKY TRadio.WriteRes
  28345. æD PROCEDURE TRadio.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  28346. æFi UDialog.p
  28347. æT METHOD 
  28348. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('radb') and 
  28349. class name ('TRadio') for the 'view' resource template, and then calls WRes to 
  28350. actually write the resource. The parameter theResource is a handle to the view’s 
  28351. resource template. The parameter itsParams is a pointer to the parameters 
  28352. MacApp uses to create the new resource. MacApp calls this method to write a TRadio 
  28353. object as part of a 'view' resource; you can use it in a similar fashion. You 
  28354. can override this method to provide your own unique class name or signature. 
  28355.  
  28356.  
  28357.  
  28358. æKY TRCSelectCommand.ComputeNewSelection
  28359. æD PROCEDURE TRCSelectCommand.ComputeNewSelection(VAR clickedCell: GridCell); OVERRIDE;
  28360. æFi UGridView.p
  28361. æT METHOD 
  28362. æC ComputeNewSelection recalculates the current selection in the TRCSelectCommand’s 
  28363. associated TGridView object. If the mouse click occurred under the right 
  28364. conditions for a multiple selection then the specified cell is added to the current 
  28365. selection; otherwise, it becomes the new selection. The clickedCell parameter 
  28366. specifies the grid cell that the user clicked. MacApp calls ComputeNewSelection 
  28367. when the user clicks a TGridView object. You do not need to call this method 
  28368. yourself unless you override TGridView methods to implement other forms of 
  28369. selection. 
  28370.  
  28371.  
  28372.  
  28373. æKY TRCSelectCommand.Fields
  28374. æD PROCEDURE TRCSelectCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  28375.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  28376. æFi UGridView.p
  28377. æT METHOD 
  28378. æC Fields reports the contents of each field of the TRCSelectCommand object to the 
  28379. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  28380. report the contents of each field. Fields iterates over all the fields of the 
  28381. TRCSelectCommand object, performing DoToField on each one. The fieldName parameter 
  28382. is the name of the field. The fieldAddr parameter is the field’s location in 
  28383. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  28384. type of information to look for in a field. MacApp calls Fields from the MacApp 
  28385. Inspector. You must override this method in your subclasses if you want the 
  28386. Inspector to display your fields. Your override must call INHERITED Fields as its 
  28387. last action to ensure that the inherited fields are also displayed. 
  28388.  
  28389.  
  28390.  
  28391. æKY TRCSelectCommand.TrackMouse
  28392. æD FUNCTION TRCSelectCommand.TrackMouse(aTrackPhase: TrackPhase; VAR anchorPoint, 
  28393.   previousPoint, nextPoint: VPoint; mouseDidMove: BOOLEAN): TCommand; OVERRIDE;
  28394. æFi UGridView.p
  28395. æT METHOD 
  28396. æC TrackMouse tracks the mouse and sets the selection when the user selects an 
  28397. entire row of cells in a TGridView view. In general, this method allows you to 
  28398. carry out any actions (other than feedback or mouse constraint) that depend on the 
  28399. movement of the mouse or on the track phase. TrackMouse returns the mouse 
  28400. tracker that will be used in subsequent calls. Although applications may sometimes 
  28401. return a different mouse-tracker object, TrackMouse usually returns SELF. The 
  28402. aTrackPhase parameter describes the current phase of the mouse-tracking process. 
  28403. MacApp sets its value to trackPress when the mouse button is first pressed. 
  28404. When the mouse has moved more than the hysteresis value since the last time 
  28405. TrackFeedback was called, MacApp sets the value of the aTrackPhase parameter to 
  28406. trackMove. When the mouse button is released, MacApp sets aTrackPhase to 
  28407. trackRelease. When aTrackPhase is set to trackPress, all three points (anchorPoint, 
  28408. previousPoint, and nextPoint) have the same value. When aTrackPhase is set to 
  28409. trackRelease, the nextPoint parameter contains the coordinates of the location of the 
  28410. mouse-up event. The anchorPoint parameter is the position of the mouse pointer, 
  28411. in view coordinates, when the mouse button was first pressed. If you change 
  28412. this value, the new value is passed to you in the parameter aTrackPhase the next 
  28413. time TrackMouse is called. The previousPoint parameter is the position, in view 
  28414. coordinates, of the mouse pointer the last time TrackMouse was called. The 
  28415. nextPoint parameter is the current position of the mouse pointer, in view 
  28416. coordinates. Although you can change the value of nextPoint yourself, it is preferable 
  28417. to use TCommand.TrackConstrain to limit mouse movement. The value of nextPoint 
  28418. at the time TrackMouse exits will be passed to you as the value of 
  28419. previousPoint the next time TrackMouse is called. MacApp sets the value of the 
  28420. mouseDidMove 
  28421. parameter to TRUE if the mouse moved since the last time 
  28422. TCommand.TrackFeedback was called. However, SELF.TrackConstrain may set the mouse 
  28423. coordinates back 
  28424. to values as if no movement had occurred; thus, the mouse has not necessarily 
  28425. moved the first time TrackMouse is called with aTrackPhase set to trackMove. Test 
  28426. the value of mouseDidMove to determine whether you should consider the mouse 
  28427. to have moved. The mouseDidMove parameter will have the value TRUE if 
  28428. aTrackPhase has a value of either trackPress or trackRelease; otherwise, its value is 
  28429. TRUE if nextPoint and previousPoint are not equal. You never call 
  28430. TRCSelectCommand.TrackMouse yourself; rather, TApplication.TrackMouse calls it 
  28431. when the mouse button is first pressed, as the mouse moves, and when the mouse 
  28432. button is released. You often override this method to take application-specific action. 
  28433. (For further information on mouse trackers, see the discussion of mouse operations in 
  28434. the MacApp 2.0 Cookbook.) 
  28435.  
  28436.  
  28437.  
  28438. æKY TRevertDocCommand.DoIt
  28439. æD PROCEDURE TRevertDocCommand.DoIt; OVERRIDE;
  28440.  
  28441. æFi UMacApp.p
  28442. æT METHOD 
  28443. æC DoIt puts up the standard Revert dialog box. If the user answers yes, the method 
  28444. then calls fChangedDocument.Revert to do the actual work of changing the 
  28445. document currently in memory to match the last version saved on disk. The 
  28446. fChangedDocument.Revert method reads the disk file, updates the current screen display, 
  28447. resets the associated print handlers, and frees unused memory. 
  28448. TRevertDocCommand.DoIt then calls fChangedDocument.ShowReverted to show the document. 
  28449. MacApp calls this method when the user chooses the Revert item from the application's 
  28450. File menu. You never need to call DoIt yourself. 
  28451.  
  28452.  
  28453.  
  28454. æKY TRevertDocCommand.Fields
  28455. æD PROCEDURE TRevertDocCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  28456.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  28457.  
  28458. æFi UMacApp.p
  28459. æT METHOD 
  28460. æC Fields reports the contents of each field of the TRevertDocCommand object to the 
  28461. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  28462. report the contents of each field. Fields iterates over all the fields of the 
  28463. TRevertDocCommand object, performing DoToField on each one. The fieldName parameter 
  28464. is the name of the field. The fieldAddr parameter is the field’s location in 
  28465. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  28466. type of information to look for in a field. MacApp calls Fields from the MacApp 
  28467. Inspector. You must override this method in your subclasses if you want the 
  28468. Inspector to display your fields. Your override must call INHERITED Fields as its 
  28469. last action to ensure that the inherited fields are also displayed. 
  28470.  
  28471.  
  28472.  
  28473. æKY TRevertDocCommand.IRevertDocCommand
  28474. æD PROCEDURE TRevertDocCommand.IRevertDocCommand(itsCmdNumber: CmdNumber; 
  28475.   itsDocument: TDocument);
  28476. æFi UMacApp.p
  28477. æT METHOD 
  28478. æC IRevertDocCommand initializes a TRevertDocCommand object and associates it with 
  28479. a command number and a document. The itsCmdNumber parameter is the command 
  28480. number that is associated with a particular menu command — in this case, the Revert 
  28481. command normally found in an application’s File menu. IRevertDocCommand is 
  28482. called by TDocument.DoMenuCommand when the user chooses the Revert item from the 
  28483. File menu. You never need to call it yourself. 
  28484.  
  28485.  
  28486.  
  28487. æKY TRowSelectCommand.ComputeAnchorCell
  28488. æD PROCEDURE TRowSelectCommand.ComputeAnchorCell(VAR clickedCell: GridCell); OVERRIDE;
  28489. æFi UGridView.p
  28490. æT METHOD 
  28491. æC ComputeAnchorCell sets the value of fAnchorCell to be the first cell in a row of 
  28492. cells in a TGridView object. The clickedCell parameter is used internally by 
  28493. TCellSelectCommand.ComputeAnchorCell; TRowSelectCommand.ComputeAnchorCell 
  28494. accomplishes most of its task by calling this inherited method. ComputeAnchorCell is 
  28495. called by TRCSelectCommand.TrackMouse when the user first selects a row of 
  28496. cells in a TGridView object. You usually do not need to call this method yourself 
  28497. unless you override TGridView methods to implement other forms of selection. 
  28498.  
  28499.  
  28500.  
  28501. æKY TRowSelectCommand.ComputeNewSelection
  28502. æD PROCEDURE TRowSelectCommand.ComputeNewSelection
  28503.   (VAR clickedCell: GridCell); OVERRIDE;
  28504. æFi UGridView.p
  28505. æT METHOD 
  28506. æC ComputeNewSelection specifies the cell the user clicked in and calls INHERITED 
  28507. ComputeNewSelection to compute the new value of the selection. The clickedCell 
  28508. parameter specifies the cell the user clicked in by returning the last cell in 
  28509. the selected row. ComputeNewSelection is called repeatedly by 
  28510. TRCSelectCommand.TrackMouse 
  28511. as the user moves the mouse to select one or more rows of cells in a 
  28512. TGridView object. You usually do not need to call this method yourself unless 
  28513. you override TGridView methods to implement other forms of selection. 
  28514.  
  28515.  
  28516.  
  28517. æKY TRowSelectCommand.Fields
  28518. æD PROCEDURE TRowSelectCommand.Fields(PROCEDURE DoToField (fieldName: Str255;  
  28519.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE; 
  28520. æFi UGridView.p
  28521. æT METHOD 
  28522. æC Fields reports the contents of each field of the TRowSelectCommand object to the 
  28523. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  28524. report the contents of each field. Fields iterates over all the fields of the 
  28525. TRowSelectCommand object, performing DoToField on each one. The fieldName parameter 
  28526. is the name of the field. The fieldAddr parameter is the field’s location in 
  28527. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  28528. type of information to look for in a field. MacApp calls Fields from the MacApp 
  28529. Inspector. You must override this method in your subclasses if you want the 
  28530. Inspector to display your fields. Your override must call INHERITED Fields as its 
  28531. last action to ensure that the inherited fields are also displayed. 
  28532.  
  28533.  
  28534.  
  28535. æKY TRowSelectCommand.IRowSelectCommand
  28536. æD PROCEDURE TRowSelectCommand.IRowSelectCommand(itsView: TGridView; 
  28537.   theShiftKey, theCmdKey: BOOLEAN);
  28538.  
  28539. æFi UGridView.p
  28540. æT METHOD 
  28541. æC IRowSelectCommand initializes a command object and associates it with a 
  28542. TGridView instance. The itsView parameter is the TGridView associated with the command 
  28543. object. MacApp sets the parameter theShiftKey to TRUE while the Shift key is 
  28544. pressed. MacApp sets the parameter theCmdKey to TRUE while the Command key is 
  28545. pressed. 
  28546.  
  28547.  
  28548.  
  28549. æKY TRunArray.DeleteItems
  28550. æD PROCEDURE TRunArray.DeleteItems(firstItem, noOfItems: INTEGER);
  28551. æFi UGridView.p
  28552. æT METHOD 
  28553. æC DeleteItems deletes the indicated items from the run array. The firstItem 
  28554. parameter is the first item to be deleted. The noOfItems parameter is the number of 
  28555. items to be deleted. MacApp calls this method from other methods that adjust the 
  28556. height, width, or number of rows or columns in a TGridView object. You usually 
  28557. do not need to call DeleteItems. 
  28558.  
  28559.  
  28560.  
  28561. æKY TRunArray.Fields
  28562. æD PROCEDURE TRunArray.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  28563.   fieldType: INTEGER)); OVERRIDE;
  28564. æFi UGridView.p
  28565. æT METHOD 
  28566. æC Fields reports the contents of each field of the TRunArray object to the MacApp 
  28567. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  28568. contents of each field. Fields iterates over all the fields of the TRunArray 
  28569. object, performing DoToField on each one. The fieldName parameter is the name of 
  28570. the field. The fieldAddr parameter is the field’s location in memory. The 
  28571. fieldType parameter uses a predefined constant to tell Fields what type of 
  28572. information to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  28573. must override this method in your subclasses if you want the Inspector to 
  28574. display your fields. Your override must call INHERITED Fields as its last action to 
  28575. ensure that the inherited fields are also displayed. 
  28576.  
  28577.  
  28578.  
  28579. æKY TRunArray.FindChunk
  28580. æD FUNCTION TRunArray.FindChunk(item: INTEGER; VAR chunk, indexInChunk: INTEGER; 
  28581.   VAR theTotal: LONGINT): BOOLEAN;
  28582. æFi UGridView.p
  28583. æT METHOD 
  28584. æC FindChunk returns information about a given item in the run array. The item 
  28585. parameter is the index of the specified item; TRunArray items are numbered from 1. 
  28586. The chunk parameter indicates the chunk in which the item is located, where 
  28587. zero is the first chunk in the TRunArray object. The indexInChunk parameter is the 
  28588. location of the item within the chunk. Note that the first item in the chunk 
  28589. is at location 1. The parameter theTotal is the sum of values up to, but not 
  28590. including, the chunk in which the given item is located. FindChunk returns FALSE 
  28591. if the given item is outside the range of items in the run array (that is, if 
  28592. the value of item is less than 1 or the value of item is greater than the value 
  28593. of fNoOfItems), or if the given item is not represented in a chunk. 
  28594.  
  28595.  
  28596.  
  28597. æKY TRunArray.FindItem
  28598. æD FUNCTION TRunArray.FindItem(theTotal: LONGINT): INTEGER;
  28599.  
  28600.  
  28601. æFi UGridView.p
  28602. æT METHOD 
  28603. æC FindItem returns the item number of the item for which the sum of the values 
  28604. exceeds the specified value, or returns 0 if the specified value is outside the 
  28605. range from 0 to the sum of values represented by the run array. The parameter 
  28606. theTotal is the number used as a total to find a matching item. MacApp calls 
  28607. FindItem from methods that convert from view points to cells in a TGridView object. 
  28608. You usually do not need to call FindItem yourself. 
  28609.  
  28610.  
  28611.  
  28612. æKY TRunArray.Free
  28613. æD PROCEDURE TRunArray.Free; OVERRIDE;
  28614. æFi UGridView.p
  28615. æT METHOD 
  28616. æC Free releases the memory used by the TRunArray object and its component objects. 
  28617. MacApp calls this method in the normal process of freeing objects. You can 
  28618. call Free to release the memory used by a TRunArray object when you no longer need 
  28619. that object. 
  28620.  
  28621.  
  28622.  
  28623. æKY TRunArray.GetValue
  28624. æD FUNCTION TRunArray.GetValue(item: INTEGER): INTEGER;
  28625.  
  28626. æFi UGridView.p
  28627. æT METHOD 
  28628. æC GetValue returns the value associated with the specified item in the TRunArray 
  28629. object. The item parameter is the index of the specified item; TRunArray items 
  28630. are numbered from 1. MacApp calls GetValue from a variety of methods that use 
  28631. the values stored in a TRunArray object. You usually do not need to call GetValue 
  28632. yourself. 
  28633.  
  28634.  
  28635.  
  28636. æKY TRunArray.InsertItems
  28637. æD PROCEDURE TRunArray.InsertItems(firstItem, noOfItems, value: INTEGER);
  28638. æFi UGridView.p
  28639. æT METHOD 
  28640. æC InsertItems inserts the specified number of items into the TRunArray object, all 
  28641. with the given value. The firstItem parameter is the index of the first item 
  28642. to be inserted. The noOfItems parameter is the number of items that are to be 
  28643. inserted. The value parameter is the value that will be associated with all the 
  28644. newly inserted items. 
  28645.  
  28646.  
  28647.  
  28648. æKY TRunArray.IRunArray
  28649. æD PROCEDURE TRunArray.IRunArray;
  28650. æFi UGridView.p
  28651. æT METHOD 
  28652. æC IRunArray initializes a run array to have no items. MacApp calls IRunArray when 
  28653. it creates a new TRunArray object. You usually do not need to call this method 
  28654. yourself. 
  28655.  
  28656.  
  28657.  
  28658. æKY TRunArray.SumValues
  28659. æD FUNCTION TRunArray.SumValues(firstItem, noOfItems: INTEGER): LONGINT;
  28660. æFi UGridView.p
  28661. æT METHOD 
  28662. æC SumValues returns the sum of the values of the specified items. The firstItem 
  28663. parameter is the index of the first item to be included in the summation. The 
  28664. noOfItems parameter is the number of items whose values are to be added. MacApp 
  28665. calls SumValues from a variety of methods that convert from cells to values of 
  28666. other data types. You usually do not need to call SumValues yourself. 
  28667.  
  28668.  
  28669.  
  28670. æKY TSaveDocCommand.DoIt
  28671. æD PROCEDURE TSaveDocCommand.DoIt; OVERRIDE;
  28672. æFi UMacApp.p
  28673. æT METHOD 
  28674. æC DoIt calls fChangedDocument.Save to do the actual work of saving the document or 
  28675. a copy to disk. MacApp calls this method when the user chooses the Save or 
  28676. Save As item from the application's File menu. You never need to call DoIt 
  28677. yourself. 
  28678.  
  28679.  
  28680.  
  28681. æKY TSaveDocCommand.Fields
  28682. æD PROCEDURE TSaveDocCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  28683.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  28684.  
  28685. æFi UMacApp.p
  28686. æT METHOD 
  28687. æC Fields reports the contents of each field of the TSaveDocCommand object to the 
  28688. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  28689. report the contents of each field. Fields iterates over all the fields of the 
  28690. TSaveDocCommand object, performing DoToField on each one. The fieldName parameter is 
  28691. the name of the field. The fieldAddr parameter is the field’s location in 
  28692. memory. The fieldType parameter uses a predefined constant to tell Fields what type 
  28693. of information to look for in a field. MacApp calls Fields from the MacApp 
  28694. Inspector. You must override this method in your subclasses if you want the 
  28695. Inspector to display your fields. Your override must call INHERITED Fields as its last 
  28696. action to ensure that the inherited fields are also displayed. 
  28697.  
  28698.  
  28699.  
  28700. æKY TSaveDocCommand.ISaveDocCommand
  28701. æD PROCEDURE TSaveDocCommand.ISaveDocCommand(itsCmdNumber: CmdNumber; 
  28702.   itsDocument: TDocument);
  28703. æFi UMacApp.p
  28704. æT METHOD 
  28705. æC ISaveDocCommand initializes a TSaveDocCommand object and associates it with a 
  28706. command number and a document. The itsCmdNumber parameter is the command number 
  28707. that is associated with a particular menu command—in this case, the Save, Save 
  28708. As, or Save a Copy command typically found in an application's File menu. The 
  28709. itsDocument parameter is the document associated with the command object. MacApp 
  28710. calls this method when the user chooses the Save or Save as item from the File 
  28711. menu. You never need to call this method yourself. 
  28712.  
  28713.  
  28714.  
  28715. æKY TScrollBar.ActionProc
  28716. æD PROCEDURE TScrollBar.ActionProc(partCode: INTEGER);
  28717.  
  28718. æFi UMacApp.p
  28719. æT METHOD 
  28720. æC ActionProc is called by the MacApp global routine ActionProcForTScrollBar in 
  28721. response to a mouse event in a scroll bar's active area. The partCode parameter 
  28722. identifies the part of the scroll bar that the user clicked. You will not need to 
  28723. call this method. You can override this method to implement nonstandard 
  28724. scrolling behavior. 
  28725.  
  28726.  
  28727.  
  28728. æKY TScrollBar.DeltaValue
  28729. æD PROCEDURE TScrollBar.DeltaValue(delta: VCoordinate); 
  28730. æFi UMacApp.p
  28731. æT METHOD 
  28732. æC DeltaValue ensures that the value of the delta parameter is within the scroll 
  28733. bar’s minimum and maximum values. DeltaValue then offsets the current value of 
  28734. the scroll bar by the value of the delta parameter. The delta parameter is the 
  28735. amount, in view coordinates, by which the scroll bar is offset. DeltaValue is 
  28736. called by TScroller.DoKeyCommand when the user presses the page up, page down, 
  28737. home, or end keys. TScroller.ScrollBy calls TScrollBar.DeltaValue when 
  28738. automatically scrolling a view. TScrollBar.TrackScrollBar and 
  28739. TSScrollBar.TrackScrollBar call TScrollBar.DeltaValue when the mouse pointer is being 
  28740. tracked in a scroll bar. You usually do not need to call this method. 
  28741.  
  28742.  
  28743.  
  28744. æKY TScrollBar.DoMouseCommand
  28745. æD PROCEDURE TScrollBar.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  28746.   VAR hysteresis:  Point): TCommand; OVERRIDE; 
  28747. æFi UMacApp.p
  28748. æT METHOD 
  28749. æC DoMouseCommand differentiates between tracking the mouse when the pointer is in 
  28750. the scroll box (sometimes called the thumb) and tracking the mouse when the 
  28751. pointer is in any other part of the scroll bar. When tracking the pointer in the 
  28752. scroll box, this method calls the Control Manager routine TrackControl and sets 
  28753. the scroll bar’s new value to reflect the final position of the scroll box. 
  28754. When tracking the mouse in scroll arrows and page areas, DoMouseCommand calls 
  28755. TrackControl with an action procedure that calls the scroll bar’s TrackScrollBar 
  28756. method. Unlike many DoMouseCommand methods, this method never returns a command 
  28757. object; it always handles commands directly and returns NIL. The parameter 
  28758. theMouse is the mouse pointer’s current location, described in view coordinates. The 
  28759. info parameter is the event record of the mouse-down event that caused 
  28760. DoMouseCommand to be called. The hysteresis parameter is a point that represents the 
  28761. horizontal and vertical distance the mouse can travel between clicks and still 
  28762. be considered to be at the same location. MacApp uses this parameter to 
  28763. determine whether a double click has occurred or if a control has moved. 
  28764. DoMouseCommand is called when MacApp receives a mouse-down event in a TScrollBar 
  28765. object. You usually do not need to call this method yourself. 
  28766.  
  28767.  
  28768.  
  28769. æKY TScrollBar.Fields
  28770. æD PROCEDURE TScrollBar.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  28771.   fieldType: INTEGER)); OVERRIDE;
  28772. æFi UMacApp.p
  28773. æT METHOD 
  28774. æC Fields reports the contents of each field of the TScrollBar object to the MacApp 
  28775. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  28776. contents of each field. Fields iterates over all the fields of the TScrollBar 
  28777. object, performing DoToField on each one. The fieldName parameter is the name 
  28778. of the field. The fieldAddr parameter is the field’s location in memory. The 
  28779. fieldType parameter uses a predefined constant to tell Fields what type of 
  28780. information to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  28781. must override this method in your subclasses if you want the Inspector to 
  28782. display your fields. Your override must call INHERITED Fields as its last action to 
  28783. ensure that the inherited fields are also displayed. 
  28784.  
  28785.  
  28786.  
  28787. æKY TScrollBar.IRes
  28788. æD PROCEDURE TScrollBar.IRes(itsDocument: TDocument; itsSuperView: TView;  
  28789.   VAR itsParams: Ptr); OVERRIDE; 
  28790. æFi UMacApp.p
  28791. æT METHOD 
  28792. æC IRes initializes a TScrollBar object from a 'view' resource template. The 
  28793. fDefChoice field is set to mVScrollBarHit or mHScrollBarHit, according to whether the 
  28794. control area’s vertical or horizontal dimension is greater. The itsDocument 
  28795. parameter specifies the document affected by the scroll bar’s action. The 
  28796. itsSuperView parameter specifies the view in which the scroll bar appears. The 
  28797. itsParams parameter is a pointer to the portion of the 'view' resource data used to 
  28798. initialize this view. When the IRes method finishes initializing the view, the 
  28799. method moves the pointer to the end of this data. MacApp calls this method for 
  28800. each of the views created from a 'view' resource template, usually in response to 
  28801. a NewTemplateWindow or a DoCreateViews call. You never need to call IRes 
  28802. yourself. 
  28803.  
  28804.  
  28805.  
  28806. æKY TScrollBar.IScrollBar
  28807. æD PROCEDURE TScrollBar.IScrollBar(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  28808.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsDirection: VHSelect; 
  28809.   itsVal, itsMin, itsMax: VCoordinate);
  28810. æFi UMacApp.p
  28811. æT METHOD 
  28812. æC IScrollBar initializes a TScrollBar object and associates it with a superview. 
  28813. The itsSuperView parameter is the view containing the scroll bar. The 
  28814. itsLocation parameter is the location, expressed in view coordinates, of the scroll 
  28815. bar. The itsSize parameter is the scroll bar size, expressed in pixels. The 
  28816. itsHSizeDet and itsVSizeDet parameters determine how the view’s horizontal and 
  28817. vertical dimensions are calculated, respectively. Possible values are: sizeSuperView 
  28818. (subview is the same size as superview), sizeRelSuperView (subview size changes 
  28819. an equal amount relative to the superview's size), sizePage (view is the size of 
  28820. one page), sizeFillPages (view expands to fill an exact number of pages), 
  28821. sizeVariable (view size fluctuates according to application-specific criteria), and 
  28822. sizeFixed (no special handling of size issues). The itsDirection parameter is 
  28823. the direction in which the control is offset. The itsVal parameter is the 
  28824. current value of the control, which will be adjusted to be in the range of itsMin to 
  28825. itsMax. The itsMin and itsMax parameter specify the minimum and maximum values 
  28826. that the control can have. You call IScrollBar to initialize scroll bars 
  28827. procedurally. 
  28828.  
  28829.  
  28830.  
  28831. æKY TScrollBar.TrackScrollBar
  28832. æD PROCEDURE TScrollBar.TrackScrollBar(partCode: INTEGER); 
  28833. æFi UMacApp.p
  28834. æT METHOD 
  28835. æC TrackScrollBar tells its caller which way to offset the value of the scroll bar. 
  28836. If the mouse is clicked while the pointer is in the scroll bar's page up area 
  28837. or up arrow, partCode has the value inPageUp or inUpButton, respectively, and 
  28838. TrackScrollBar sets the DeltaValue parameter to -1. Otherwise, it sets 
  28839. DeltaValue to 1. You can override this method if you want an action to take place 
  28840. while you are tracking the scroll bar’s arrows or page areas. Typically the action 
  28841. taken is to change the scroll bar’s value appropriately. TrackScrollBar is called 
  28842. by TScrollbar.ActionProc in response to a mouse event in a scroll bar's active 
  28843. area. TScroller.TrackScrollBar may also be called in similar circumstances by 
  28844. TSScrollBar.TrackScrollBar. You never need to call TrackScrollBar yourself 
  28845. unless you change the way MacApp implements scroll bars. 
  28846.  
  28847.  
  28848.  
  28849. æKY TScrollBar.WRes
  28850. æD PROCEDURE TScrollBar.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  28851. æFi UMacApp.p
  28852. æT METHOD 
  28853. æC WRes writes the TScrollBar portion of the view’s resource template to the 
  28854. location specified by the itsParams parameter. The parameter theResource is a handle 
  28855. to the view’s resource template. The parameter itsParams is a pointer to the 
  28856. TScrollBar section of the view’s resource template. WRes is the inverse of the 
  28857. IRes method, and is used only by programs that write 'view' resources; for 
  28858. example, ViewEdit uses this method to create new 'view' resources from views that are 
  28859. active on the screen. You rarely need to call this method yourself. You must 
  28860. override this method in your subclasses to create your own 'view' resources. 
  28861. Your override should check the size of the space remaining in the template past 
  28862. the end of the previously-written resource data; if there is not enough space to 
  28863. write your data into the file, your override should call the global routine 
  28864. ExpandPtr, passing as arguments the current values of theResource, itsParams, and 
  28865. the size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  28866. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  28867. greater. You need not be concerned about making the 'view' resource handle too big, 
  28868. because MacApp reclaims unused space by returning a new value for itsParams 
  28869. when the WRes method completes. 
  28870.  
  28871.  
  28872.  
  28873. æKY TScrollBar.WriteRes
  28874. æD PROCEDURE TScrollBar.WriteRes (theResource: ViewRsrcHndl; 
  28875.   VAR itsParams: Ptr); OVERRIDE;
  28876. æFi UMacApp.p
  28877. æT METHOD 
  28878. æC WriteRes serves as a “wrapper” for WRes: it sets up the signature ('sbar') and 
  28879. class name ('TScrollBar') for the 'view' resource template, and then calls WRes 
  28880. to actually write the resource. The parameter theResource is a handle to the 
  28881. view’s resource template. The parameter itsParams is a pointer to the parameters 
  28882. MacApp uses to create the new resource. MacApp calls this method to write a 
  28883. TScrollBar object as part of a 'view' resource; you can use it in a similar 
  28884. fashion. You can override this method to provide your own unique class name or 
  28885. signature. 
  28886.  
  28887.  
  28888.  
  28889. æKY TScroller.AddSubview
  28890. æD PROCEDURE TScroller.AddSubView(theSubView: TView); OVERRIDE;
  28891. æFi UMacApp.p
  28892. æT METHOD 
  28893. æC AddSubView calls INHERITED AddSubView and then notifies the subview that it’s in 
  28894. a scroller by calling theSubView.BeInScroller(SELF). The parameter theSubview 
  28895. is the subview to be added to the scroller. MacApp calls AddSubView when 
  28896. installing subviews in windows and dialog boxes. You can call AddSubview to associate 
  28897. a view with a scroller. You usually do not need to override AddSubView. 
  28898.  
  28899.  
  28900.  
  28901. æKY TScroller.AdjustScrollBars
  28902. æD PROCEDURE TScroller.AdjustScrollBars(invalidate: BOOLEAN);
  28903.  
  28904. æFi UMacApp.p
  28905. æT METHOD 
  28906. æC AdjustScrollBars moves and resizes the scroll bars appropriately. The invalidate 
  28907. parameter specifies whether MacApp should force the scroll bars to redraw 
  28908. themselves; if invalidate is set to TRUE then the scroll bars are redrawn. MacApp 
  28909. calls AdjustScrollBars from the TScroller methods Locate and Resize when a 
  28910. scroller moves or changes size. You usually do not need to call this method 
  28911. yourself. You can override AdjustScrollBars for scrollers whose scroll bars don’t 
  28912. depend on the scroller’s location or size. 
  28913.  
  28914.  
  28915.  
  28916. æKY TScroller.AutoScroll
  28917. æD PROCEDURE TScroller.AutoScroll(viewPt: VPoint; VAR delta: VPoint);
  28918. æFi UMacApp.p
  28919. æT METHOD 
  28920. æC AutoScroll implements proportional automatic scrolling (that is, how far the 
  28921. view is scrolled depends on how fast the user moves the mouse), and returns the 
  28922. number of pixels to be scrolled during automatic scrolling. The viewPt parameter 
  28923. is the location of the mouse described in view coordinates. The delta parameter 
  28924. returns the number of pixels to scroll in the horizontal and vertical 
  28925. directions. It is computed by determining where viewPt is in relation to the scroller. 
  28926. If viewPt is “above” the scroller (that is, viewPt.v < extent.top), then 
  28927. delta.v is set to scroll the contents of the scroller down. If viewPt is “below” the 
  28928. scroller, then delta.v is set to scroll the contents of the scroller up. The 
  28929. delta.h parameter is set similarly. The number of pixels to scroll is determined 
  28930. by the scroller’s fScrollUnit values. 
  28931. AutoScroll is called by TApplication.TrackMouse when the mouse is being tracked and 
  28932. has strayed outside of a scroller. Because MacApp tracks the mouse and sends messages 
  28933. to scrollers for you, you rarely need to call AutoScroll yourself. You rarely override 
  28934. this method; you might do so to implement a different means of determining the value 
  28935. of delta. 
  28936.  
  28937.  
  28938.  
  28939. æKY TScroller.CreateScrollBar
  28940. æD PROCEDURE TScroller.CreateScrollBar(itsDirection: VHSelect);
  28941. æFi UMacApp.p
  28942. æT METHOD 
  28943. æC CreateScrollBar creates a TSScrollBar object associated with the TScroller 
  28944. object. The itsDirection parameter specifies the orientation of the TSScrollBar 
  28945. object; a value of v specifies vertical and a value of h specifies horizontal. 
  28946. MacApp calls CreateScrollBar from TScroller.IScroller to associate a scroller with 
  28947. its scroll bars. You can use it to create scroll bars that communicate with an 
  28948. installed scroller to provide standard scrolling behavior. You usually do not 
  28949. need to override CreateScrollBar. 
  28950.  
  28951.  
  28952.  
  28953. æKY TScroller.CreateTemplateScrollBar
  28954. æD PROCEDURE TScroller.CreateTemplateScrollBar(itsDirection: VHSelect);
  28955. æFi UMacApp.p
  28956. æT METHOD 
  28957. æC CreateTemplateScrollBar creates a TSScrollBar object with the specified 
  28958. orientation from a standard resource template provided with MacApp. The itsDirection 
  28959. parameter specifies the orientation of the TSScrollBar object; a value of v 
  28960. specifies vertical, and a value of h specifies horizontal. You can use 
  28961. CreateTemplateScrollBar to create a scroll bar with standard behavior associated with 
  28962. the TScroller object. 
  28963.  
  28964.  
  28965.  
  28966. æKY TScroller.DoKeyCommand
  28967. æD FUNCTION TScroller.DoKeyCommand(ch: CHAR; aKeyCode: INTEGER; 
  28968.   VAR info: EventInfo): TCommand; OVERRIDE;
  28969. æFi UMacApp.p
  28970. æT METHOD 
  28971. æC DoKeyCommand handles keystrokes made without the Command key pressed, when the 
  28972. TScroller object is the active view. The default version automatically handles 
  28973. scrolling behavior appropriate to the Page Up, Page Down, Home, and End keys on 
  28974. the Apple® Extended keyboard. If the method cannot handle the keystroke, it 
  28975. calls INHERITED DoKeyCommand. The ch parameter is the alphanumeric character that 
  28976. corresponds to the key the user pressed. The aKeyCode parameter is the ASCII 
  28977. key code generated by the keystroke. The info parameter is the event record 
  28978. description of the event that caused MacApp to call DoKeyCommand; the info parameter 
  28979. is used to pass information about the event, such as whether the Option key 
  28980. was pressed. MacApp calls DoKeyCommand in response to a keyboard event that 
  28981. occurs when the TScroller object is the active view. You usually do not need to call 
  28982. this method yourself. You must override this method in your TScroller 
  28983. subclasses if you want to provide specialized scrolling behavior in response to 
  28984. keyboard events. 
  28985.  
  28986.  
  28987.  
  28988. æKY TScroller.DoScroll
  28989. æD PROCEDURE TScroller.DoScroll(delta: VPoint; redraw: BOOLEAN);
  28990.  
  28991. æFi UMacApp.p
  28992. æT METHOD 
  28993. æC DoScroll changes the scroller’s translation value by the delta amount. If the 
  28994. redraw parameter is TRUE, then ScrollDraw is called to carry out the scroll 
  28995. graphically. MacApp calls DoScroll from various TScroller methods to change the 
  28996. scroller's translation amount. You usually do not need to call this method. 
  28997.  
  28998.  
  28999.  
  29000. æKY TScroller.Fields
  29001. æD PROCEDURE TScroller.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  29002.   fieldType: INTEGER)); OVERRIDE;
  29003. æFi UMacApp.p
  29004. æT METHOD 
  29005. æC Fields reports the contents of each field of the TScroller object to the MacApp 
  29006. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  29007. contents of each field. Fields iterates over all the fields of the TScroller 
  29008. object, performing DoToField on each one. The fieldName parameter is the name of 
  29009. the field. The fieldAddr parameter is the field’s location in memory. The 
  29010. fieldType parameter uses a predefined constant to tell Fields what type of 
  29011. information to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  29012. must override this method in your subclasses if you want the Inspector to 
  29013. display your fields. Your override must call INHERITED Fields as its last action to 
  29014. ensure that the inherited fields are also displayed. 
  29015.  
  29016.  
  29017.  
  29018. æKY TScroller.Focus
  29019. æD FUNCTION TScroller.Focus: BOOLEAN;
  29020. æFi UMacApp.p
  29021. æT METHOD 
  29022. æC This method calls INHERITED Focus and sets the global variable gLongOffset to 
  29023. equal the value in fTranslation. MacApp calls Focus prior to performing any 
  29024. graphics operation on a view. You usually do not need to call this method yourself 
  29025. unless you change the way scrollers are implemented in MacApp. For similar 
  29026. reasons, you usually do not need to override this method. 
  29027.  
  29028.  
  29029.  
  29030. æKY TScroller.ForceRedraw
  29031. æD PROCEDURE TScroller.ForceRedraw; OVERRIDE;
  29032.  
  29033. æFi UMacApp.p
  29034. æT METHOD 
  29035. æC ForceRedraw invalidates the entire scroller view and the scroll bars. MacApp 
  29036. calls ForceRedraw to mark an entire view to be redrawn.
  29037.  
  29038.  
  29039.  
  29040. æKY TScroller.Free
  29041. æD PROCEDURE TScroller.Free; OVERRIDE;
  29042. æFi UMacApp.p
  29043. æT METHOD 
  29044. æC Free releases the memory used by the scroll bars referenced in fScrollBars and 
  29045. then calls INHERITED Free to release the memory used by the TScroller object and 
  29046. its dependent structures. MacApp calls Free when disposing of a scroller; it 
  29047. also calls Free from TScroller.CreateScrollBar if the creation of the scroll 
  29048. bars fails. You can call this method to dispose of a TScroller object; however, 
  29049. you usually do not need to do so yourself because MacApp calls Free when 
  29050. disposing of the window or the last view associated with the scroller. You usually do 
  29051. not need to override this method unless you have changed the way MacApp 
  29052. associates scrollers with views. 
  29053.  
  29054.  
  29055.  
  29056. æKY TScroller.GetExtent
  29057. æD PROCEDURE TScroller.GetExtent(VAR itsExtent: VRect); OVERRIDE;
  29058. æFi UMacApp.p
  29059. æT METHOD 
  29060. æC GetExtent returns the scroller’s dimensions translated according to the 
  29061. translation values. The itsExtent parameter returns the dimensions, which is the 
  29062. extent returned by INHERITED GetExtent offset by the value of fTranslation. MacApp 
  29063. calls GetExtent when it needs to know the boundaries of a view for various 
  29064. reasons—for example, to determine if a mouse click ocurred in that view, to draw a 
  29065. specific area of the screen, to print a selection, or to automatically scroll a 
  29066. particular area onto the screen. Methods that call GetExtent include 
  29067. TApplication.TrackMouse, and the TScroller methods AutoScroll, RevealRect, and 
  29068. ScrollDraw. You can call this method to obtain the boundaries of a view described 
  29069. as a rectangle in view coordinates. 
  29070.  
  29071.  
  29072.  
  29073. æKY TScroller.GetScroller
  29074. æD FUNCTION TScroller.GetScroller(immediateSuperView: BOOLEAN): TScroller; OVERRIDE;
  29075. æFi UMacApp.p
  29076. æT METHOD 
  29077. æC GetScroller simply returns SELF. The immediateSuperView parameter is set to TRUE 
  29078. if the scroller is to be returned only when it is this view's immediate 
  29079. superview. The parameter is set to FALSE if it doesn't matter whether the scroller is 
  29080. the immediate superview of this view. TView.GetScroller calls TScroller.GetScroller 
  29081. when the TView version is trying to find its scroller. You usually call 
  29082. GetScroller when you are a initializing a tracker command. 
  29083.  
  29084.  
  29085.  
  29086. æKY TScroller.HaveScrollBar
  29087. æD PROCEDURE TScroller.HaveScrollBar(theScrollBar: TSScrollBar; direction: VHSelect);
  29088. æFi UMacApp.p
  29089. æT METHOD 
  29090. æC HaveScrollBar associates a scroll bar with a scroller. The parameter 
  29091. theScrollBar is the TSScrollBar object associated with the scroller. The direction 
  29092. parameter specifies whether the scroll bar is vertical or horizontal. MacApp calls 
  29093. HaveScrollBar from TSScrollBar.AttachScroller, which is called in the scroll bar’s 
  29094. initialization method, TSScrollBar.ISScrollBar. MacApp also calls this method 
  29095. from TSScrollBar.Free to detach a scroller and a scroll bar. Free detaches a 
  29096. scroll bar by passing NIL as the value for the parameter theScrollBar. You can 
  29097. use this method in a similar fashion. 
  29098.  
  29099.  
  29100.  
  29101. æKY TScroller.IRes
  29102. æD PROCEDURE TScroller.IRes (itsDocument: TDocument; itsSuperView: TView;  
  29103.   VAR itsParams: Ptr);
  29104. æFi UMacApp.p
  29105. æT METHOD 
  29106. æC IRes initializes a TScroller object from a 'view' resource template. IRes calls 
  29107. INHERITED IRes to initialize the inherited data (that of TView), initializes 
  29108. the TScroller data, and offsets the parameter itsParams by the length of the 
  29109. TScroller parameters. The itsDocument parameter specifies the document associated 
  29110. with the TScroller object. This method sets itsDocument to NIL, meaning that the 
  29111. initialized scroller has no document until you associate one with it. The 
  29112. itsSuperView parameter specifies the superview in which this control is to be 
  29113. installed. The itsParams parameter is a pointer to the portion of the 'view' 
  29114. resource data used to initialize this view. When the IRes method finishes initializing 
  29115. the view, the method moves the pointer to the end of this data. MacApp calls 
  29116. this method for each of the views created from a 'view' resource template, 
  29117. usually in response to a NewTemplateWindow or a DoCreateViews call. You never need 
  29118. to call IRes yourself. 
  29119.  
  29120.  
  29121.  
  29122. æKY TScroller.IScroller
  29123. æD PROCEDURE TScroller.IScroller(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  29124.   itsHSizeDet, itsVSizeDet: SizeDeterminer; itsHorzMax, itsVertMax: VCoordinate; 
  29125.   wantHorzSBar, wantVertSBar: BOOLEAN);
  29126. æFi UMacApp.p
  29127. æT METHOD 
  29128. æC IScroller initializes a scroller object. The itsSuperView parameter is the view 
  29129. containing the scroller. The itsLocation parameter is the scroller's location, 
  29130. expressed in view coordinates. The itsSize parameter is the scroller's size, 
  29131. expressed in pixels. IScroller sets the scroller’s superview, location, size, and 
  29132. size determiners with a call to TView.IView. The itsHSizeDet and itsVSizeDet 
  29133. parameters determine how the view’s horizontal and vertical dimensions are 
  29134. calculated, respectively. Possible values are: sizeSuperView (scroller is the same 
  29135. size as superview), sizeRelSuperView (scroller size changes an equal amount 
  29136. relative to the superview's size), sizePage (scroller is the size of one page), 
  29137. sizeFillPages (scroller expands to fill an exact number of pages), sizeVariable 
  29138. (scroller size fluctuates according to application-specific criteria), and 
  29139. sizeFixed (no special handling of size issues). The itsHorzMax parameter is the 
  29140. maximum value the scroller can horizontally offset the subview's coordinates. The 
  29141. itsVertMax parameter is the maximum value the scroller can vertically offset the 
  29142. subview's coordinates. If the wantHorzSBar or wantVertSBar parameters are set 
  29143. to TRUE, IScroller creates horizontal or vertical scroll bars, respectively, and 
  29144. attaches them to the scroller. The scroller’s document is initially set to 
  29145. NIL. MacApp calls IScroller from several methods that create scrolling views, 
  29146. among them TClassListView.IClassListView, TObjListView.IObjListView, 
  29147. TObjectView.IObjectView, and the global routines NewPaletteWindow and NewSimpleWindow. 
  29148. You can call this method to initialize a TScroller object. You usually do not need to 
  29149. override this method. 
  29150.  
  29151.  
  29152.  
  29153. æKY TScroller.LocalToSuper
  29154. æD PROCEDURE TScroller.LocalToSuper(VAR thePoint: VPoint); OVERRIDE;
  29155. æFi UMacApp.p
  29156. æT METHOD 
  29157. æC LocalToSuper converts the given point from local view coordinates to superview 
  29158. coordinates. This method overrides TView.LocalToSuper to compensate for the 
  29159. scroller’s coordinate translation. The parameter thePoint is the point to be 
  29160. converted from view coordinates to superview coordinates. You can call this method to 
  29161. convert the coordinates of a given point in the scroller to those of its 
  29162. superview. 
  29163.  
  29164.  
  29165.  
  29166. æKY TScroller.Locate
  29167. æD PROCEDURE TScroller.Locate(h, v: VCoordinate; invalidate: BOOLEAN); OVERRIDE;
  29168. æFi UMacApp.p
  29169. æT METHOD 
  29170. æC Locate adjusts the focus and validation of the scroller, its subviews, and its 
  29171. superview by calling INHERITED Locate and then calling AdjustScrollBars. The 
  29172. coordinates h and v specify the new location of the view’s upper-left corner, in 
  29173. superview coordinates. The h parameter is the horizontal coordinate of the 
  29174. upper-left corner of the scroller’s new location. The v parameter is the vertical 
  29175. coordinate of the upper-left corner of the scroller’s new location. The 
  29176. invalidate parameter specifies whether MacApp should force the view to redraw itself; 
  29177. if invalidate is set to TRUE then the view is redrawn. MacApp calls Locate from 
  29178. methods that adjust the size or shape of views. You usually do not need to call 
  29179. this method yourself. You can override it if you don’t want automatic 
  29180. adjustment of the scroll bars when a scroller is moved. 
  29181.  
  29182.  
  29183.  
  29184. æKY TScroller.RemoveSubview
  29185. æD PROCEDURE TScroller.RemoveSubView(theSubView: TView); OVERRIDE;
  29186.  
  29187. æFi UMacApp.p
  29188. æT METHOD 
  29189. æC RemoveSubView notifies the subview that it is no longer in a scroller by calling 
  29190. the subview's BeInScroller method with a parameter of NIL; it then calls 
  29191. INHERITED RemoveSubView. The parameter theSubView is the subview to be notified of 
  29192. the scroller's absence. You can call this method when your are changing the view 
  29193. hierarchy. 
  29194.  
  29195.  
  29196.  
  29197. æKY TScroller.Resize
  29198. æD PROCEDURE TScroller.Resize(width, height: VCoordinate; 
  29199.   invalidate: BOOLEAN); OVERRIDE;
  29200.  
  29201. æFi UMacApp.p
  29202. æT METHOD 
  29203. æC This method resizes the scroller and adjusts its scroll bars, redrawing if 
  29204. requested. The width parameter is the scroller’s new horizontal dimension, expressed 
  29205. in local view coordinates. The height parameter is the scroller’s new vertical 
  29206. dimension, expressed in local view coordinates. If you set the value of the 
  29207. invalidate parameter to TRUE, the view is invalidated, forcing it to be redrawn 
  29208. in the update process. When you know the view will be redrawn eventually and 
  29209. wish to avoid drawing it twice—which makes the screen appear to flash—you can set 
  29210. the invalidate parameter to FALSE. MacApp calls Resize from methods that 
  29211. manipulate views, windows, and controls. You can call Resize to change the size of 
  29212. the scroller and redraw it. You can override this method to disable automatic 
  29213. adjustment of the scroll bars when a scroller is resized. 
  29214.  
  29215.  
  29216.  
  29217. æKY TScroller.RevealRect
  29218. æD PROCEDURE TScroller.RevealRect(rectToReveal: VRect; minToSee: Point; 
  29219.   redraw: BOOLEAN);  OVERRIDE;
  29220. æFi UMacApp.p
  29221. æT METHOD 
  29222. æC RevealRect ensures that a specified minimum area of the given rectangle is 
  29223. visible in the scroller. The rectToReveal parameter is the rectangle describing the 
  29224. area that is to be shown. The minToSee parameter is the minimum the scroller 
  29225. tries to display , scrolling if necessary. If the redraw parameter is set to 
  29226. FALSE, then the scroller is not immediately redrawn. You can set redraw to FALSE 
  29227. when you wish to avoid drawing the same view twice, which makes the screen appear 
  29228. to flicker. MacApp typically calls RevealRect to ensure that a selection is 
  29229. visible (for example, making the text insertion point visible in a text edit view 
  29230. when the user starts typing). 
  29231.  
  29232.  
  29233.  
  29234. æKY TScroller.ScrollBy
  29235. æD PROCEDURE TScroller.ScrollBy(deltaH, deltaV: VCoordinate; redraw: BOOLEAN);
  29236. æFi UMacApp.p
  29237. æT METHOD 
  29238. æC ScrollBy changes the scroller’s translation and scroll bar values by the 
  29239. specified amounts. The deltaH and deltaV parameters specify the amount by which this 
  29240. method changes the scroller's horizontal and vertical coordinates, respectively. 
  29241. If you set redraw to TRUE, then ScrollBy redraws the contents of the scroller 
  29242. to reflect the new translation. You can set redraw to FALSE when you wish to 
  29243. avoid drawing the same view twice, which makes the screen appear to flicker. You 
  29244. must override ScrollBy if the scroll bar's units are not the same as the 
  29245. scroller’s translation units. MacApp calls ScrollBy from several methods that 
  29246. manipulate views, among them TCommand.AutoScroll, TTranscriptView.Scroll, the global 
  29247. routine AutoscrollTTEView, and the TScroller methods RevealRect, ScrollBy, and 
  29248. ScrollTo. You rarely need to override this method. 
  29249.  
  29250.  
  29251.  
  29252. æKY TScroller.ScrollDraw
  29253. æD PROCEDURE TScroller.ScrollDraw(delta: VPoint);
  29254. æFi UMacApp.p
  29255. æT METHOD 
  29256. æC ScrollDraw carries out the drawing associated with making a view appear to 
  29257. scroll by a specified amount. The delta parameter specifies the number of pixels to 
  29258. scroll. MacApp calls ScrollDraw from TScroller.DoScroll; you usually do not 
  29259. need to call it yourself. You usually do not need to override this method. 
  29260.  
  29261.  
  29262.  
  29263. æKY TScroller.ScrollRelative
  29264. æD FUNCTION TScroller.ScrollRelative(vhs: VHSelect; 
  29265.   sBarValue: VCoordinate): VCoordinate;
  29266. æFi UMacApp.p
  29267. æT METHOD 
  29268. æC ScrollRelative determines the scroller’s new translation values, causes the view 
  29269. to scroll appropriately, and may return a nonzero value used to modify the 
  29270. scroll bar’s value. The vhs parameter indicates the scrolling direction. The 
  29271. sBarValue parameter indicates the scroll bar’s value when the user released the 
  29272. mouse with the pointer in the scroll box. The new translation value is set to 
  29273. sBarValue, unless mouse movement is being constrained—that is, the value of 
  29274. fConstrain[vhs] is TRUE. If so, the translation value is rounded to an even multiple 
  29275. of fScrollUnit[vhs], and the difference between this value and sBarValue is 
  29276. returned as ScrollRelative’s result. ScrollRelative is usually called from scroll 
  29277. bar objects when the user releases the mouse with the pointer in the scroll box 
  29278. after tracking it in that control. This method may also be called from 
  29279. application code that simulates the behavior of scroll bars or scroll boxes. You can 
  29280. override ScrollRelative if the scroll bar units are not the same as the scroller’s 
  29281. translation units or if you want to change scrolling behavior. You usually do 
  29282. not need to call this method yourself. 
  29283.  
  29284.  
  29285.  
  29286. æKY TScroller.ScrollStep
  29287. æD FUNCTION TScroller.ScrollStep(vhs: VHSelect; partCode: INTEGER): VCoordinate;
  29288. æFi UMacApp.p
  29289. æT METHOD 
  29290. æC ScrollStep determines the distance, in pixels, that the view is to be scrolled, 
  29291. causes the view to scroll appropriately, and returns the change in the scroll 
  29292. bar’s value. The vhs parameter indicates whether to scroll horizontally or 
  29293. vertically. The partCode parameter indicates the part of the scroll bar that was 
  29294. clicked. Possible values of partCode are inUpButton, inDownButton, inPageUp, or 
  29295. inPageDown. ScrollStep is usually called from scroll bar objects when the user 
  29296. clicks in the scroll bar's arrow or page area. This method may also be called 
  29297. from application code that simulates the behavior of scroll bars. You can override 
  29298. ScrollStep if the scroll bar units are not the same as the scroller’s 
  29299. translation units or if you want to change scrolling behavior. You usually do not need 
  29300. to call this method yourself. 
  29301.  
  29302.  
  29303.  
  29304. æKY TScroller.ScrollTo
  29305. æD PROCEDURE TScroller.ScrollTo(h, v: VCoordinate; redraw: BOOLEAN);
  29306. æFi UMacApp.p
  29307. æT METHOD 
  29308. æC This method sets the scroller’s translation and scroll bar values to the 
  29309. specified values. The coordinates h and v specify the new location of the view’s 
  29310. top-left corner, in superview coordinates. If you set the redraw parameter to TRUE, 
  29311. this method redraws the contents of the scroller to reflect the new 
  29312. translation. You can set redraw to FALSE when you wish to avoid drawing the same view 
  29313. twice, which makes the screen appear to flicker. MacApp calls ScrollTo from 
  29314. TScroller.DoKeyCommand to respond to events generated by the Home and End keys on the 
  29315. Apple Extended Keyboard. ScrollTo is also used internally by 
  29316. TScroller.SetScrollLimits. You usually do not have to call the ScrollTo method 
  29317. yourself. You can override ScrollTo if the scroll bar units are not the same as the 
  29318. scroller’s translation units or if you want to change scrolling behavior. 
  29319.  
  29320.  
  29321.  
  29322. æKY TScroller.SetScrollLimits
  29323. æD PROCEDURE TScroller.SetScrollLimits(scrollLimit: VPoint; drawScrollBars: BOOLEAN);
  29324. æFi UMacApp.p
  29325. æT METHOD 
  29326. æC SetScrollLimits changes the scroller’s maximum translation values. If the new 
  29327. maximum translation value is not equal to the current translation value, this 
  29328. method calls the scroller’s ScrollTo method to reflect the new maximum 
  29329. translation. The scrollLimit parameter specifies the limits to which the user can 
  29330. scroll. 
  29331. If the drawScrollBars parameter is TRUE the control is redrawn immediately; 
  29332. usually this parameter is set to FALSE by TView.BeInScroller. 
  29333.  
  29334.  
  29335.  
  29336. æKY TScroller.SetScrollParameters
  29337. æD PROCEDURE TScroller.SetScrollParameters(horzUnits, vertUnits: VCoordinate; 
  29338.   horzConstraint, vertConstraint: BOOLEAN);
  29339. æFi UMacApp.p
  29340. æT METHOD 
  29341. æC SetScrollParameters sets the scroller’s fScrollUnits and fConstrain fields to 
  29342. the specified parameters. The parameters horzUnits and vertUnits specify the 
  29343. amount of change, either horizontally or vertically, to be made in the translation 
  29344. values when the scroller receives a “scroll-by-arrow” message. The 
  29345. horzConstraint and vertConstraint parameters are set to TRUE if the translation values 
  29346. should be constrained to even multiples of fScrollUnits in either the horizontal or 
  29347. vertical direction. MacApp calls SetScrollParameters from TTEView.BeInScroller 
  29348. to set the scroller parameters and limits for a scrolling TTEView object. A 
  29349. number of initialization methods that deal with scrolling views call 
  29350. SetScrollParameters to perform the same task; among these are the methods 
  29351. TTEView.BeInScroller, TScroller.IRes, and TScroller.IScroller. You can call 
  29352. SetScrollParameters 
  29353. to specify a scroller's scroll units; you usually make this call in the view's 
  29354. initialization method. You rarely need to override this method. 
  29355.  
  29356.  
  29357.  
  29358. æKY TScroller.SubViewChangedSize
  29359. æD PROCEDURE TScroller.SubViewChangedSize(theSubView: TView; delta: VPoint); OVERRIDE;
  29360. æFi UMacApp.p
  29361. æT METHOD 
  29362. æC SubViewChangedSize sets the scroller’s fMaxTranslation and fScrollLimit fields 
  29363. to reflect the size of the specified subview. The parameter theSubView specifies 
  29364. the view for which this method adjusts the scroller. The delta parameter is 
  29365. the amount by which the subview changed size. You probably will not need to 
  29366. override this method. You can call this method when you change the size of a subview 
  29367. of a scroller. 
  29368.  
  29369.  
  29370.  
  29371. æKY TScroller.SuperToLocal
  29372. æD PROCEDURE TScroller.SuperToLocal(VAR thePoint: VPoint); OVERRIDE;
  29373.  
  29374. æFi UMacApp.p
  29375. æT METHOD 
  29376. æC SuperToLocal converts the given point from superview coordinates to local view 
  29377. coordinates. This method overrides TView.SuperToLocal to compensate for the 
  29378. scroller’s coordinate translation. The parameter thePoint is the point that will be 
  29379. converted to local view coordinates. You usually do not need to override this 
  29380. method. 
  29381.  
  29382.  
  29383.  
  29384. æKY TScroller.WRes
  29385. æD PROCEDURE TScroller.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  29386. æFi UMacApp.p
  29387. æT METHOD 
  29388. æC WRes writes the TScroller portion of the view’s resource template to the 
  29389. location specified by the itsParams parameter. The parameter theResource is a handle 
  29390. to the view’s resource template. The parameter itsParams is a pointer to the 
  29391. TScroller section of the view’s resource template. WRes is the inverse of the IRes 
  29392. method, and is used only by programs that write 'view' resources; for example, 
  29393. ViewEdit uses this method to create new 'view' resources from views that are 
  29394. active on the screen. You rarely need to call this method yourself. You must 
  29395. override this method in your subclasses to create your own 'view' resources. Your 
  29396. override should check the size of the space remaining in the template past the 
  29397. end of the previously-written resource data; if there is not enough space to 
  29398. write your data into the file, your override should call the global routine 
  29399. ExpandPtr, passing as arguments the current values of theResource, itsParams, and 
  29400. the size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  29401. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  29402. greater. You need not be concerned about making the 'view' resource handle too big, 
  29403. because MacApp reclaims unused space by returning a new value for itsParams when 
  29404. the WRes method completes. 
  29405.  
  29406.  
  29407.  
  29408. æKY TScroller.WriteRes
  29409. æD PROCEDURE TScroller.WriteRes(theResource: ViewRsrcHndl; 
  29410.   VAR itsParams: Ptr); OVERRIDE;
  29411. æFi UMacApp.p
  29412. æT METHOD 
  29413. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('scrl') and 
  29414. class name ('TScroller') for the 'view' resource template, and then calls WRes 
  29415. to actually write the resource. The parameter theResource is a handle to the 
  29416. view’s resource template. The parameter itsParams is a pointer to the parameters 
  29417. MacApp uses to create the new resource. MacApp calls this method to write a 
  29418. TScroller object as part of a 'view' resource; you can use it in a similar fashion. 
  29419. You can override this method to provide your own unique class name or 
  29420. signature. 
  29421.  
  29422.  
  29423.  
  29424. æKY TSortedList.Compare
  29425. æD FUNCTION TSortedList.Compare(item1, item2: TObject): CompareResult;
  29426.  
  29427.  
  29428. æFi UList.p
  29429. æT METHOD 
  29430. æC The Compare method compares two items in a list. The default method compares the 
  29431. ordinal value of the two items, and returns one of the constants 
  29432. kItem1LessThanItem2, kItem1EqualItem2, or kItem1GreaterThanItem2, according to whether 
  29433. the ordinal value of item1 is less than, equal to, or greater than the ordinal value 
  29434. of item2. The item1 and item2 parameters are the objects that Compare ranks. 
  29435. Compare is called by TSortedList.GetEqualItemNo and TSortedList.Insert. You can 
  29436. call Compare to compare the ordinal values of two objects in a list. You must 
  29437. override Compare to do any other kind of comparison. In your override, you 
  29438. should return an integer that is less than, equal to, or greater than 0 according to 
  29439. whether item1 is less than, equal to, or greater than item2. 
  29440.  
  29441.  
  29442.  
  29443. æKY TSortedList.DoSearch
  29444. æD FUNCTION TSortedList.DoSearch(FUNCTION TestItem(anItem: TObject): CompareResult; 
  29445.   VAR index: ArrayIndex): TObject;
  29446. æFi UList.p
  29447. æT METHOD 
  29448. æC DoSearch performs a binary search on the sorted TList list until TestItem 
  29449. returns 0 or there are no more items to search. The TestItem routine is passed to 
  29450. DoSearch as a parameter. The anItem parameter is bound to each item in the list in 
  29451. turn. The index parameter is used locally by TestItem to search the list in 
  29452. order. DoSearch is called by TSortedList.GetEqualItemNo, TSortedList.Insert, and 
  29453. TSortedList.Search. You can override DoSearch to provide your own search 
  29454. algorithm. 
  29455.  
  29456.  
  29457.  
  29458. æKY TSortedList.Fields
  29459. æD PROCEDURE TSortedList.Fields(PROCEDURE DoToField(fieldName: Str255; 
  29460.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  29461. æFi UList.p
  29462. æT METHOD 
  29463. æC Fields reports the contents of each field of the TSortedList object to the 
  29464. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  29465. the contents of each field. Fields iterates over all the fields of the 
  29466. TSortedList object, performing DoToField on each one. The fieldName parameter is the 
  29467. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  29468. fieldType parameter uses a predefined constant to tell Fields what type of 
  29469. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  29470. You must override this method in your subclasses if you want the Inspector to 
  29471. display your fields. Your override must call INHERITED Fields as its last action 
  29472. to ensure that the inherited fields are also displayed. 
  29473.  
  29474.  
  29475.  
  29476. æKY TSortedList.GetEqualItemNo
  29477. æD FUNCTION TSortedList.GetEqualItemNo(item: TObject): ArrayIndex; OVERRIDE;
  29478. æFi UList.p
  29479. æT METHOD 
  29480. æC GetEqualItemNo returns the index of any element in the list that this object's 
  29481. Compare method considers to be equal to the item parameter. The item parameter 
  29482. is an object in the list. You can call GetEqualItemNo when you want the index of 
  29483. an item meeting your specified search criteria. 
  29484.  
  29485.  
  29486.  
  29487. æKY TSortedList.Insert
  29488. æD PROCEDURE TSortedList.Insert(item: TObject); OVERRIDE;
  29489.  
  29490. æFi UList.p
  29491. æT METHOD 
  29492. æC Insert places the specified item in the list in sorted order, using this 
  29493. object's Compare method to determine the item's location relative to other items in 
  29494. the list. The item parameter specifies the object to be placed in the list. You 
  29495. can override this method to insert an object in sorted order in a list. 
  29496.  
  29497.  
  29498.  
  29499. æKY TSortedList.ISortedList
  29500. æD PROCEDURE TSortedList.ISortedList;
  29501.  
  29502. æFi UList.p
  29503. æT METHOD 
  29504. æC ISortedList initializes a new sorted list. The default method simply calls 
  29505. TList.IList. IList is called by several methods as part of their initialization 
  29506. procedures, including TCommandList.ICommandList and TEntriesList.IEntriesList. You 
  29507. can call it to set initial values for the fields of a TSortedList object; you 
  29508. must always call it once before calling any other method, but never call it twice. 
  29509.  
  29510.  
  29511.  
  29512. æKY TSortedList.Search
  29513. æD FUNCTION TSortedList.Search(FUNCTION TestItem(anItem: TObject):
  29514.   CompareResult): TObject;
  29515. æFi UList.p
  29516. æT METHOD 
  29517. æC Search calls DoSearch for each item in the list. Search calls TestItem until 
  29518. TestItem returns 0 or there are no more entries in the list. You must write the 
  29519. TestItem function to implement your search criteria. The TestItem routine is 
  29520. passed to DoSearch as a parameter. The anItem parameter is an object that TestItem 
  29521. compares with each item in the list. A negative TestItem result indicates that 
  29522. your search criterion is less than anItem. A positive TestItem result indicates 
  29523. that your search criterion is greater than anItem. Search is called by 
  29524. TAssociation.EntryWithKey,, TAssociation RemoveValueAt, and TAssociation.ValueAt. You 
  29525. can use it to obtain an object that meets specific search criteria. 
  29526.  
  29527.  
  29528.  
  29529. æKY TSortedList.Sort
  29530. æD PROCEDURE TSortedList.Sort;
  29531.  
  29532. æFi UList.p
  29533. æT METHOD 
  29534. æC Sort sorts a list by calling TList.SortBy, which in turn calls 
  29535. TSortedList.Compare. You can call this method to sort a list of objects. 
  29536.  
  29537.  
  29538.  
  29539. æKY TSScrollBar.Activate
  29540. æD PROCEDURE TSScrollBar.Activate(entering: BOOLEAN); OVERRIDE;
  29541. æFi UMacApp.p
  29542. æT METHOD 
  29543. æC After focusing, Activate either draws the scroll bar or draws just the frame of 
  29544. the scroll bar, according to the value of the entering parameter. When the 
  29545. value of the entering parameter is TRUE, Activate calls the Toolbox routine 
  29546. ShowControl for the control named in the fCmgrControl field. When the value of 
  29547. entering is FALSE, Activate calls HideControl to hide the control and then calls 
  29548. TSScrollBar.Draw to draw its frame. In both cases, Activate validates the scroll 
  29549. bar’s rectangle to avoid unnecessary window updates. MacApp calls Activate when 
  29550. the view containing a TSScrollBar object is made active. Usually this is in 
  29551. response to a user-generated event such as clicking on the scroll bar itself or 
  29552. making its window the active window. You never need to call Activate yourself 
  29553. unless you change the way MacApp implements scroll bars. 
  29554.  
  29555.  
  29556.  
  29557. æKY TSScrollBar.AttachScroller
  29558. æD PROCEDURE TSScrollBar.AttachScroller(itsScroller: TScroller);
  29559. æFi UMacApp.p
  29560. æT METHOD 
  29561. æC AttachScroller adds a TScroller object to the list of items associated with a 
  29562. TSScrollBar object, and then associates the scroller with the TSScrollBar object. 
  29563. The itsScroller parameter is the TScroller object that is to be associated 
  29564. with the TSScroller scroll bar. AttachScroller is called by 
  29565. TSScrollBar.ISScrollBar when initializing a TSScrollbar object. It is also called by 
  29566. TScroller.CreateTemplateScrollBar when creating a new TScroller object. You can call 
  29567. AttachScroller to associate TSScrollBar objects with instances of TScroller. 
  29568.  
  29569.  
  29570.  
  29571. æKY TSScrollBar.BeInPort
  29572. æD PROCEDURE TSScrollBar.BeInPort(itsPort: GrafPtr); OVERRIDE;
  29573. æFi UMacApp.p
  29574. æT METHOD 
  29575. æC BeInPort associates the TSScrollBar object with the specified grafPort by 
  29576. calling TCtlMgr.BeInPort; it also associates the scroll bar with a window and sets 
  29577. the visibility of the scroll bar based on the state of that window. The itsPort 
  29578. parameter is a pointer to the grafPort in which the TSScrollBar object is to be 
  29579. drawn; the grafPort is used to support graphics or printing operations on the 
  29580. control. MacApp uses BeInPort in TView methods that change active views. You 
  29581. usually do not need to call this method yourself. 
  29582.  
  29583.  
  29584.  
  29585. æKY TSScrollBar.DoMouseCommand
  29586. æD FUNCTION TSScrollBar.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; VAR 
  29587.   hysteresis:  Point): TCommand; OVERRIDE;
  29588. æFi UMacApp.p
  29589. æT METHOD 
  29590. æC DoMouseCommand is overridden to track the mouse when it is in the scroll box 
  29591. (sometimes called the thumb); it retuns NIL. When the mouse button is released, 
  29592. this method passes the scroll bar’s value to each controlled view’s 
  29593. ScrollRelative method. The values returned by each ScrollRelative method are added to 
  29594. the scroll bar’s value. If a part other than the scroll box is clicked, this method 
  29595. calls INHERITED DoMouseCommand. The parameter theMouse is the mouse pointer’s 
  29596. current location, described in view coordinates. The info parameter is the event 
  29597. record of the mouse-down event that caused DoMouseCommand to be called. The 
  29598. hysteresis parameter is a point that represents the horizontal and vertical 
  29599. distance the mouse can travel between clicks and still be considered to be at the 
  29600. same location. MacApp uses this parameter to determine whether a double click has 
  29601. occurred or if a control has moved. DoMouseCommand is called when MacApp 
  29602. receives a mouse-down event in a TSScrollBar object. You usually do not need to call 
  29603. this method yourself. 
  29604.  
  29605.  
  29606.  
  29607. æKY TSScrollBar.Draw
  29608. æD PROCEDURE TSScrollBar.Draw(area: Rect); OVERRIDE;
  29609. æFi UMacApp.p
  29610. æT METHOD 
  29611. æC Draw is overridden so that if the scroll bar is invisible (and assumed to be 
  29612. inactive), its rectangle is framed. Otherwise, INHERITED Draw is called. The area 
  29613. parameter is not used by TSScrollbar.Draw. MacApp calls this method in response 
  29614. to an update event occurring in the scroll bar. You usually do not need to 
  29615. call this method yourself. 
  29616.  
  29617.  
  29618.  
  29619. æKY TSScrollBar.Fields
  29620. æD PROCEDURE TSScrollBar.Fields(PROCEDURE DoToField(fieldName: Str255; 
  29621.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  29622. æFi UMacApp.p
  29623. æT METHOD 
  29624. æC Fields reports the contents of each field of the TSScrollBar object to the 
  29625. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  29626. the contents of each field. Fields iterates over all the fields of the 
  29627. TSScrollBar object, performing DoToField on each one. The fieldName parameter is the 
  29628. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  29629. fieldType parameter uses a predefined constant to tell Fields what type of 
  29630. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  29631. You must override this method in your subclasses if you want the Inspector to 
  29632. display your fields. Your override must call INHERITED Fields as its last action 
  29633. to ensure that the inherited fields are also displayed. 
  29634.  
  29635.  
  29636.  
  29637. æKY TSScrollBar.Free
  29638. æD PROCEDURE TSScrollBar.Free; OVERRIDE;
  29639. æFi UMacApp.p
  29640. æT METHOD 
  29641. æC Free detaches SELF from its associated scroller, frees the list of scrollers, 
  29642. and then calls INHERITED Free. MacApp calls Free when disposing of a scroller; it 
  29643. also calls Free from TScroller.CreateScrollBar if the creation of the scroll 
  29644. bars fails. You can call this method to dispose of a TSScrollBar object; 
  29645. however, you usually do not need to do so yourself because MacApp calls Free when 
  29646. disposing of the window or last view associated with the scroller. You usually do 
  29647. not need to override this method unless you have changed the way MacApp 
  29648. associates scrollers with views. 
  29649.  
  29650.  
  29651.  
  29652. æKY TSScrollBar.IRes
  29653. æD PROCEDURE TSScrollBar.IRes(itsDocument: TDocument; itsSuperView: TView; VAR 
  29654.   itsParams: Ptr); OVERRIDE;
  29655. æFi UMacApp.p
  29656. æT METHOD 
  29657. æC IRes initializes a TSScrollBar object from a 'view' resource template. This 
  29658. method calls INHERITED IRes, which sets the fDefChoice field to mVScrollBarHit or 
  29659. mHScrollBarHit, according to whether the control area’s vertical or horizontal 
  29660. dimension is greater. The itsDocument parameter specifies the document affected 
  29661. by the scroll bar’s action. The itsSuperView parameter is the view in which 
  29662. this scroll bar appears. The itsParams parameter is a pointer to the portion of 
  29663. the 'view' resource data used to initialize this view. When the IRes method 
  29664. finishes initializing the view, the method moves the pointer to the end of this 
  29665. data. MacApp calls this method for each of the views created from a 'view' resource 
  29666. template, usually in response to a NewTemplateWindow or a DoCreateViews call. 
  29667. You never need to call IRes yourself. 
  29668.  
  29669.  
  29670.  
  29671. æKY TSScrollBar.ISScrollBar
  29672. æD PROCEDURE TSScrollBar.ISScrollBar (itsSuperView: TView; itsLocation, 
  29673.   itsSize: VPoint;  itsHSizeDet, itsVSizeDet: SizeDeterminer; itsDirection: VHSelect; 
  29674.   itsMax: LONGINT; itsScroller:  TScroller);
  29675. æFi UMacApp.p
  29676. æT METHOD 
  29677. æC This method initializes a TSScrollBar object and associates it with a view. The 
  29678. itsSuperView parameter is the view in which the scroll bar (which itself is a 
  29679. view) appears. The itsLocation parameter is the control’s location, expressed in 
  29680. view coordinates. The itsSize parameter is the control’s size, in pixels. The 
  29681. itsHSizeDet and itsVSizeDet parameters determine how the view’s horizontal and 
  29682. vertical dimensions are calculated, respectively. Possible values are: 
  29683. sizeSuperView (subview is the same size as superview), sizeRelSuperView (subview size 
  29684. changes an equal amount relative to the superview's size), sizePage (view is the 
  29685. size of one page), sizeFillPages (view expands to fill an exact number of 
  29686. pages), sizeVariable (view size fluctuates according to application-specific 
  29687. criteria), and sizeFixed (no special handling of size issues). The itsDirection 
  29688. parameter is the direction in which the control is offset. The itsMax parameter is 
  29689. the maximum value the control can have. The itsScroller parameter is the 
  29690. TScroller object that is associated with this object. ISScrollBar is called by 
  29691. TScroller.CreateScrollBar to initialize the TSScrollBar object associated with the 
  29692. scroller. You can use ISScrollBar in similar fashion. 
  29693.  
  29694.  
  29695.  
  29696. æKY TSScrollBar.TrackScrollBar
  29697. æD PROCEDURE TSScrollBar.TrackScrollBar (partCode: INTEGER); OVERRIDE;
  29698.  
  29699. æFi UMacApp.p
  29700. æT METHOD 
  29701. æC This method tracks the mouse while the pointer is in a scroll bar's arrow or 
  29702. page area and keeps any associated scrollers synchronized with the scroll bar. The 
  29703. partCode parameter indicates the part of the scroll bar that was clicked (the 
  29704. up arrow, down arrow, or one of the page areas). If the mouse was pressed in 
  29705. the scroll bar's page up area or up arrow, partCode has the value inPageUp or 
  29706. inUpButton, respectively, and TrackScrollBar sets DeltaValue to -1. Otherwise, it 
  29707. sets DeltaValue to 1. TrackScrollBar is called by TScrollbar.ActionProc in 
  29708. response to a mouse event in a scroll bar's active area. You never need to call 
  29709. TrackScrollBar yourself unless you change the way MacApp implements scroll bars. 
  29710. You can override this method if you want an action to take place while the 
  29711. pointer is being tracked in the scroll bar’s arrows or page areas. Typically the 
  29712. action taken is to change the scroll bar’s value appropriately. 
  29713.  
  29714.  
  29715.  
  29716. æKY TSScrollBar.WriteRes
  29717. æD PROCEDURE TSScrollBar.WriteRes (theResource: ViewRsrcHndl; 
  29718.   VAR itsParams: Ptr); OVERRIDE;
  29719. æFi UMacApp.p
  29720. æT METHOD 
  29721. æC WriteRes is overriden to be an empty method so that TSScrollBar objects are not 
  29722. written as part of a 'view' resource. TScroller objects create their own scroll 
  29723. bars. The parameter theResource is a handle to the view’s resource template. 
  29724. The parameter itsParams is a pointer to the parameters MacApp uses to create the 
  29725. new resource. This version of WriteRes ignores these parameters. MacApp does 
  29726. not call this method; you should not, either. 
  29727.  
  29728.  
  29729.  
  29730. æKY TStaticText.ChangeWrap
  29731. æD PROCEDURE TStaticText.ChangeWrap(newAutoWrap, redraw: BOOLEAN);
  29732. æFi UDialog.p
  29733. æT METHOD 
  29734. æC ChangeWrap sets the wrapping behavior of the TStaticText object according to the 
  29735. specified value. If the newAutoWrap parameter is set to TRUE, then the 
  29736. TStaticText object will subsequently wrap a line of text to the next line (if 
  29737. necessary) to prevent the line from extending beyond the right edge of the view. If 
  29738. newAutoWrap is set to FALSE, then the TStaticText object subsequently permits text 
  29739. lines to be longer than the width of the view, wrapping to a new line only at 
  29740. carriage returns. If the value of the redraw parameter is TRUE then the 
  29741. TStaticText object invalidates the view; otherwise, it does not. You can use this 
  29742. method to control the wrapping behavior of TStaticText views. 
  29743.  
  29744.  
  29745.  
  29746. æKY TStaticText.DoSubstitution
  29747. æD PROCEDURE TStaticText.DoSubstitution(VAR theText: Str255);
  29748. æFi UDialog.p
  29749. æT METHOD 
  29750. æC DoSubstitution substitutes a text string for paramText in a TDialogView view 
  29751. each time the view is drawn. The theText parameter is the string that replaces the 
  29752. paramText. TStaticText.Draw calls DoSubstitution to place the text in the dialog. 
  29753.  
  29754.  
  29755.  
  29756. æKY TStaticText.Draw
  29757. æD PROCEDURE TStaticText.Draw(area: Rect); OVERRIDE;
  29758.  
  29759. æFi UDialog.p
  29760. æT METHOD 
  29761. æC This method draws the substituted text in a TDialog view and then calls other 
  29762. methods necessary to complete drawing the view, including INHERITED Draw. 
  29763. TStaticText.Draw accomplishes much of its task by calling ImageText, which in turn 
  29764. calls the global routine MATextBox. The area parameter is the QuickDraw rectangle, 
  29765. specified in local view coordinates, that defines the boundaries of the view; 
  29766. the value of this parameter is passed for use by INHERITED Draw. MacApp calls 
  29767. this method in response to an update event occurring in the TStaticText view. 
  29768. You usually do not need to call this method yourself. 
  29769.  
  29770.  
  29771.  
  29772. æKY TStaticText.Fields
  29773. æD PROCEDURE TStaticText.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  29774.   fieldType: INTEGER)); OVERRIDE;
  29775. æFi UDialog.p
  29776. æT METHOD 
  29777. æC Fields reports the contents of each field of the TStaticText object to the 
  29778. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  29779. the contents of each field. Fields iterates over all the fields of the 
  29780. TStaticText object, performing DoToField on each one. The fieldName parameter is the 
  29781. name of the field. The fieldAddr parameter is the field’s location in memory. The 
  29782. fieldType parameter uses a predefined constant to tell Fields what type of 
  29783. information to look for in a field. MacApp calls Fields from the MacApp Inspector. 
  29784. You must override this method in your subclasses if you want the Inspector to 
  29785. display your fields. Your override must call INHERITED Fields as its last action 
  29786. to ensure that the inherited fields are also displayed. 
  29787.  
  29788.  
  29789.  
  29790. æKY TStaticText.Free
  29791. æD PROCEDURE TStaticText.Free; OVERRIDE;
  29792. æFi UDialog.p
  29793. æT METHOD 
  29794. æC Free releases the memory used by the handles to TStaticText text strings and 
  29795. then calls INHERITED Free to release the memory used by dependent structures. 
  29796. MacApp calls Free when closing a view containing a TStaticText view. You can call 
  29797. Free to release the memory used by a TStaticText object when you no longer need 
  29798. that object. 
  29799.  
  29800.  
  29801.  
  29802. æKY TStaticText.GetText
  29803. æD PROCEDURE TStaticText.GetText(VAR theText: Str255);
  29804.  
  29805.  
  29806. æFi UDialog.p
  29807. æT METHOD 
  29808. æC GetText retrieves the current text drawn by TStaticText.Draw. When GetText 
  29809. returns, the parameter theText stores the text string that this method retrieves. 
  29810. The string stored in theText s to be substituted for parameterized text in a 
  29811. TDialogView view. If there is no current text, the empty string is returned. 
  29812. TStaticText.Draw calls this method to retrieve the text that it draws. You usually do 
  29813. not need to call this method yourself. 
  29814.  
  29815.  
  29816.  
  29817. æKY TStaticText.ImageText
  29818. æD PROCEDURE TStaticText.ImageText(text: Ptr; Length: LONGINT; box: Rect; 
  29819.   just: INTEGER);
  29820.  
  29821. æFi UDialog.p
  29822. æT METHOD 
  29823. æC ImageText is called from the Draw method to draw the specified text in the 
  29824. rectangle indicated by the box parameter with justification just. ImageText simply 
  29825. calls the global routine MATextBox; the following information is essentially the 
  29826. same as that for MATextBox. The text parameter is a pointer to the text to be 
  29827. drawn, and the length parameter indicates the number of characters to draw. The 
  29828. box parameter is a Rect (specified in view coordinates) that must be at least 
  29829. as wide as the first character drawn (about 20 pixels is usually a good width). 
  29830. The just parameter is an integer specifying the type of justification with 
  29831. which to draw the text. TextBox does not create an edit record, nor can the text 
  29832. that it draws be edited; it's used solely for drawing text. Because Pascal 
  29833. strings start with a length byte, you must advance the pointer one position past the 
  29834. beginning of the string to point to the start of the text. TStaticText.Draw 
  29835. calls this method to draw the text in the TStaticText view. You usually don’t 
  29836. need to call this method yourself. 
  29837.  
  29838.  
  29839.  
  29840. æKY TStaticText.IRes
  29841. æD PROCEDURE TStaticText.IRes(itsDocument: TDocument; itsSuperView: TView; 
  29842.   VAR itsParams: Ptr); OVERRIDE;
  29843. æFi UDialog.p
  29844. æT METHOD 
  29845. æC IRes initializes a TStaticText object from a 'view' resource template. The 
  29846. fDefChoice field is set to mStaticTextHit. The itsDocument parameter specifies the 
  29847. document associated with the TStaticText object. The itsSuperView parameter is 
  29848. the view in which the TStaticText object appears. The itsParams parameter is a 
  29849. pointer to the portion of the 'view' resource data used to initialize this view. 
  29850. When the IRes method finishes initializing the view, the method moves the 
  29851. pointer to the end of this data. MacApp calls this method for each of the views 
  29852. created from a 'view' resource template, usually in response to a 
  29853. NewTemplateWindow or a DoCreateViews call. You never need to call IRes yourself. 
  29854.  
  29855.  
  29856.  
  29857. æKY TStaticText.IStaticText
  29858. æD PROCEDURE TStaticText.IStaticText(itsSuperView: TView; itsLocation, itsSize: VPoint; 
  29859.   itsHSizeDet,itsVSizeDet: SizeDeterminer; itsRsrcID, itsIndex: INTEGER);
  29860. æFi UDialog.p
  29861. æT METHOD 
  29862. æC IStaticText initializes a static text item and installs it in the given 
  29863. superview. The fDefChoice field is set to mStaticTextHit. The itsSuperView parameter 
  29864. is the view in which the text (which itself is a control) appears. The 
  29865. itsLocation parameter is the control’s location in view coordinates. The itsSize 
  29866. parameter is the control’s size in pixels. The itsHSizeDet and itsVSizeDet parameters 
  29867. determine how the view’s horizontal and vertical dimensions are calculated, 
  29868. respectively. Possible values are: sizeSuperView (subview is the same size as 
  29869. superview), sizeRelSuperView (subview size changes an equal amount relative to the 
  29870. superview's size), sizePage (view to be the size of one page), sizeFillPages 
  29871. (view expands to fill an exact number of pages), sizeVariable (view size 
  29872. fluctuates according to application-specific criteria), and sizeFixed (no special 
  29873. handling of size issues). The itsRsrcID parameter is the integer that MacApp uses to 
  29874. refer to the string list ('STR') resource. The itsIndex parameter is the 
  29875. integer specifying which string will be returned from a string list. 
  29876.  
  29877.  
  29878.  
  29879. æKY TStaticText.ReleaseText
  29880. æD PROCEDURE TStaticText.ReleaseText;
  29881. æFi UDialog.p
  29882. æT METHOD 
  29883. æC This method releases memory used by the handles to text strings. It also resets 
  29884. fRsrcID to the value of kNoResource and resets the fDataHandle field to NIL. 
  29885. TStaticText.Free calls this method. You usually don’t need to call this method. 
  29886.  
  29887.  
  29888.  
  29889. æKY TStaticText.SetJustification
  29890. æD PROCEDURE TStaticText.SetJustification(theJust: INTEGER; redraw: BOOLEAN);
  29891. æFi UDialog.p
  29892. æT METHOD 
  29893. æC This method stores the value of theJust in fJust and redraws the view if 
  29894. desired. The parameter theJust is an integer specifying text justification, as 
  29895. follows: teJustLeft = 0 teJustCenter = 1 teJustRight = -1 teForceLeft = -2 
  29896. teJustSystem = teJustLeft. If the redraw parameter is set to TRUE, the view will be 
  29897. redrawn with the new text. If redraw is set to FALSE, then the view will not be 
  29898. redrawn even though the new text may affect its appearance. You can set redraw to 
  29899. FALSE when you know the control will be redrawn eventually and you wish to avoid 
  29900. drawing it twice, which makes the screen appear to flicker. 
  29901.  
  29902.  
  29903.  
  29904. æKY TStaticText.SetText
  29905. æD PROCEDURE TStaticText.SetText(theText: Str255; redraw: BOOLEAN);
  29906.  
  29907. æFi UDialog.p
  29908. æT METHOD 
  29909. æC SetText installs the specified text in the TStaticText view by setting the value 
  29910. of fDataHandle to a copy of the string specified in the parameter theText. If 
  29911. requested to do so, this method redraws the view with the new text. The 
  29912. parameter theText is the string to be placed in a TStaticText view. If you set the 
  29913. value of the redraw parameter to TRUE, and the view is focused and visible, the 
  29914. view is redrawn immediately with the new text. If you set the value of the redraw 
  29915. parameter to FALSE, the view is not redrawn even though the new text may 
  29916. affect its appearance. You can set redraw to FALSE when you know the view is redrawn 
  29917. eventually and you wish to avoid drawing it twice, which makes the screen 
  29918. appear to flash. MacApp calls this method to install text in a TStaticText object 
  29919. when it is being initialized. You can call this method to install or change text 
  29920. in a TStaticText view. 
  29921.  
  29922.  
  29923.  
  29924. æKY TStaticText.WRes
  29925. æD PROCEDURE TStaticText.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  29926. æFi UDialog.p
  29927. æT METHOD 
  29928. æC WRes writes the TStaticText portion of the view’s resource template to the 
  29929. location specified by the itsParams parameter. The parameter theResource is a handle 
  29930. to the view’s resource template. The parameter itsParams is a pointer to the 
  29931. TStaticText section of the view’s resource template. WRes is the inverse of the 
  29932. IRes method, and is used only by programs that write 'view' resources; for 
  29933. example, ViewEdit uses this method to create new 'view' resources from views that 
  29934. are active on the screen. You rarely need to call this method yourself. You must 
  29935. override this method in your subclasses to create your own 'view' resources. 
  29936. Your override should check the size of the space remaining in the template past 
  29937. the end of the previously-written resource data; if there is not enough space 
  29938. to write your data into the file, your override should call the global routine 
  29939. ExpandPtr, passing as arguments the current values of theResource, itsParams, 
  29940. and the size of your resource data, in bytes. ExpandPtr expands the 'view' 
  29941. resource handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  29942. greater. You need not be concerned about making the 'view' resource handle too 
  29943. big, because MacApp reclaims unused space by returning a new value for itsParams 
  29944. when the WRes method completes. 
  29945.  
  29946.  
  29947.  
  29948. æKY TStaticText.WriteRes
  29949. æD PROCEDURE TStaticText.WriteRes(theResource: ViewRsrcHndl; 
  29950.   VAR itsParams: Ptr); OVERRIDE;
  29951. æFi UDialog.p
  29952. æT METHOD 
  29953. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('stat') and 
  29954. class name ('TStaticText') for the ‘view’ resource template, and then calls WRes 
  29955. to actually write the resource. The parameter theResource is a handle to the 
  29956. view’s resource template. The parameter itsParams is a pointer to the parameters 
  29957. MacApp uses to create the new resource. MacApp calls this method to write a 
  29958. TStaticText object as part of a 'view' resource; you can use it in a similar 
  29959. fashion. You can override this method to provide your own unique class name or 
  29960. signature. 
  29961.  
  29962.  
  29963.  
  29964. æKY TStdPrintHandler.AdornPage
  29965. æD PROCEDURE TStdPrintHandler.AdornPage;  
  29966. æFi UPrinting.p
  29967. æT METHOD 
  29968. æC AdornPage draws page adornments that are not drawn by the view itself, such as 
  29969. page numbers. If gDebugPrinting is TRUE, then AdornPage prints the page number 
  29970. and draws a box around the interior of the page and another around the printable 
  29971. area of the page. MacApp calls AdornPage when it is about to print a page and 
  29972. the value of the global gDebugPrinting is TRUE. You usually do not need to call 
  29973. this method yourself, but you can override this method to supply your own 
  29974. adornments. 
  29975.  
  29976.  
  29977.  
  29978. æKY TStdPrintHandler.BanishPrintDialog
  29979. æD PROCEDURE TStdPrintHandler.BanishPrintDialog;   
  29980. æFi UPrinting.p
  29981. æT METHOD 
  29982. æC BanishPrintDialog disposes of the printing dialog box displayed by 
  29983. ShowDocBeingPrinted or PosePrintDialog. MacApp calls BanishPrintDialog when the user 
  29984. dismisses the printing dialog box. You usually do not need to call this method 
  29985. yourself. 
  29986.  
  29987.  
  29988.  
  29989. æKY TStdPrintHandler.BreakFollowing
  29990. æD FUNCTION TStdPrintHandler.BreakFollowing(vhs: VHSelect; prevBreak: VCoordinate; 
  29991.   VAR automatic: BOOLEAN): VCoordinate; OVERRIDE;  
  29992. æFi UPrinting.p
  29993. æT METHOD 
  29994. æC BreakFollowing returns the location of the page break that follows the specified 
  29995. page break. The vhs parameter specifies whether the page break to be found is 
  29996. a horizontal or vertical page break; a value of h specifies a horizontal break, 
  29997. and a value of v specifies a vertical one. The prevBreak parameter specifies 
  29998. the page break preceding the one that is to be found. The automatic parameter is 
  29999. returned as TRUE if the page break is an automatic break, as opposed to a 
  30000. user-specified page break. By default in MacApp 2.0, BreakFollowing always sets the 
  30001. automatic parameter to TRUE. MacApp calls BreakFollowing from 
  30002. TView.DoBreakFollowing when it needs to determine the location of a particular page 
  30003. break. You usually do not need to call this method yourself. You can override this 
  30004. method to support manual page breaks. 
  30005.  
  30006.  
  30007.  
  30008. æKY TStdPrintHandler.CalcPageStrips
  30009. æD PROCEDURE TStdPrintHandler.CalcPageStrips(VAR pageStrips: Point); OVERRIDE;   
  30010.  
  30011. æFi UPrinting.p
  30012. æT METHOD 
  30013. æC CalcPageStrips calculates the height and width of the TStdPrintHandler’s 
  30014. associated view. The result is expressed in numbers of pages in each dimension. 
  30015. CalcPageStrips stores the result of its calculation in pageStrips. MacApp calls 
  30016. CalcPageStrips from methods that prepare the view’s image for printing. You usually 
  30017. do not need to call this method yourself. 
  30018.  
  30019.  
  30020.  
  30021. æKY TStdPrintHandler.CalcViewPerPage
  30022. æD PROCEDURE TStdPrintHandler.CalcViewPerPage(VAR amtPerPage: VPoint); OVERRIDE;   
  30023. æFi UPrinting.p
  30024. æT METHOD 
  30025. æC CalcViewPerPage calculates the portion of the TStdPrintHandler’s associated view 
  30026. that will appear on each printed page. The result is expressed in numbers of 
  30027. pixels in each dimension. CalcViewPerPage stores the result of its calculation 
  30028. in amtPerPage. MacApp calls CalcViewPerPage from methods that prepare the view’s 
  30029. image for printing. You usually do not need to call this method yourself. 
  30030.  
  30031.  
  30032.  
  30033. æKY TStdPrintHandler.CheckPrinter
  30034. æD PROCEDURE TStdPrintHandler.CheckPrinter; OVERRIDE;   
  30035. æFi UPrinting.p
  30036. æT METHOD 
  30037. æC CheckPrinter determines whether the printer-configuration parameters have 
  30038. changed. If they have changed then this method changes the object’s corresponding 
  30039. fields to reflect the new configuration. MacApp calls CheckPrinter from a variety 
  30040. of methods that use printer-configuration information. You usually do not need 
  30041. to call this method yourself. 
  30042.  
  30043.  
  30044.  
  30045. æKY TStdPrintHandler.ChkPrintErr
  30046. æD PROCEDURE TStdPrintHandler.ChkPrintErr(VAR err: OSErr; VAR proceed: BOOLEAN; 
  30047.   VAR ranOutOfSpace: BOOLEAN);
  30048.  
  30049.  
  30050. æFi UPrinting.p
  30051. æT METHOD 
  30052. æC ChkPrintErr checks for a Printing Manager error, but only if the value of the 
  30053. proceed parameter is TRUE on entry. The method handles the error that occurs if 
  30054. the error code indicates a disk-space problem during the saving of a spool file. 
  30055. The err parameter is set to the value of the operating system error. The 
  30056. proceed parameter determines whether the print error is checked. The ranOutOfSpace 
  30057. parameter is set to TRUE if there is a disk-space error. MacApp calls 
  30058. ChkPrintErr from several TStdPrintHandler methods to determine whether a Printing 
  30059. Manager error occurred. You usually do not need to call this method yourself. 
  30060.  
  30061.  
  30062.  
  30063. æKY TStdPrintHandler.ChooseSpoolFile
  30064. æD PROCEDURE TStdPrintHandler.ChooseSpoolFile (VAR spoolFileName: Str255; 
  30065.   VAR spoolVRefNum: INTEGER; VAR pagesPerSubjob: INTEGER);   
  30066. æFi UPrinting.p
  30067. æT METHOD 
  30068. æC ChooseSpoolFile obtains the filename and volume of the print spool file, and the 
  30069. number of pages to be spooled before the spooled file is printed. This 
  30070. information is relevant only for spooled printing. The spoolFileName parameter stores 
  30071. the name of the spool file. The spoolVRefNum parameter stores the volume 
  30072. reference number of the volume containing the spool file. The pagesPerSubJob 
  30073. parameter stores the number of pages in each subjob of the spooled printing job. 
  30074. Unless overridden, ChooseSpoolFile stores an empty string in spoolFileName and 0 in 
  30075. spoolVRefNum (indicating that the print driver should use its standard 
  30076. filename), and stores the constant MAXINT in pagesPerSubjob. MacApp calls 
  30077. ChooseSpoolFile from TView.Print if the print job is a spooled job. You usually do not 
  30078. need to call this method yourself. 
  30079.  
  30080.  
  30081.  
  30082. æKY TStdPrintHandler.ClosePrintShop
  30083. æD PROCEDURE TStdPrintHandler.ClosePrintShop;
  30084. æFi UPrinting.p
  30085. æT METHOD 
  30086. æC ClosePrintShop terminates printing activity by calling the Macintosh Toolbox 
  30087. routine PrClose. This method does not signal failure if an error occurs; it only 
  30088. writes an error message to the Debug Transcript. MacApp calls ClosePrintShop 
  30089. when it has finished printing a view. You usually do not need to call this method 
  30090. yourself. 
  30091.  
  30092.  
  30093.  
  30094. æKY TStdPrintHandler.DoInMacPrint
  30095. æD PROCEDURE TStdPrintHandler.DoInMacPrint(PROCEDURE WhatToDo);   
  30096. æFi UPrinting.p
  30097. æT METHOD 
  30098. æC This method sandwiches a call to WhatToDo between the Macintosh Toolbox routines 
  30099. PrOpen and PrClose. The WhatToDo parameter is a procedure with no arguments 
  30100. that you must declare and implement yourself. MacApp calls DoInMacPrint from 
  30101. several TStdPrintHandler methods to perform actions that need to be executed while 
  30102. the Printing Manager is active. You can use DoInMacPrint to perform any actions 
  30103. that must happen with the Printing Manager active. 
  30104.  
  30105.  
  30106.  
  30107. æKY TStdPrintHandler.DoMenuCommand
  30108. æD FUNCTION TStdPrintHandler.DoMenuCommand(aCmdNumber: CmdNumber): TCommand; OVERRIDE;   
  30109. æFi UPrinting.p
  30110. æT METHOD 
  30111. æC DoMenuCommand handles commands associated with the TStdPrintHandler object. 
  30112. Because print handlers are not normally a part of the target chain, this method is 
  30113. explicitly called from the view or document associated with the print handler. 
  30114. The default method returns a TCommand object to handle the commands cPrint, 
  30115. cPrintOne, and cPageSetup; the method handles the cShowBreaks command directly. 
  30116. All other commands are returned to the command chain by calling INHERITED 
  30117. DoMenuCommand. The parameter aCmdNumber is the command number that specifies the 
  30118. command to be processed. MacApp calls DoMenuCommand from event-handling methods that 
  30119. respond to a user’s menu selections. You usually do not need to call this 
  30120. method yourself. 
  30121.  
  30122.  
  30123.  
  30124. æKY TStdPrintHandler.DoPrintIdling
  30125. æD PROCEDURE TStdPrintHandler.DoPrintIdling;
  30126. æFi UPrinting.p
  30127. æT METHOD 
  30128. æC DoPrintIdling is the print job idle time handler. The method handles events in 
  30129. the printing dialog boxes that allow the user to cancel print jobs and, in the 
  30130. case of printing from the Finder, to cancel all printing. 
  30131.  
  30132.  
  30133.  
  30134. æKY TStdPrintHandler.DoSetupMenus
  30135. æD PROCEDURE TStdPrintHandler.DoSetupMenus; OVERRIDE;   
  30136. æFi UPrinting.p
  30137. æT METHOD 
  30138. æC DoSetupMenus enables the menu items associated with the TStdPrintHandler object. 
  30139. MacApp calls DoSetupMenus when the application sets up its menu bar, and when 
  30140. the view associated with the TStdPrintHandler object becomes active. You 
  30141. usually do not need to call this method yourself, but you can call it whenever you 
  30142. want to ensure that the menu items associated with the TStdPrintHandler object 
  30143. are enabled. If you override this method in your subclasses,your override must 
  30144. call INHERITED DoSetupMenus as its first action, to allow other handlers to 
  30145. enable menu items to which they can respond. 
  30146.  
  30147.  
  30148.  
  30149. æKY TStdPrintHandler.DrawPageBreak
  30150. æD PROCEDURE TStdPrintHandler.DrawPageBreak (vhs: VHSelect; whichBreak: INTEGER; 
  30151.   loc: VCoordinate; automatic: BOOLEAN); OVERRIDE;   
  30152. æFi UPrinting.p
  30153. æT METHOD 
  30154. æC DrawPageBreak implements the standard means of drawing a page break in the print 
  30155. handler’s associated view while it is displayed on the screen. This method 
  30156. draws a gray line two pixels wide at each page break. If the value of 
  30157. gDebugPrinting is true then it draws the page numbers at the intersections of the 
  30158. vertical and horizontal page breaks. The vhs parameter specifies whether the page 
  30159. break to be drawn is vertical or horizontal. The whichBreak parameter specifies which 
  30160. page break in numerical sequence is to be drawn. The loc parameter specifies 
  30161. the top-left corner of the page, in view coordinates. The automatic parameter 
  30162. specifies whether the page break was computed automatically by the application or 
  30163. was placed manually by the user; ifthe value of automatic is TRUE, then the 
  30164. page break was computed automatically. MacApp calls DrawPageBreak from 
  30165. TView.DoDrawPageBreak. You usually do not need to call this method yourself. 
  30166.  
  30167.  
  30168.  
  30169. æKY TStdPrintHandler.DrawPageInterior
  30170. æD PROCEDURE TStdPrintHandler.DrawPageInterior;   
  30171. æFi UPrinting.p
  30172. æT METHOD 
  30173. æC DrawPageInterior draws the interior of the page to be printed by calling the 
  30174. view’s DrawContents method. MacApp calls DrawPageInterior from 
  30175. TStdPrintHandler.PrintPage. You usually do not need to call this method yourself. 
  30176.  
  30177.  
  30178.  
  30179. æKY TStdPrintHandler.DrawPrintFeedback
  30180. æD PROCEDURE TStdPrintHandler.DrawPrintFeedback(area: Rect); OVERRIDE;   
  30181. æFi UPrinting.p
  30182. æT METHOD 
  30183. æC DrawPrintFeedback draws the associated view’s page breaks, page numbers, and 
  30184. borders. It can also draw additional information, such as tab stops and rulers. 
  30185. The area parameter is the rectangular area of the view that is visible on the 
  30186. screen. MacApp calls DrawPrintFeedback when it needs to display a view’s printing 
  30187. information, such as page breaks and page numbers. You usually do not need to 
  30188. call this method yourself. 
  30189.  
  30190.  
  30191.  
  30192. æKY TStdPrintHandler.EachBreak
  30193. æD PROCEDURE TStdPrintHandler.EachBreak(vhs: VHSelect; includeLast: BOOLEAN; 
  30194.   FUNCTION DoToBreak(loc: VCoordinate; automatic: BOOLEAN): BOOLEAN);   
  30195. æFi UPrinting.p
  30196. æT METHOD 
  30197. æC EachBreak iterates through the page breaks in the direction specified, calling 
  30198. DoToBreak for each page break. It terminates when DoToBreak returns TRUE or when 
  30199. DoToBreak has been called for the last page break (or for the next-to-the-last 
  30200. if the value of includeLast is FALSE). The locations of page breaks are 
  30201. determined by calling fView.DoBreakFollowing. The vhs parameter specifies whether the 
  30202. page breaks to be processed are vertical or horizontal. A value of v indicates 
  30203. that they are vertical, and a value of h indicates they are horizontal. If the 
  30204. includeLast parameter is set to TRUE, then EachBreak iterates over all page 
  30205. breaks; otherwise ,it iterates over all but the last. DoToBreak is a separately 
  30206. defined function that is called with its argument loc bound to the location of 
  30207. each page break in turn. If the automatic parameter is set to TRUE, then the 
  30208. page break being processed by an iteration is considered to have been computed 
  30209. automatically by the application, rather than having been placed manually by the 
  30210. user. EachBreak is used by CalcPageStrips if the page strips are of varying 
  30211. sizes and by DrawPrintFeedback to display page breaks. You usually do not need to 
  30212. call EachBreak yourself, but you can use it whenever you want to iterate over 
  30213. all page breaks in a view. In such cases you must define an appropriate function 
  30214. to be called on each page break and pass the function as a parameter to 
  30215. EachBreak. 
  30216.  
  30217.  
  30218.  
  30219. æKY TStdPrintHandler.Fields
  30220. æD PROCEDURE TStdPrintHandler.Fields(PROCEDURE DoToField(fieldName: Str255; 
  30221.   fieldAddr: Ptr; fieldType: INTEGER));
  30222. æFi UPrinting.p
  30223. æT METHOD 
  30224. æC Fields reports the contents of each field of the TStdPrintHandler object to the 
  30225. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  30226. report the contents of each field. Fields iterates over all the fields of the 
  30227. TStdPrintHandler object, performing DoToField on each one. The fieldName parameter 
  30228. is the name of the field. The fieldAddr parameter is the field’s location in 
  30229. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  30230. type of information to look for in a field. MacApp calls Fields from the MacApp 
  30231. Inspector. You must override this method in your subclasses if you want the 
  30232. Inspector to display your fields. Your override must call INHERITED Fields as its 
  30233. last action to ensure that the inherited fields are also displayed. 
  30234.  
  30235.  
  30236.  
  30237. æKY TStdPrintHandler.FocusOnBorder
  30238. æD PROCEDURE TStdPrintHandler.FocusOnBorder;   
  30239. æFi UPrinting.p
  30240. æT METHOD 
  30241. æC FocusOnBorder sets the clipping region of the TStdPrintHandler object’s 
  30242. associated view to the area of an entire page, so that page adornments can be drawn 
  30243. outside a page’s interior. MacApp calls FocusOnBorder when it needs to print a 
  30244. page with adornments. You can use this method in a similar fashion. 
  30245.  
  30246.  
  30247.  
  30248. æKY TStdPrintHandler.FocusOnInterior
  30249. æD PROCEDURE TStdPrintHandler.FocusOnInterior; OVERRIDE;   
  30250. æFi UPrinting.p
  30251. æT METHOD 
  30252. æC FocusOnInterior sets the QuickDraw clipping region to the printable area of the 
  30253. view. MacApp calls FocusOnInterior from PrintPage. You usually do not need to 
  30254. call this method yourself. 
  30255.  
  30256.  
  30257.  
  30258. æKY TStdPrintHandler.Free
  30259. æD PROCEDURE TStdPrintHandler.Free; OVERRIDE;
  30260. æFi UPrinting.p
  30261. æT METHOD 
  30262. æC Free releases the memory used by the TStdPrintHandler object and performs any 
  30263. auxiliary cleanup that may be necessary, such as freeing other objects to which 
  30264. the TStdPrintHandler object contains references. MacApp calls Free to dispose of 
  30265. the print handler when a print job is completed or when a print job fails. You 
  30266. usually do not need to call this method yourself. 
  30267.  
  30268.  
  30269.  
  30270. æKY TStdPrintHandler.GetBreakCoord
  30271. æD PROCEDURE TStdPrintHandler.GetBreakCoord(vhs: VHSelect; whichBreak: INTEGER; 
  30272.   VAR loc: VCoordinate);   
  30273. æFi UPrinting.p
  30274. æT METHOD 
  30275. æC GetBreakCoord returns the view coordinate for the specified page break. The vhs 
  30276. parameter indicates whether the page break is horizontal or vertical. The 
  30277. whichBreak parameter is the page break number, where the first page break is 
  30278. numbered 1. GetBreakCoord stores the coordinate of the page break in loc. After 
  30279. computing the page break location, GetBreakCoord caches the page break coordinate in 
  30280. fLastStrip.vh[vhs] and fLastBreak.vh[vhs]. MacApp uses GetBreakCoord to 
  30281. determine what part of the view is printed on each page and to locate page breaks 
  30282. after recomputing them. You usually do not need to call this method yourself. 
  30283.  
  30284.  
  30285.  
  30286. æKY TStdPrintHandler.GetDocName
  30287. æD PROCEDURE TStdPrintHandler.GetDocName(VAR docName: Str255);   
  30288. æFi UPrinting.p
  30289. æT METHOD 
  30290. æC GetDocName obtains the name that is used for a document in printing dialog boxes 
  30291. and error messages. If a document is associated with the TStdPrintHandler 
  30292. object, then the title of the document is returned in the docName parameter. If no 
  30293. document is associated with the TStdPrintHandler object, then the name of the 
  30294. window associated with the view is returned in the docName parameter. MacApp 
  30295. calls GetDocName to retrieve the name of the document for printing purposes. You 
  30296. usually do not need to call this method. 
  30297.  
  30298.  
  30299.  
  30300. æKY TStdPrintHandler.GetDriverName
  30301. æD PROCEDURE TStdPrintHandler.GetDriverName(VAR driverName: Str255);
  30302. æFi UPrinting.p
  30303. æT METHOD 
  30304. æC GetDriverName retrieves the name of the current printer driver. The driverName 
  30305. parameter stores the retrieved name. MacApp calls GetDriverName from 
  30306. TStdPrintHandler.CheckPrinter to retrieve the name of the current printer driver. You 
  30307. usually do not need to call this method yourself. 
  30308.  
  30309.  
  30310.  
  30311. æKY TStdPrintHandler.IdentifySoftware
  30312. æD PROCEDURE TStdPrintHandler.IdentifySoftware; OVERRIDE;
  30313. æFi UPrinting.p
  30314. æT METHOD 
  30315. æC IdentifySoftware writes the version of the UPrinting unit to the Debug 
  30316. Transcript window, and then calls INHERITED IdentifySoftware. MacApp calls 
  30317. IdentifySoftware from TApplication.DoMenuCommand when the user chooses the 
  30318. Show Software Version command from the Debug menu. You usually do not need to call 
  30319. IdentifySoftware yourself. 
  30320.  
  30321.  
  30322.  
  30323. æKY TStdPrintHandler.InstallMargins
  30324. æD PROCEDURE TStdPrintHandler.InstallMargins(newMargins: Rect; 
  30325.   areMinimalMargins: BOOLEAN);   
  30326. æFi UPrinting.p
  30327. æT METHOD 
  30328. æC InstallMargins sets the values of the fields fPageAreas.theMargins and 
  30329. fPageAreas.theInterior using the specified rectangle. The newMargins parameter is the 
  30330. rectangular area that MacApp uses to define the interior of the page; the margins 
  30331. are composed of the area outside that rectangle. If the areMinimalMargins 
  30332. parameter is set to TRUE, then MacApp uses the “minimal margins” scheme; in this 
  30333. scheme, MacApp always maintains margins at the size necessary to have the page 
  30334. interior coincide exactly with the printable area of the page. MacApp calls 
  30335. InstallMargins from methods that change the margins on a printable page. You usually 
  30336. do not need to call this method yourself. 
  30337.  
  30338.  
  30339.  
  30340. æKY TStdPrintHandler.InvalPageFeedback
  30341. æD PROCEDURE TStdPrintHandler.InvalPageFeedback;   
  30342. æFi UPrinting.p
  30343. æT METHOD 
  30344. æC InvalPageFeedback forces the printing feedback images of a document’s displayed 
  30345. view to be redrawn. MacApp calls InvalPageFeedback when the page breaks change 
  30346. or when the state of the fShowBreaks field changes. MacApp calls 
  30347. InvalPageFeedback from event-handling methods that can change the arrangement of 
  30348. printing feedback information, such as the location of page breaks. You usually do not 
  30349. need to call this method yourself, but you can use it to ensure that the feedback 
  30350. information in the current display is correct. 
  30351.  
  30352.  
  30353.  
  30354. æKY TStdPrintHandler.IStdPrintHandler
  30355. æD PROCEDURE TStdPrintHandler.IStdPrintHandler(itsDocument: TDocument;   
  30356.   itsView: TView; itsSquareDots, itsHFixedSize, itsVFixedSize: BOOLEAN);   
  30357. æFi UPrinting.p
  30358. æT METHOD 
  30359. æC IStdPrintHandler initializes a TStdPrintHandler object. It associates the 
  30360. TStdPrintHandler object with a view and a document. The method also sets the 
  30361. TStdPrintHandler object’s fields to default values. The itsDocument parameter is the 
  30362. TDocument object to be associated with the TStdPrintHandler object. The itsView 
  30363. parameter is the TView object to be associated with it. If the itsSquareDots 
  30364. parameter is set to TRUE, then the TStdPrintHandler object assumes that the dots 
  30365. used to print the view should be square. If the itsHFixedSize parameter is set 
  30366. to TRUE, then the print handler assumes that the horizontal dimension of the 
  30367. page is fixed; if itsVFixedSize is set to TRUE, then it assumes that the vertical 
  30368. page dimension is fixed. You must call IStdPrintHandler when you create a new 
  30369. TStdPrintHandler object. Do not override IStdPrintHandler. 
  30370.  
  30371.  
  30372.  
  30373. æKY TStdPrintHandler.LocatePageInterior
  30374. æD PROCEDURE TStdPrintHandler.LocatePageInterior(pageNumber: INTEGER; 
  30375.   VAR loc: Point); OVERRIDE;   
  30376. æFi UPrinting.p
  30377. æT METHOD 
  30378. æC LocatePageInterior determines the view coordinates of the top-left corner of a 
  30379. printed page that corresponds to the TStdPrintHandler object’s associated view. 
  30380. The pageNumber parameter is the number of the page whose interior is to be 
  30381. located. MacApp stores the resulting location in the loc parameter. MacApp calls 
  30382. LocatePageInterior when it must specify the area of a view that is to be printed 
  30383. on a page. You usually do not need to call this method yourself. 
  30384.  
  30385.  
  30386.  
  30387. æKY TStdPrintHandler.MaxPageNumber
  30388. æD FUNCTION TStdPrintHandler.MaxPageNumber: INTEGER; OVERRIDE;   
  30389. æFi UPrinting.p
  30390. æT METHOD 
  30391. æC MaxPageNumber returns the largest page number that could be reasonably printed, 
  30392. given the properties of the view. The resulting value may not necessarily be as 
  30393. large as the actual number of pages if the view to be printed is very 
  30394. large—for example, spreadsheets can occupy more area than could reasonably be printed. 
  30395. MacApp calls MaxPageNumber when it prepares to print a view. You usually do not 
  30396. need to call this method yourself. 
  30397.  
  30398.  
  30399.  
  30400. æKY TStdPrintHandler.OneSubJob
  30401. æD FUNCTION TStdPrintHandler.OneSubJob(subjobFirstPage, subjobLastPage: INTEGER; 
  30402.   justSpool: BOOLEAN; partialJob: BOOLEAN; VAR ranOutOfSpace: BOOLEAN; 
  30403.   VAR lastPageTried: INTEGER; VAR proceed: BOOLEAN): TCommand;   
  30404. æFi UPrinting.p
  30405. æT METHOD 
  30406. æC OneSubJob prints one subjob, where the subjob consists of the pages specified by 
  30407. the values of subjobFirstPage and subjobLastPage. To print an entire document, 
  30408. it may be necessary to break it into subjobs if spooled printing is in effect 
  30409. and there isn’t enough disk space to spool the entire document. MacApp prints 
  30410. each subjob by calling the Printing Manager routine PrOpenDoc, printing the 
  30411. required pages, and calling PrCloseDoc. For spooled jobs, each page is printed as 
  30412. many times as is required by the job. For unspooled jobs, each page is printed 
  30413. once and the printer itself reproduces the copies if needed. MacApp stores TRUE 
  30414. in ranOutOfSpace if OneSubJob has run out of disk space while spooling pages. 
  30415. In that case, lastPageTried is the page in which OneSubJob ran out of space. 
  30416. MacApp stores FALSE in proceed if the user cancels the job, or if an error occurs 
  30417. causing the job to be terminated. MacApp calls OneSubJob from 
  30418. TStdPrintHandler.Print. You usually do not need to call this method yourself. 
  30419.  
  30420.  
  30421.  
  30422. æKY TStdPrintHandler.OpenPrintShop
  30423. æD PROCEDURE TStdPrintHandler.OpenPrintShop;
  30424. æFi UPrinting.p
  30425. æT METHOD 
  30426. æC OpenPrintShop activates the Printing Manager. MacApp calls OpenPrintShop from 
  30427. TStdPrintHandler.DoInMacPrint. You usually do not need to call this method 
  30428. yourself. 
  30429.  
  30430.  
  30431.  
  30432. æKY TStdPrintHandler.PageToStrip
  30433. æD FUNCTION TStdPrintHandler.PageToStrip(pageNumber: INTEGER); Point;   
  30434. æFi UPrinting.p
  30435. æT METHOD 
  30436. æC PageToStrip returns the horizontal and vertical page strip for the specified 
  30437. page number. The page strip is the numbered row or column of pages in a document 
  30438. that contains the specified page. The horizontal and vertical strip numbers are 
  30439. returned as the horizontal and vertical coordinates of a point. The pageNumber 
  30440. parameter is the number of the page whose strips are to be located. MacApp 
  30441. calls PageToStrip from TStdPrintHandler.SetPage. You usually do not need to call 
  30442. this method yourself, but you can use it if you need to determine the page strips 
  30443. of a specific page. 
  30444.  
  30445.  
  30446.  
  30447. æKY TStdPrintHandler.PointToPageStrip
  30448. æD FUNCTION TStdPrintHandler.PointToPageStrip(pointInView: VPoint): Point;   
  30449. æFi UPrinting.p
  30450. æT METHOD 
  30451. æC PointToPageStrip returns the horizontal and vertical page strip for the view point. 
  30452. The page strip is the numbered row or column of pages in a document that 
  30453. contains the specified point. The horizontal and vertical strip numbers are returned 
  30454. as the horizontal and vertical coordinates of a point. The pointInView parameter 
  30455. is the view point whose strips are to be located. You can use PointToPageStrip 
  30456. when you need to determine the page strips in which a particular view point occurs. 
  30457.  
  30458.  
  30459.  
  30460. æKY TStdPrintHandler.PoseJobDialog
  30461. æD FUNCTION TStdPrintHandler.PoseJobDialog: BOOLEAN;   
  30462. æFi UPrinting.p
  30463. æT METHOD 
  30464. æC PoseJobDialog displays the job dialog box by calling the Toolbox routine 
  30465. PrJobDialog. If the user confirms the dialog, PoseJobDialog returns TRUE. If the user 
  30466. cancelled the dialog, PoseJobDialog returns FALSE. MacApp calls PoseJobDialog 
  30467. from methods that start the printing process. You usually do not need to call 
  30468. this method yourself. 
  30469.  
  30470.  
  30471.  
  30472. æKY TStdPrintHandler.PosePageSetupDialog
  30473. æD FUNCTION TStdPrintHandler.PosePageSetupDialog(VAR proceed: BOOLEAN; 
  30474.   isUndoable: BOOLEAN): TCommand;   
  30475.  
  30476. æFi UPrinting.p
  30477. æT METHOD 
  30478. æC PosePageSetupDialog displays the Page Setup dialog box. MacApp sets the proceed 
  30479. parameter to the result returned from the dialog box. If isUndoable is set to 
  30480. TRUE, then a TPrintStyleChangeCommand object is created so that changes made in 
  30481. the dialog box will be undoable, and this command object is returned as the 
  30482. method’s result. Otherwise, PosePageSetupDialog returns NIL. MacApp calls 
  30483. PosePageSetupDialog from methods that start the printing process. You usually do not 
  30484. need to call this method yourself. 
  30485.  
  30486.  
  30487.  
  30488. æKY TStdPrintHandler.PosePrintDialog
  30489. æD PROCEDURE TStdPrintHandler.PosePrintDialog;   
  30490. æFi UPrinting.p
  30491. æT METHOD 
  30492. æC PosePrintDialog displays the “Printing in progress” dialog box and leaves it on 
  30493. the screen. The standard printing dialog resources are in the resource file 
  30494. Printing.r. Their resource IDs are phFinderPrintDialog and phSpoolPrintDialog. 
  30495. MacApp uses the phFinderPrintDialog dialog box when printing from the Finder. This 
  30496. dialog box has a Cancel button for canceling the current job, and a Cancel All 
  30497. button for canceling the current and subsequent jobs. MacApp uses the 
  30498. phSpoolPrintDialog in all other cases. This dialog box has only a Cancel button. The 
  30499. printing dialog box is removed from the screen by TStdPrintHandler.BanishPrintDialog. 
  30500. You usually do not need to call this method yourself. 
  30501.  
  30502.  
  30503.  
  30504. æKY TStdPrintHandler.Print
  30505. æD FUNCTION TStdPrintHandler.Print(itsCmdNumber: CmdNumber; 
  30506.   VAR proceed: BOOLEAN): TCommand; OVERRIDE;   
  30507. æFi UPrinting.p
  30508. æT METHOD 
  30509. æC Print handles a request to print the contents of the TStdPrintHandler’s 
  30510. associated view and returns a TCommand object to handle printing. The itsCmdNumber 
  30511. parameter is a command number that specifies how the printing is to be done. MacApp 
  30512. defines several predefined command numbers for printing from the File menu. 
  30513. These predefined command numbers include the following: cPrFileBase (= 176) 
  30514. cPrFileMax (= 195) ( Note: Command numbers between cPrFileBase and cPrFileMax are 
  30515. sent to a document's fDocPrintHandler even if it is not in the fTarget chain.) 
  30516. cPageSetup (Page Setup) cPrintOne(Print One) cPrint(Print) cPrintToFile(Print to 
  30517. File) cPrintSpoolFile(Print Spooled File) cPrViewBase (= 201) cPrViewMax (= 
  30518. 250) (Note: Command numbers between cPrViewBase and cPrViewMax are printing 
  30519. commands applied to a displayed view in the fTarget chain.) cShowBorders (Show View 
  30520. Borders). The proceed parameter is a flag that is set to TRUE when MacApp 
  30521. determines that it is okay to print. MacApp calls Print to print the contents of the 
  30522. TStdPrintHandler’s associated view. You usually do not need to call this method 
  30523. yourself. 
  30524.  
  30525.  
  30526.  
  30527. æKY TStdPrintHandler.PrinterChanged
  30528. æD PROCEDURE TStdPrintHandler.PrinterChanged; OVERRIDE;   
  30529. æFi UPrinting.p
  30530. æT METHOD 
  30531. æC PrinterChanged forces repagination of the view awaiting printing to reflect new 
  30532. printer-configuration information. MacApp calls PrinterChanged when it 
  30533. determines that printer-configuration information has changed. You usually do not need 
  30534. to call this method yourself. 
  30535.  
  30536.  
  30537.  
  30538. æKY TStdPrintHandler.PrintPage
  30539. æD PROCEDURE TStdPrintHandler.PrintPage (aPageNumber: INTEGER);   
  30540. æFi UPrinting.p
  30541. æT METHOD 
  30542. æC PrintPage prints a single page of the TStdPrintHandler object’s associated 
  30543. document. The aPageNumber parameter is the number of the page to be printed. MacApp 
  30544. calls PrintPage when performing spooled printing. You can use this method 
  30545. whenever you need to print a single page of a document. 
  30546.  
  30547.  
  30548.  
  30549. æKY TStdPrintHandler.PrintSpoolFile
  30550. æD PROCEDURE TStdPrintHandler.PrintSpoolFile(anHPrint: Handle; VAR err: OSErr; 
  30551.   VAR proceed: BOOLEAN);
  30552.  
  30553. æFi UPrinting.p
  30554. æT METHOD 
  30555. æC PrintSpoolFile prints an image that was spooled by the print driver. The 
  30556. anHPrint parameter specifies the handle of the image to be printed. The err parameter 
  30557. specifies the error number to be generated if the spooling fails. The proceed 
  30558. parameter must be set to TRUE for the method to operate. MacApp calls this 
  30559. method when the user attempts to print a spooled file. You usually do not need to 
  30560. call this method. 
  30561.  
  30562.  
  30563.  
  30564. æKY TStdPrintHandler.RedoPageBreaks
  30565. æD PROCEDURE TStdPrinthandler.RedoPageBreaks; OVERRIDE;  
  30566. æFi UPrinting.p
  30567. æT METHOD 
  30568. æC RedoPageBreaks recalculates the locations of page breaks in the TStdPrintHandler 
  30569. object’s associated view. MacApp calls RedoPageBreaks from TView.DoPagination. 
  30570. You usually do not need to call this method yourself, although you can call it 
  30571. to ensure that the view’s page breaks are correct. 
  30572.  
  30573.  
  30574.  
  30575. æKY TStdPrintHandler.Reset
  30576. æD PROCEDURE TStdPrintHandler.Reset; OVERRIDE;
  30577.  
  30578. æFi UPrinting.p
  30579. æT METHOD 
  30580. æC Reset changes the state of the print handler to use its default values. MacApp 
  30581. calls Reset from methods that restore the TStdPrintHandler object’s default 
  30582. settings. You can use this method in a similar fashion. 
  30583.  
  30584.  
  30585.  
  30586. æKY TStdPrintHandler.SetDefaultPrintInfo
  30587. æD PROCEDURE TStdPrintHandler.SetDefaultPrintInfo; OVERRIDE;
  30588.  
  30589. æFi UPrinting.p
  30590. æT METHOD 
  30591. æC SetDefaultPrintInfo creates a PrintInfo record and initializes it to default 
  30592. values. MacApp calls SetDefaultPrintInfo from methods that establish a default 
  30593. state for the TStdPrintHandler object, such as IPrintHandler. The default version 
  30594. is an empty method. TStdPrintHandler subclasses must override this method to 
  30595. provide useful behavior. 
  30596.  
  30597.  
  30598.  
  30599. æKY TStdPrintHandler.SetMargins
  30600. æD PROCEDURE TStdPrintHandler.SetMargins;   
  30601. æFi UPrinting.p
  30602. æT METHOD 
  30603. æC SetMargins resets the printing margins of the TStdPrintHandler object’s 
  30604. associated view to those specified by the value of fPageAreas.theMargins. MacApp calls 
  30605. SetMargins when recalculating page breaks. You can use this method to ensure 
  30606. that the margin settings are current. 
  30607.  
  30608.  
  30609.  
  30610. æKY TStdPrintHandler.SetPage
  30611. æD PROCEDURE TStdPrintHandler.SetPage(aPageNumber: INTEGER);   
  30612. æFi UPrinting.p
  30613. æT METHOD 
  30614. æC SetPage sets up the TStdPrintHandler object to print the specified page of the 
  30615. object’s associated document. This method determines the horizontal and vertical 
  30616. page breaks that define the page to be printed. The aPageNumber parameter is 
  30617. the number of the page to be printed. MacApp calls SetPage from 
  30618. TStdPrintHandler.PrintPage. You usually do not need to call this method yourself. 
  30619.  
  30620.  
  30621.  
  30622. æKY TStdPrintHandler.SetPageInterior
  30623. æD PROCEDURE TStdPrintHandler.SetPageInterior(pageNumber: INTEGER): OVERRIDE;   
  30624. æFi UPrinting.p
  30625. æT METHOD 
  30626. æC SetPageInterior creates the margin around the image that is to be printed. The 
  30627. image is the portion of the TStdPrintHandler object’s associated view that will 
  30628. be printed. The pageNumber parameter specifies the page of the view that is to 
  30629. be printed. MacApp calls SetPageInterior when it creates the page image that it 
  30630. will send to the printer. You usually do not need to call this method 
  30631. yourself. 
  30632.  
  30633.  
  30634.  
  30635. æKY TStdPrintHandler.SetPageOffset
  30636. æD PROCEDURE TStdPrintHandler.SetPageOffset(coord: VPoint): OVERRIDE;   
  30637. æFi UPrinting.p
  30638. æT METHOD 
  30639. æC SetPageOffset sets the value of the global variable gPageOffset to the specified 
  30640. value.The global variable gPageOffset defines the top-left corner, in view 
  30641. coordinates, of a page to be printed from the TStdPrintHandler object’s associated 
  30642. view. The coord parameter is the view point that will become the top-left 
  30643. corner of the page. MacApp calls SetPageOffset from TView.DoSetPageOffset when the 
  30644. view is about to be printed. You usually do not need to call this method 
  30645. yourself. 
  30646.  
  30647.  
  30648.  
  30649. æKY TStdPrintHandler.SetPrintExtent
  30650. æD PROCEDURE TStdPrintHandler.SetPrintExtent;   
  30651. æFi UPrinting.p
  30652. æT METHOD 
  30653. æC SetPrintExtent calls the GetPrintExtent method of the TStdPrintHandler object’s 
  30654. associated view to specify the portion of the view that is to be printed. 
  30655. MacApp calls SetPrintExtent from methods that start the printing process or display 
  30656. on the screen the image that is to be printed. You usually do not need to call 
  30657. this method yourself. Do not override SetPrintExtent. 
  30658.  
  30659.  
  30660.  
  30661. æKY TStdPrintHandler.SetupForFinder
  30662. æD FUNCTION TStdPrintHandler.SetupForFinder: BOOLEAN; OVERRIDE;   
  30663. æFi UPrinting.p
  30664. æT METHOD 
  30665. æC SetupForFinder sets up the TStdPrintHandler object for printing from the Finder. 
  30666. MacApp calls SetupForFinder when the user has selected a document created by 
  30667. the application and then chosen the Print command from the Finder’s File menu. 
  30668. You usually do not need to call this method yourself. 
  30669.  
  30670.  
  30671.  
  30672. æKY TStdPrintHandler.SetupPrintOne
  30673. æD FUNCTION TStdPrinthandler.SetupPrintOne: BOOLEAN;   
  30674. æFi UPrinting.p
  30675. æT METHOD 
  30676. æC SetupPrintOne sets up the TStdPrintHandler to print one copy of the document. It 
  30677. does not use a job dialog box; instead, it simply validates the print 
  30678. handler’s print record and prints the entire contents of the document. MacApp calls 
  30679. SetupPrintOne from methods that handle the user’s printing requests. You usually 
  30680. do not need to call this method yourself. 
  30681.  
  30682.  
  30683.  
  30684. æKY TStdPrintHandler.ShowDocBeingPrinted
  30685. æD PROCEDURE TStdPrintHandler.ShowDocBeingPrinted(entering: BOOLEAN);   
  30686. æFi UPrinting.p
  30687. æT METHOD 
  30688. æC ShowDocBeingPrinted creates or disposes of an invisible dialog box used by the 
  30689. Printing Manager to get the title of the document being printed. MacApp sets the 
  30690. title of the document to the title returned by GetDocName. If the entering 
  30691. parameter is set to TRUE, then ShowDocBeingPrinted creates the dialog box; if it 
  30692. is set to FALSE, then the method disposes of the dialog box. MacApp calls 
  30693. ShowDocBeingPrinted when setting up to print from the Finder. You usually do not need 
  30694. to call this method yourself. 
  30695.  
  30696.  
  30697.  
  30698. æKY TStdPrintHandler.ShowsOnScreen
  30699. æD FUNCTION TStdPrintHandler.ShowsOnScreen: BOOLEAN;
  30700. æFi UPrinting.p
  30701. æT METHOD 
  30702. æC ShowsOnScreen returns TRUE only if the TStdPrintHandler object has an associated 
  30703. view that is in an active window. MacApp calls ShowsOnScreen when it must 
  30704. determine whether a TStdPrintHandler’s associated view is currently displayed on 
  30705. the screen. You can use it for the same purpose. 
  30706.  
  30707.  
  30708.  
  30709. æKY TStdPrintHandler.StripToPage
  30710. æD FUNCTION TStdPrintHandler.StripToPage(hStrip, vStrip: INTEGER): INTEGER;   
  30711. æFi UPrinting.p
  30712. æT METHOD 
  30713. æC StripToPage returns the page number for the specified horizontal and vertical 
  30714. page strips. Page strips are the numbered rows and columns of pages that make up 
  30715. the whole printable area of a view. The hStrip parameter is the number of the 
  30716. horizontal strip, and the vStrip parameter is the number of the vertical strip, 
  30717. of the page to be identified. MacApp calls StripToPage when it must determine 
  30718. the page defined by a particular hroizontal and vertical page strip. You can use 
  30719. this method for the same purpose. 
  30720.  
  30721.  
  30722.  
  30723. æKY TStdPrintHandler.ValidatePrintRecord
  30724. æD PROCEDURE TStdPrintHandler.ValidatePrintRecord (VAR didChange: BOOLEAN);   
  30725. æFi UPrinting.p
  30726. æT METHOD 
  30727. æC ValidatePrintRecord determines whether the information in the print record for 
  30728. the TStdPrintHandler object’s associated view is compatible with the user's 
  30729. current printer choice. If the record is valid, the function returns FALSE (no 
  30730. change); if invalid, the record is adjusted to the default values stored in the 
  30731. printer resource file, and the function returns TRUE. MacApp stores TRUE in the 
  30732. didChange parameter if the print record has changed; otherwise, it stores FALSE. 
  30733. MacApp calls ValidatePrintRecord from a variety of methods that prepare for 
  30734. printing. You can use this method whenever you need to determine whether a print 
  30735. record has changed. 
  30736.  
  30737.  
  30738.  
  30739. æKY TTECommand.BanishOldText
  30740. æD PROCEDURE TTECommand.BanishOldText;
  30741. æFi UTEView.p
  30742. æT METHOD 
  30743. æC BanishOldText checks if the selection is valid and then removes the text that is 
  30744. being cut or replaced. BanishOldText is called by TTECommand.DoMainFunction 
  30745. when the user cuts or pastes text. You never need to call it if you are satisfied 
  30746. with the default text-editing facilities provided in MacApp. 
  30747.  
  30748.  
  30749.  
  30750. æKY TTECommand.DoIt
  30751. æD PROCEDURE TTECommand.DoIt; OVERRIDE;
  30752. æFi UTEView.p
  30753. æT METHOD 
  30754. æC DoIt focuses the view, then calls TTECommand.DoMainFunction to remove the 
  30755. selection, install the new text, and, if appropriate, redraw the view. MacApp 
  30756. overrides this method from all subclasses of TTECommand except TTEPasteCommand. MacApp 
  30757. calls this method when the user changes the text in a standard or 
  30758. application-specific manner. For example, MacApp calls this method if the user cut, 
  30759. copies, or pastes text into a TTEView view. You rarely need to call DoIt yourself, 
  30760. although you can do so from an override of the TTECommand.RedoIt method. 
  30761.  
  30762.  
  30763.  
  30764. æKY TTECommand.DoMainFunction
  30765. æD PROCEDURE TTECommand.DoMainFunction;
  30766. æFi UTEView.p
  30767. æT METHOD 
  30768. æC DoMainFunction installs the new text in a selection, removing the old text if 
  30769. the operation is a cut or paste. DoMainFunction also redraws the view if the 
  30770. command just executed was not a copy command. DoMainFunction is called by 
  30771. TTECommand.DoIt, TTECommand.RedoIt, and TTECutCopyCommand.DoIt to do the actual cut or 
  30772. copy operation on a selection; you can use it for the same purpose when editing 
  30773. text in TTEView views. You will rarely need to call it yourself if you are 
  30774. satisfied with the default text-editing facilities of MacApp. 
  30775.  
  30776.  
  30777.  
  30778. æKY TTECommand.Fields
  30779. æD PROCEDURE TTECommand.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  30780.   fieldType: INTEGER)); OVERRIDE;
  30781. æFi UTEView.p
  30782. æT METHOD 
  30783. æC Fields reports the contents of each field of the TTECommand object to the MacApp 
  30784. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  30785. contents of each field. Fields iterates over all the fields of the TTECommand 
  30786. object, performing DoToField on each one. The fieldName parameter is the name 
  30787. of the field. The fieldAddr parameter is the field’s location in memory. The 
  30788. fieldType parameter uses a predefined constant to tell Fields what type of 
  30789. information to look for in a field. MacApp calls Fields from the MacApp Inspector. You 
  30790. must override this method in your subclasses if you want the Inspector to 
  30791. display your fields. Your override must call INHERITED Fields as its last action to 
  30792. ensure that the inherited fields are also displayed. 
  30793.  
  30794.  
  30795.  
  30796. æKY TTECommand.Free
  30797. æD PROCEDURE TTECommand.Free; OVERRIDE;
  30798.  
  30799. æFi UTEView.p
  30800. æT METHOD 
  30801. æC Free disposes of the text handles holding information needed for Undo and Redo, 
  30802. then frees SELF by calling INHERITED Free. MacApp calls Free to dispose of 
  30803. command objects when they are no longer needed; for example, Free is called by 
  30804. TApplication.PerformCommand after the command has been handled. 
  30805. TApplication.CommitLastCommand also calls it after the user chooses another complex 
  30806. command. (In MacApp, a “complex command” is one that changes the document and can be 
  30807. undone, or one that requires mouse tracking.) You usually do not need to call this 
  30808. method yourself. 
  30809.  
  30810.  
  30811.  
  30812. æKY TTECommand.InstallNewText
  30813. æD PROCEDURE TTECommand.InstallNewText;
  30814. æFi UTEView.p
  30815. æT METHOD 
  30816. æC InstallNewText is called by TTECommand.DoMainFunction in the DoIt and RedoIt 
  30817. phases of cut or paste commands. You can call this method to install styled or 
  30818. nonstyled text in a TTEView view. 
  30819.  
  30820.  
  30821.  
  30822. æKY TTECommand.ITECommand
  30823. æD PROCEDURE TTECommand.ITECommand(itsTEView: TTEView; itsCmdNumber: CmdNumber; 
  30824.   itsSaveText: BOOLEAN);
  30825. æFi UTEView.p
  30826. æT METHOD 
  30827. æC ITECommand initializes the command object, associating it with a TEView and a 
  30828. command number. It also initializes the instance variables used by the 
  30829. TTECommand.DoIt, UndoIt, and RedoIt; if unsuccessful, this method terminates through 
  30830. the Failure mechanism. The itsTEView parameter is the TTEView associated with this 
  30831. command. The itsCmdNumber parameter is the command number that is associated 
  30832. with a particular menu command. The command number is used in the 'cmnu' resource 
  30833. in the resource description file; you usually define a constant to represent 
  30834. that number in both the resource description file and in the appropriate 
  30835. interface or implementation file of the application. The itsSaveText parameter is set 
  30836. to FALSE by TTEStyleCommand.ITECommand, and TRUE by the ITECommand methods in 
  30837. its other subclasses. ITECommand is called by the initialization method of each 
  30838. of its subclasses: TTECutCopyCommand.ITECutCopyCommand, 
  30839. TTEPasteCommand.ITEPasteCommand, TTEStyleCommand.ITEStyleCommand, and 
  30840. TTETypingCommand.ITETypingCommand all use this inherited method to perform a common 
  30841. set of initialization tasks on newly created command objects. In addition, 
  30842. TTEView.DoMakeEditCommand calls TTECommand.ITECommand for this purpose. You can call 
  30843. ITECommand to initialize the fields of an instance of TTECommand if you make your own 
  30844. subclass of TTECommand. 
  30845.  
  30846.  
  30847.  
  30848. æKY TTECommand.RedoIt
  30849. æD PROCEDURE TTECommand.RedoIt; OVERRIDE;
  30850. æFi UTEView.p
  30851. æT METHOD 
  30852. æC RedoIt restores the selection to its state prior to the execution of Undo, 
  30853. removes the selection, and installs the new text. MacApp calls RedoIt when the user 
  30854. chooses Redo from the Edit menu to redo a Cut, Copy, Paste, or Clear command 
  30855. and sometimes to redo typed characters. You can call RedoIt from 
  30856. TYourTTECommand.RedoIt. 
  30857.  
  30858.  
  30859.  
  30860. æKY TTECommand.RemoveAdditions
  30861. æD PROCEDURE TTECommand.RemoveAdditions;
  30862. æFi UTEView.p
  30863. æT METHOD 
  30864. æC RemoveAdditions removes characters added by TTECommand.DoIt. RemoveAdditions is 
  30865. called by TTECommand.UndoIt to remove characters added to a TTEView view by 
  30866. TTECommand.DoIt. You can call this method yourself to do the same; however, you 
  30867. usually do not need to unless you modify the text-editing features of MacApp. 
  30868.  
  30869.  
  30870.  
  30871. æKY TTECommand.RestoreSelection
  30872. æD PROCEDURE TTECommand.RestoreSelection;
  30873. æFi UTEView.p
  30874. æT METHOD 
  30875. æC RestoreSelection sets the selection to what it was just before the DoIt phase of 
  30876. the command was performed. RestoreSelection is called by TTECommand.RedoIt, 
  30877. TTECommand.UndoIt, TTEStyleCommand.RedoIt, and TTEStyleCommand.UndoIt. You can 
  30878. call it to restore the selection in a TTEView view to its state prior to the 
  30879. execution of the last Undo or Redo command. 
  30880.  
  30881.  
  30882.  
  30883. æKY TTECommand.ReviveDeletions
  30884. æD PROCEDURE TTECommand.ReviveDeletions;
  30885. æFi UTEView.p
  30886. æT METHOD 
  30887. æC ReviveDeletions reinserts the characters removed by TTECommand.DoIt. 
  30888. ReviveDeletions is called by TTECommand.UndoIt after it focuses the view and restores 
  30889. the selection appropriately. You can call this method yourself to reinsert 
  30890. characters in a TTEView view that were removed in the DoIt phase of the command. 
  30891.  
  30892.  
  30893.  
  30894. æKY TTECommand.UndoIt
  30895. æD PROCEDURE TTECommand.UndoIt; OVERRIDE;
  30896. æFi UTEView.p
  30897. æT METHOD 
  30898. æC UndoIt first focuses the view, then calls RemoveAdditions, ReviveDeletions, and 
  30899. RestoreSelection to undo the last command. If the command being undone is Cut, 
  30900. Clear, Paste, a style command, or typing, this method also redraws the view. 
  30901. MacApp calls this method when the user selects the Undo item from the Edit menu. 
  30902. You never need to call UndoIt yourself. 
  30903.  
  30904.  
  30905.  
  30906. æKY TTECutCopyCommand.DoIt
  30907. æD PROCEDURE TTECutCopyCommand.DoIt; OVERRIDE;
  30908. æFi UTEView.p
  30909. æT METHOD 
  30910. æC DoIt creates a new TTEView view that will become the Clipboard view, and then 
  30911. calls DoMainFunction, which does the actual cut or copy. MacApp calls this method 
  30912. when the user chooses the Cut item or the Copy item from the application's 
  30913. File menu. You never need to call DoIt yourself. 
  30914.  
  30915.  
  30916.  
  30917. æKY TTECutCopyCommand.Fields
  30918. æD PROCEDURE TTECutCopyCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  30919.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  30920. æFi UTEView.p
  30921. æT METHOD 
  30922. æC Fields reports the contents of each field of the TTECutCopyCommand object to the 
  30923. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  30924. report the contents of each field. Fields iterates over all the fields of the 
  30925. TTECutCopyCommand object, performing DoToField on each one. The fieldName parameter 
  30926. is the name of the field. The fieldAddr parameter is the field’s location in 
  30927. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  30928. type of information to look for in a field. MacApp calls Fields from the MacApp 
  30929. Inspector. You must override this method in your subclasses if you want the 
  30930. Inspector to display your fields. Your override must call INHERITED Fields as its 
  30931. last action to ensure that the fields from superclasses are also displayed. 
  30932.  
  30933.  
  30934.  
  30935. æKY TTECutCopyCommand.Free
  30936. æD PROCEDURE TTECutCopyCommand.Free; OVERRIDE;
  30937. æFi UTEView.p
  30938. æT METHOD 
  30939. æC Free releases the memory used by the command object and associated data 
  30940. structures by calling INHERITED Free. MacApp calls Free to dispose of command objects 
  30941. when they are no longer needed; for example, Free is called by 
  30942. TApplication.PerformCommand after the command has been handled. 
  30943. TApplication.CommitLastCommand also calls it after the user chooses another complex 
  30944. command. (In MacApp, a “complex command” is one that changes the document and can be 
  30945. undone, or one that requires mouse tracking.) You usually do not need to call this 
  30946. method yourself. 
  30947.  
  30948.  
  30949.  
  30950. æKY TTECutCopyCommand.ITECutCopyCommand
  30951. æD PROCEDURE TTECutCopyCommand.ITECutCopyCommand(itsTEView: TTEView; 
  30952.   itsCmdNumber: CmdNumber);
  30953.  
  30954. æFi UTEView.p
  30955. æT METHOD 
  30956. æC ITECutCopyCommand initializes fields particular to TTECutCopyCommand objects and 
  30957. calls its inherited method, TCommand.ITECommand, to initialize the rest of the 
  30958. fields that a TTECutCopyCommand object inherits from TTECommand. The itsTEView 
  30959. parameter is the TTEView that is affected by this command. The itsCmdNumber 
  30960. parameter is the command number that is associated with a particular menu 
  30961. command. The command number is used in the 'cmnu' resource in the resource description 
  30962. file; you usually define a constant to represent that number in both the 
  30963. resource description file and in the appropriate interface or implementation file of 
  30964. the application. TTEView.DoMakeEditCommand calls ITECutCopyCommand to 
  30965. initialize a command object and pass it to TApplication.PerformCommand, which handles 
  30966. the command. You can call ITECutCopyCommand to initialize TTECutCopyCommand objects. 
  30967.  
  30968.  
  30969.  
  30970. æKY TTECutCopyCommand.ReviveDeletions
  30971. æD PROCEDURE TTECutCopyCommand.ReviveDeletions; OVERRIDE;
  30972. æFi UTEView.p
  30973. æT METHOD 
  30974. æC ReviveDeletions reinserts the characters removed by a Cut command. The 
  30975. ReviveDeletions method checks the variable fCmdNumber to make sure the command is 
  30976. indeed a Cut command and then simply calls its INHERITED ReviveDeletions method. 
  30977. ReviveDeletions is called by TTECommand.UndoIt after UndoIt focuses the view and 
  30978. removes the added text. You probably will not need to call ReviveDeletions, 
  30979. although you can do so to reinsert characters in its associated TTEView that were 
  30980. removed in the DoIt phase of the command. 
  30981.  
  30982.  
  30983.  
  30984. æKY TTEPasteCommand.Fields
  30985. æD PROCEDURE TTEPasteCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  30986.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  30987. æFi UTEView.p
  30988. æT METHOD 
  30989. æC Fields reports the contents of each field of the TTEPasteCommand object to the 
  30990. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  30991. report the contents of each field. Fields iterates over all the fields of the 
  30992. TTEPasteCommand object, performing DoToField on each one. The fieldName parameter is 
  30993. the name of the field. The fieldAddr parameter is the field’s location in 
  30994. memory. The fieldType parameter uses a predefined constant to tell Fields what type 
  30995. of information to look for in a field. MacApp calls Fields from the MacApp 
  30996. Inspector. You must override this method in your subclasses if you want the 
  30997. Inspector to display your fields. Your override must call INHERITED Fields as its last 
  30998. action to ensure that the inherited fields are also displayed. 
  30999.  
  31000.  
  31001.  
  31002. æKY TTEPasteCommand.ITEPasteCommand
  31003. æD PROCEDURE TTEPasteCommand.ITEPasteCommand(itsTEView: TTEView);
  31004.  
  31005. æFi UTEView.p
  31006. æT METHOD 
  31007. æC ITEPasteCommand initializes a command object used to paste Clipboard data, 
  31008. associating it with a TTEView view and a command number. The itsTEView parameter is 
  31009. the TTEView view associated with the command. ITEPasteCommand is called by 
  31010. TTEView.DoMakeEditCommand when the user selects the Paste command for a TTEView 
  31011. view. You can call ITEPasteCommand to initialize TTEPasteCommand objects. 
  31012.  
  31013.  
  31014.  
  31015. æKY TTEStyleCommand.DoIt
  31016. æD PROCEDURE TTEStyleCommand.DoIt; OVERRIDE;
  31017. æFi UTEView.p
  31018. æT METHOD 
  31019. æC DoIt applies a single style to a selection range. MacApp calls this method when 
  31020. the user selects the appropriate style command defined by your application in 
  31021. TTEView.DoMenuCommand. You never need to call DoIt yourself. 
  31022.  
  31023.  
  31024.  
  31025. æKY TTEStyleCommand.Fields
  31026. æD PROCEDURE TTEStyleCommand.Fields(PROCEDURE  DoToField(fieldName: Str255; 
  31027.   fieldAddr: Ptr;  fieldType: INTEGER)); OVERRIDE;
  31028. æFi UTEView.p
  31029. æT METHOD 
  31030. æC Fields reports the contents of each field of the TTEStyleCommand object to the 
  31031. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  31032. report the contents of each field. Fields iterates over all the fields of the 
  31033. TTEStyleCommand object, performing DoToField on each one. The fieldName parameter is 
  31034. the name of the field. The fieldAddr parameter is the field’s location in 
  31035. memory. The fieldType parameter uses a predefined constant to tell Fields what type 
  31036. of information to look for in a field. MacApp calls Fields from the MacApp 
  31037. Inspector. You must override this method in your subclasses if you want the 
  31038. Inspector to display your fields. Your override must call INHERITED Fields as its last 
  31039. action to ensure that the inherited fields are also displayed. 
  31040.  
  31041.  
  31042.  
  31043. æKY TTEStyleCommand.InstallManyStyles
  31044. æD PROCEDURE TTEStyleCommand.InstallManyStyles(newStyls: StScrpHandle);
  31045. æFi UTEView.p
  31046. æT METHOD 
  31047. æC InstallManyStyles applies multiple text styles to a selection. The newStyls 
  31048. parameter is a handle to the style scrap. The style scrap is a record containing 
  31049. the style data for the current selection. MacApp calls this method from 
  31050. TTEStyleCommand.UndoIt to restore the original styles to a text selection. You can 
  31051. call InstallManyStyles to apply multiple styles to a text selection. 
  31052.  
  31053.  
  31054.  
  31055. æKY TTEStyleCommand.InstallOneStyle
  31056. æD PROCEDURE TTEStyleCommand.InstallOneStyle(newStyl: TextStyle);
  31057.  
  31058. æFi UTEView.p
  31059. æT METHOD 
  31060. æC InstallOneStyle applies one text style to a selection. The newStyl parameter is 
  31061. a handle to the style scrap. The style scrap is a record containing the style 
  31062. data for the current selection. InstallOneStyle is called by 
  31063. TTEStyleCommand.DoIt and TTEStyleCommand.UndoIt. You can call it to apply a single 
  31064. text style to a text selection in a TTEView view. 
  31065.  
  31066.  
  31067.  
  31068. æKY TTEStyleCommand.ITEStyleCommand
  31069. æD PROCEDURE TTEStyleCommand.ITEStyleCommand(itsTEView: TTEView; 
  31070.   itsNewStyle: TextStyle; itsCmdNumber: CmdNumber; itsMode: INTEGER);
  31071. æFi UTEView.p
  31072. æT METHOD 
  31073. æC ITEStyleCommand initializes the command; if it is unsuccessful, the Failure 
  31074. mechanism signals an error. The itsTEView parameter associates the command with a 
  31075. TTEView view. The itsNewStyle parameter specifies the style to apply to the 
  31076. current text selection. The itsCmdNumber parameter is a user-defined command number 
  31077. assigned to each command in a menu. Command numbers are defined in the 
  31078. application's resource description file and in the TTEYourView.DoMenuCommand method. 
  31079. The itsMode parameter indicates the type of style change to make to the text, as 
  31080. follows: doFont = 1 doFace = 2 doSize = 4 doColor = 8 doAll = 15 MacApp calls 
  31081. this method when the user selects the appropriate style command from the menu. 
  31082. You don't call ITEStyleCommand yourself; instead, you create a TTEStyle command 
  31083. in your DoMenuCommand method by calling DoMakeStyle command, which creates, 
  31084. initializes, and returns the style command. 
  31085.  
  31086.  
  31087.  
  31088. æKY TTEStyleCommand.RedoIt
  31089. æD PROCEDURE TTEStyleCommand.RedoIt; OVERRIDE;
  31090. æFi UTEView.p
  31091. æT METHOD 
  31092. æC RedoIt restores the selection to its state before the last UndoIt was executed 
  31093. and then calls TTEStyleCommand.DoIt to restore the text style to that selection. 
  31094. MacApp calls this method when the user chooses the Redo item from the Edit 
  31095. menu. You never need to call RedoIt yourself. 
  31096.  
  31097.  
  31098.  
  31099. æKY TTEStyleCommand.UndoIt
  31100. æD PROCEDURE TTEStyleCommand.UndoIt; OVERRIDE;
  31101.  
  31102.  
  31103. æFi UTEView.p
  31104. æT METHOD 
  31105. æC UndoIt removes the style changes caused by the last DoIt, restores the previous 
  31106. selection, and installs any styles that were present in the selection before 
  31107. DoIt was called. MacApp calls this method when the user chooses the Undo item 
  31108. from the Edit menu. You never need to call UndoIt yourself. 
  31109.  
  31110.  
  31111.  
  31112. æKY TTETypingCommand.AddCharacter
  31113. æD PROCEDURE TTETypingCommand.AddCharacter(aChar: Char);
  31114. æFi UTEView.p
  31115. æT METHOD 
  31116. æC The AddCharacter method adds another character to an existing TTETypingCommand 
  31117. object. AddCharacter calls the following TTETypingCommand methods: DoNormalChar, 
  31118. which adds a character to the text record; BkSpcRight, which deletes a 
  31119. character to the right of the original selection; BkSpcLeft, which deletes a character 
  31120. to the left of the original selection; and FwdDelete, which deletes one or 
  31121. more characters appearing after the current text insertion point. The aChar 
  31122. parameter is the character being added. AddCharacter is called by 
  31123. TTETypingCommand.DoIt when the user types the first character of a text sequence in a 
  31124. TTEView view. The AddCharacter method is also called by TTEView.DoKeyCommand when the 
  31125. user types additional characters (that is, if a typing command already exists, 
  31126. DoKeyCommand calls AddCharacter directly). 
  31127.  
  31128.  
  31129.  
  31130. æKY TTETypingCommand.BkSpcLeft
  31131. æD PROCEDURE TTETypingCommand.BkSpcLeft(theText: Handle; curStart: INTEGER);
  31132. æFi UTEView.p
  31133. æT METHOD 
  31134. æC BkSpcLeft handles keystrokes that backspace to the left of the original 
  31135. selection. The parameter theText is a handle to the text being edited. The curStart 
  31136. parameter is an integer specifying the starting location of the text insertion 
  31137. point. TTETypingCommand.AddCharacter calls BkSpcLeft when the user types a 
  31138. standard backspace—that is, one that moves the insertion point to the left. You 
  31139. usually do not call BkSpcLeft if you do not modify the text-editing facilities in 
  31140. MacApp. (Note: MacApp assumes no character will ever be longer than 4 bytes, 
  31141. allowing it to work in scripts having up to four billion characters.) 
  31142.  
  31143.  
  31144.  
  31145. æKY TTETypingCommand.BkSpcRight
  31146. æD PROCEDURE TTETypingCommand.BkSpcRight(theText: Handle; curStart: INTEGER);
  31147.  
  31148. æFi UTEView.p
  31149. æT METHOD 
  31150. æC BkSpcRight handles keystrokes that backspace to the right of the original 
  31151. selection. The parameter theText is a handle to the text being edited. The curStart 
  31152. parameter is an integer specifying the starting location of the text insertion 
  31153. point. BkSpcRight is called by TTETypingCommand.AddCharacter when the user 
  31154. backspaces to the right of the original selection. You probably will not need to 
  31155. call this method. 
  31156.  
  31157.  
  31158.  
  31159. æKY TTETypingCommand.CompleteTyping
  31160. æD PROCEDURE TTETypingCommand.CompleteTyping;
  31161.  
  31162. æFi UTEView.p
  31163. æT METHOD 
  31164. æC CompleteTyping marks the selection as allowing no more typing and updates the 
  31165. style scrap, if any. TTEView.DoneTyping calls TTETypingCommand.CompleteTyping 
  31166. after it checks that the value of fTypingCommand is not set to NIL. MacApp 
  31167. considers keystrokes to be commands, just like menu commands and mouse commands; thus, 
  31168. MacApp calls TTEView.DoneTyping before the execution of further commands that 
  31169. affect a TTEView view. DoneTyping is called from the TTEView methods 
  31170. DoKeyCommand, DoMenuCommand, DoMouseCommand, BeInPort, and InstallSelection. The 
  31171. DoKeyCommand method calls DoneTyping as each keystroke is handled. DoMenuCommand, and 
  31172. DoMouseCommand also call it prior to handling other commands. BeInPort and 
  31173. InstallSelection call it to stabilize the view before focusing and installing a 
  31174. selection. You usually call TTEView.DoneTyping rather than calling CompleteTyping 
  31175. directly when you need to mark a TTEView view as allowing no more typing. 
  31176.  
  31177.  
  31178.  
  31179. æKY TTETypingCommand.DoIt
  31180. æD PROCEDURE TTETypingCommand.DoIt; OVERRIDE;
  31181.  
  31182. æFi UTEView.p
  31183. æT METHOD 
  31184. æC DoIt simply calls AddCharacter. MacApp calls this method in response to a user 
  31185. command. (Remember that in MacApp, keystrokes are considered commands.) MacApp 
  31186. may also call DoIt as part of a TTETypingCommand.RedoIt method. You do not need 
  31187. to call DoIt unless you modify the text-editing facilities in MacApp. 
  31188.  
  31189.  
  31190.  
  31191. æKY TTETypingCommand.DoNormalChar
  31192. æD PROCEDURE TTETypingCommand.DoNormalChar(aChar: Char);
  31193. æFi UTEView.p
  31194. æT METHOD 
  31195. æC DoNormalChar handles any typed character except a backspace. The aChar parameter 
  31196. represents the keystroke the user typed. DoNormalChar is called by 
  31197. TTETypingCommand.AddCharacter. Because MacApp intercepts keystrokes and dispatches 
  31198. them appropriately, you usually do not call DoNormalChar yourself. 
  31199.  
  31200.  
  31201.  
  31202. æKY TTETypingCommand.Fields
  31203. æD PROCEDURE TTETypingCommand.Fields(PROCEDURE DoToField(fieldName: Str255; 
  31204.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  31205. æFi UTEView.p
  31206. æT METHOD 
  31207. æC Fields reports the contents of each field of the TTETypingCommand object to the 
  31208. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  31209. report the contents of each field. Fields iterates over all the fields of the 
  31210. TTETypingCommand object, performing DoToField on each one. The fieldName parameter 
  31211. is the name of the field. The fieldAddr parameter is the field’s location in 
  31212. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  31213. type of information to look for in a field. MacApp calls Fields from the MacApp 
  31214. Inspector. You must override this method in your subclasses if you want the 
  31215. Inspector to display your fields. Your override must call INHERITED Fields as its 
  31216. last action to ensure that the inherited fields are also displayed. 
  31217.  
  31218.  
  31219.  
  31220. æKY TTETypingCommand.Free
  31221. æD PROCEDURE TTETypingCommand.Free; OVERRIDE;
  31222. æFi UTEView.p
  31223. æT METHOD 
  31224. æC Free releases the memory used by the TTETypingCommand object and dependent 
  31225. structures. If the value of fTEView.fTypingCommand is SELF, it sets this variable to 
  31226. NIL. It then calls INHERITED Free. MacApp calls Free to dispose of command 
  31227. objects when they are no longer needed; for example, Free is called by 
  31228. TApplication.PerformCommand after the command has been handled. 
  31229. TApplication.CommitLastCommand also calls it after the user chooses another complex 
  31230. command. (In MacApp, a “complex command” is one that changes the document and can be 
  31231. undone, or one that requires mouse tracking.) You usually do not need to call this 
  31232. method yourself. 
  31233.  
  31234.  
  31235.  
  31236. æKY TTETypingCommand.FwdDelete
  31237. æD PROCEDURE TTETypingCommand.FwdDelete(theText: Handle; curStart, curEnd: INTEGER);
  31238. æFi UTEView.p
  31239. æT METHOD 
  31240. æC FwdDelete handles keystrokes that delete text appearing after the current 
  31241. location of the text insertion point. The parameter theText is a handle to the text 
  31242. being edited. The curStart parameter is the current location of the insertion 
  31243. point. The curEnd parameter is the location of the insertion point after the edit 
  31244. is complete. FwdDelete is called by TTETypingCommand.AddCharacter when the 
  31245. user presses the Forward Delete key on the Apple Extended Keyboard. Because MacApp 
  31246. intercepts keystrokes and dispatches them for you, you usually do not call the 
  31247. FwdDelete method yourself. 
  31248.  
  31249.  
  31250.  
  31251. æKY TTETypingCommand.ITETypingCommand
  31252. æD PROCEDURE TTETypingCommand.ITETypingCommand(itsTEView: TTEView; itsFirstChar: Char);
  31253. æFi UTEView.p
  31254. æT METHOD 
  31255. æC TTETypingCommand.ITETypingCommand initializes a TTETypingCommand object; if not 
  31256. successful, the Failure mechanism terminates the process with a message that 
  31257. initialization failed. The itsTEView parameter associates the command with an 
  31258. instance of a TTEView view. The itsFirstChar parameter stores the first character 
  31259. the user typed; that character is passed to AddCharacter by the DoIt method. 
  31260. ITETypingCommand is called by TTEView.DoMakeTypingCommand and 
  31261. TTEView.DoKeyCommand when the user presses a key and a new command is needed. You can 
  31262. call it to initialize new instances of TTETypingCommand. 
  31263.  
  31264.  
  31265.  
  31266. æKY TTETypingCommand.RedoIt
  31267. æD PROCEDURE TTETypingCommand.RedoIt; OVERRIDE;
  31268. æFi UTEView.p
  31269. æT METHOD 
  31270. æC MacApp uses TTETypingCommand.RedoIt to redo a typing change. MacApp calls this 
  31271. method when the user chooses the Redo item from the Edit menu. You never need to 
  31272. call this method yourself. 
  31273.  
  31274.  
  31275.  
  31276. æKY TTETypingCommand.UndoIt
  31277. æD PROCEDURE TTETypingCommand.UndoIt; OVERRIDE;
  31278.  
  31279. æFi UTEView.p
  31280. æT METHOD 
  31281. æC TTETypingCommand.UndoIt restores the document to its state prior to the 
  31282. execution of the last DoIt or RedoIt command. MacApp calls this method when the user 
  31283. chooses the Undo item from the Edit menu. You never need to call this method 
  31284. yourself. 
  31285.  
  31286.  
  31287.  
  31288. æKY TTEView.AutoScrolling
  31289. æD PROCEDURE TTEView.AutoScrolling(doScrolling: BOOLEAN);
  31290. æFi UTEView.p
  31291. æT METHOD 
  31292. æC AutoScrolling sets a flag that determines whether the TTEView object is capable 
  31293. of automatic scrolling. If automatic scrolling is enabled, then typing or 
  31294. dragging beyond the boundaries of the view causes scrolling of the view contents to 
  31295. keep the insertion point visible. If the doScrolling parameter is set to TRUE, 
  31296. automatic scrolling is enabled; if doScrolling is set to FALSE, automatic 
  31297. scrolling is disabled. MacApp calls AutoScrolling from the global routine 
  31298. AutoScrollTEView to enable automatic scrolling in the currently active TTEView object. 
  31299. It also calls this method from TDialogView.MakeTEView so that the TTEView objects 
  31300. in dialog boxes have automatic scrolling enabled. You can use AutoScrolling to 
  31301. set the automatic scrolling flag for your TTEView objects. 
  31302.  
  31303.  
  31304.  
  31305. æKY TTEView.BeInPort
  31306. æD PROCEDURE TTEView.BeInPort(itsPort: GrafPtr); OVERRIDE;
  31307. æFi UTEView.p
  31308. æT METHOD 
  31309. æC BeInPort associates the TextEditRecord used by the TTEView object with the 
  31310. specified grafPort. The itsPort parameter is the grafPort in which the TTEView 
  31311. object will draw its text; the grafPort is used to support graphics or printing 
  31312. operations on the TTEView object. MacApp calls BeInPort from methods that create 
  31313. and initialize TTEView objects. You usually do not need to call this method 
  31314. yourself. 
  31315.  
  31316.  
  31317.  
  31318. æKY TTEView.BeInScroller
  31319. æD PROCEDURE TTEView.BeInScroller(itsScroller: TScroller); OVERRIDE;
  31320. æFi UTEView.p
  31321. æT METHOD 
  31322. æC BeInScroller associates the TTEView object with a specified scroller and allows 
  31323. MacApp to set the parameters that control scrolling in TTEView views. The 
  31324. method uses the specified TScroller object to establish the necessary parameters. 
  31325. The itsScroller parameter is the TScroller object used to set scrolling 
  31326. parameters. MacApp calls BeInScroller from several methods that create and initialize 
  31327. TTEView objects. You usually do not need to call this method yourself. 
  31328.  
  31329.  
  31330.  
  31331. æKY TTEView.CalcMinSize
  31332. æD PROCEDURE TTEView.CalcMinSize(VAR minSize: VPoint); OVERRIDE;
  31333. æFi UTEView.p
  31334. æT METHOD 
  31335. æC CalcMinSize calculates the minimum dimensions of the TTEView object. The minSize 
  31336. parameter contains the calculated size, represented as a view point, when the 
  31337. method returns. MacApp calls CalcMinSize from methods that adjust the size of 
  31338. the TTEView object. You usually do not need to call this method yourself, but 
  31339. you can use it to determine the smallest rectangle the view can occupy. 
  31340.  
  31341.  
  31342.  
  31343. æKY TTEView.CalcRealHeight
  31344. æD FUNCTION TTEView.CalcRealHeight: LONGINT;
  31345. æFi UTEView.p
  31346. æT METHOD 
  31347. æC CalcRealHeight returns the height of the text displayed by the TTEView object. 
  31348. If the last character is a carriage return, then CalcRealHeight includes an 
  31349. extra blank line in its height calculation. MacApp calls CalcRealHeight from 
  31350. TTEView.CalcMinSize and from other methods that must determine the vertical dimension 
  31351. of a TTEView object. You usually do not need to call this method yourself, but 
  31352. you can use it if you must know the height of a text view. 
  31353.  
  31354.  
  31355.  
  31356. æKY TTEView.CalcRealWidth
  31357. æD FUNCTION TTEView.CalcRealWidth: LONGINT;
  31358.  
  31359. æFi UTEView.p
  31360. æT METHOD 
  31361. æC This method calculates the true width of a TextEdit record. In MacApp 2.0, the 
  31362. method is supported only for TextEdit records that are not styled. 
  31363.  
  31364.  
  31365.  
  31366. æKY TTEView.CalcSelLoc
  31367. æD PROCEDURE TTEView.CalcSelLoc(VAR selectionRect: Rect);
  31368. æFi UTEView.p
  31369. æT METHOD 
  31370. æC CalcSelLoc computes a rectangle that contains the current text selection. The 
  31371. method stores the computed rectangle in the selectionRect parameter. MacApp calls 
  31372. CalcSelLoc from TTEView.ScrollSelectionIntoView. You can use this method when 
  31373. you need to determine the location of the selected text in a TTEView object. 
  31374.  
  31375.  
  31376.  
  31377. æKY TTEView.ChangeWrap
  31378. æD PROCEDURE TTEView.ChangeWrap(newAutoWrap, redraw: BOOLEAN);
  31379. æFi UTEView.p
  31380. æT METHOD 
  31381. æC ChangeWrap sets the wrapping behavior of the TTEView object according to the 
  31382. specified value. If newAutoWrap is set to TRUE, then the TTEView object will wrap 
  31383. text if necessary to prevent a line from extending farther than the right edge 
  31384. of the view. If newAutoWrap is set to FALSE, then the TTEView object will 
  31385. permit text lines to be longer than the width of the view, wrapping to a new line 
  31386. only at carriage returns. If the value of redraw is TRUE, then the TTEView object 
  31387. redraws the view; otherwise, it does not. MacApp calls ChangeWrap from 
  31388. TTEView.MakeTERecord. You can use this method to control the wrapping behavior of text 
  31389. views. 
  31390.  
  31391.  
  31392.  
  31393. æKY TTEView.ClikLoop
  31394. æD FUNCTION TTEView.ClikLoop: BOOLEAN;
  31395.  
  31396. æFi UTEView.p
  31397. æT METHOD 
  31398. æC ClikLoop is called by the global routine ClickLoopForTTEView. The default 
  31399. version automatically handles automatic scrolling for the TTEView view. MacApp calls 
  31400. this method when the user clicks in a TTEView view. You usually do not need to 
  31401. call this method. You can override the method to take different actions when 
  31402. the user clicks in the TTEView view. 
  31403.  
  31404.  
  31405.  
  31406. æKY TTEView.ComputeSize
  31407. æD PROCEDURE TTEView.ComputeSize(VAR newSize: VPoint); OVERRIDE;
  31408. æFi UTEView.p
  31409. æT METHOD 
  31410. æC ComputeSize computes a point that represents the horizontal and vertical 
  31411. dimensions of the TTEView object. The method stores the computed point in the newSize 
  31412. parameter. MacApp calls ComputeSize from methods that must use or adjust the 
  31413. size of the TTEView object. You can use this method in a similar fashion. 
  31414.  
  31415.  
  31416.  
  31417. æKY TTEView.ContainsClipType
  31418. æD FUNCTION TTEView.ContainsClipType(aType: ResType): BOOLEAN; OVERRIDE;
  31419. æFi UTEView.p
  31420. æT METHOD 
  31421. æC ContainsClipType returns the value TRUE if the TTEView object can display data 
  31422. of type 'TEXT'. The aType parameter is a resource type identifier that specifies 
  31423. the type of data to be tested. MacApp calls ContainsClipType from the global 
  31424. routine CanPaste when it must determine whether it can paste the contents of the 
  31425. Clipboard into a particular view. You can use this method in a similar fashion. 
  31426.  
  31427.  
  31428.  
  31429. æKY TTEView.ContinuousStyle
  31430. æD FUNCTION TTEView.ContinuousStyle(firstChar, lastChar: INTEGER; VAR mode: INTEGER; 
  31431.   VAR aStyle: TextStyle): BOOLEAN;
  31432. æFi UTEView.p
  31433. æT METHOD 
  31434. æC ContinuousStyle returns the value TRUE if there is only one text style in the 
  31435. specified range of characters. The firstChar and lastChar parameters specify the 
  31436. first and last characters of the range that is to be checked. The mode 
  31437. parameter specifies which style attributes are to be tested when the method is called. 
  31438. The method stores any continuous styles in the aStyle parameter, and sets the 
  31439. corresponding flags in mode. MacApp calls ContinuousStyle from several methods 
  31440. that perform calculations using information about the text in a TTEView object. 
  31441.  
  31442.  
  31443.  
  31444. æKY TTEView.DoBreakFollowing
  31445. æD FUNCTION TTEView.DoBreakFollowing(vhs: VHSelect; prevBreak: VCoordinate; 
  31446.   VAR automatic: BOOLEAN): VCoordinate; OVERRIDE;
  31447. æFi UTEView.p
  31448. æT METHOD 
  31449. æC DoBreakFollowing returns the coordinates corresponding to the page break, 
  31450. horizontal or vertical, that follows the specified page break. The vhs parameter 
  31451. specifies whether the page break to be found is vertical or horizontal; a value of 
  31452. v specifies that it is a vertical page break, and a value of h specifies that 
  31453. it is horizontal. The prevBreak parameter specifies the coordinates 
  31454. corresponding to the specified page break; DoBreakFollowing returns the page break 
  31455. that occurs next after the one specified. The automatic parameter specifies whether 
  31456. the page break that is to be located is an automatic page break. Automatic page 
  31457. breaks are those whose position is computed automatically by the application 
  31458. rather than fixed manually by the user. If automatic is set to TRUE, then MacApp 
  31459. considers the page break to be automatic. MacApp calls DoBreakFollowing from 
  31460. print-handling methods that must determine the locations of page breaks. You can 
  31461. use this method when you need to calculate the location of a specified page break. 
  31462.  
  31463.  
  31464.  
  31465. æKY TTEView.DoCalcViewPerPage
  31466. æD PROCEDURE TTEView.DoCalcViewPerPage(VAR viewPerPage: VPoint); OVERRIDE;
  31467. æFi UTEView.p
  31468. æT METHOD 
  31469. æC DoCalcViewPerPage calculates the portion of the view that will fit on a single 
  31470. printed page. The method stores the calculated area as a view point in the 
  31471. viewPerPage parameter. MacApp calls DoCalcViewPerPage from 
  31472. TStdPrintHandler.RedoPageBreaks. You can use this method when you must determine what 
  31473. portion of a view will fit on a printed page. 
  31474.  
  31475.  
  31476.  
  31477. æKY TTEView.DoIdle
  31478. æD FUNCTION TTEView.DoIdle(phase: IdlePhase): BOOLEAN; OVERRIDE;
  31479. æFi UTEView.p
  31480. æT METHOD 
  31481. æC DoIdle causes the text insertion point to blink. The default version of this 
  31482. method always returns FALSE, indicating that the TTEView object did not free 
  31483. itself. The phase parameter can have the values idleBegin, idleContinue, or idleEnd. 
  31484. MacApp sets the value of the phase parameter to idleBegin when there are no 
  31485. events to be handled in the event record; this value tells DoIdle to pass control 
  31486. to the first handler in the idle chain. MacApp sets the value of the phase 
  31487. parameter to idleContinue when the first cohandler in the chain has completed its 
  31488. task and there still are no events posted in the event record; this value tells 
  31489. DoIdle to pass control to the next cohandler in the chain. MacApp sets the 
  31490. value of the phase parameter to idleEnd when an event is posted in the event 
  31491. record; this value tells DoIdle to pass control to the command chain or click chain, 
  31492. as appropriate. The default version of DoIdle ignores the phase parameter. 
  31493. MacApp calls DoIdle from TApplication.Idle. You usually do not need to call this 
  31494. method yourself; however, you can override DoIdle to provide additional 
  31495. processing while the TTEView object is idle. Your override method should return TRUE 
  31496. if the TTEView object frees itself. 
  31497.  
  31498.  
  31499.  
  31500. æKY TTEView.DoKeyCommand
  31501. æD FUNCTION TTEView.DoKeyCommand(ch: Char; aKeyCode: INTEGER; 
  31502.   VAR info: EventInfo): TCommand; OVERRIDE;
  31503. æFi UTEView.p
  31504. æT METHOD 
  31505. æC DoKeyCommand returns a TCommand object that handles keystrokes made without the 
  31506. Command key pressed, when the TTEView object is the active view. If the command 
  31507. requires no further processing, this method returns NIL. The ch parameter is 
  31508. the alphanumeric character that corresponds to the key the user pressed. The 
  31509. aKeyCode parameter is the ASCII key code generated by the keystroke. The info 
  31510. parameter is the event record description of the event that caused MacApp to call 
  31511. DoKeyCommand; the info parameter is used to pass information about the event, 
  31512. such as whether the Option key was pressed. MacApp calls DoKeyCommand from 
  31513. TApplication.HandleKeyDownEvent. You usually do not need to call this method 
  31514. yourself. You can override this method in your TTEView subclasses if you need to 
  31515. provide special behavior when keys are pressed. 
  31516.  
  31517.  
  31518.  
  31519. æKY TTEView.DoMakeEditCommand
  31520. æD FUNCTION TTEView.DoMakeEditCommand(aCmdNumber: CmdNumber): TTECommand;
  31521. æFi UTEView.p
  31522. æT METHOD 
  31523. æC DoMakeEditCommand returns a TCommand object to handle a user-generated editing 
  31524. command. The aCmdNumber parameter is the command number that must be handled by 
  31525. the newly created TCommand object. Usually the value of aCmdNumber is in the 
  31526. range from cEditBase to cEditLast (see the MacApp globals documentation for an 
  31527. explanation of these values). MacApp calls DoMakeEditCommand from 
  31528. TTEView.DoMenuCommand. You usually do not need to call this method yourself. You can 
  31529. override DoMakeEditCommand in TTEView subclasses to provide special handling of 
  31530. editing commands. 
  31531.  
  31532.  
  31533.  
  31534. æKY TTEView.DoMakeStyleCommand
  31535. æD FUNCTION TTEView.DoMakeStyleCommand(aStyle: TextStyle; itsCmdNumber: CmdNumber; 
  31536.   itsMode: INTEGER): TTEStyleCommand;
  31537. æFi UTEView.p
  31538. æT METHOD 
  31539. æC DoMakeStyleCommand returns a newly created TCommand object to handle 
  31540. user-generated style-change commands. The aStyle parameter is the new style that is to 
  31541. be applied. The itsCmdNumber parameter is the number of the command that the new 
  31542. TCommand object must handle. The itsMode parameter is the QuickDraw copy mode 
  31543. that is to be applied to the affected text. You can call DoMakeStyleCommand from 
  31544. event-handling code that must process style changes selected by the user. You 
  31545. can override this method in TTEView subclasses to provide special style 
  31546. handling. 
  31547.  
  31548.  
  31549.  
  31550. æKY TTEView.DoMakeTypingCommand
  31551. æD FUNCTION TTEView.DoMakeTypingCommand(ch: Char): TTETypingCommand;
  31552. æFi UTEView.p
  31553. æT METHOD 
  31554. æC DoMakeTypingCommand returns a newly created TCommand object to handle a user’s 
  31555. keystroke. The ch parameter is the character corresponding to the key that the 
  31556. user pressed. MacApp calls DoMakeTypingCommand from TTEView.DoKeyCommand. You 
  31557. usually do not need to call this method yourself. You can override this method in 
  31558. TTEView subclasses to provide special handling of keystrokes. 
  31559.  
  31560.  
  31561.  
  31562. æKY TTEView.DoMenuCommand
  31563. æD FUNCTION TTEView.DoMenuCommand(aCmdNumber: CmdNumber): TCommand; OVERRIDE;
  31564.  
  31565. æFi UTEView.p
  31566. æT METHOD 
  31567. æC DoMenuCommand performs the appropriate actions to process a user’s menu 
  31568. selection, handling simple commands directly and returning NIL, or returning a 
  31569. TCommand object to handle commands that can be undone. The parameter aCmdNumber is 
  31570. the command number defined for the selected menu item. MacApp predefines certain 
  31571. command numbers as constants in the file UMacApp.p; you can define others in your 
  31572. 'cmnu' resource description and in the appropriate interface or implementation 
  31573. file. MacApp calls DoMenuCommand when the user chooses a command from a menu. 
  31574. You usually do not need to call this method yourself. You can override this 
  31575. method in TTEView subclasses to implement special handling of menu commands. 
  31576.  
  31577.  
  31578.  
  31579. æKY TTEView.DoMouseCommand
  31580. æD FUNCTION TTEView.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo; 
  31581.   VAR hysteresis: Point): TCommand; OVERRIDE;
  31582. æFi UTEView.p
  31583. æT METHOD 
  31584. æC DoMouseCommand terminates a typing command by calling TTEView.DoneTyping, which 
  31585. in turn calls TTETypingCommand.CompleteTyping. DoMouseCommand returns NIL. The 
  31586. parameter theMouse is the mouse pointer’s current location, described in view 
  31587. coordinates. The info parameter is the event record of the mouse-down event that 
  31588. caused DoMouseCommand to be called. The hysteresis parameter is a point that 
  31589. represents the horizontal and vertical distance the mouse can travel between 
  31590. clicks and still be considered to be at the same location. MacApp uses this 
  31591. parameter to determine whether a double click has occurred or if a control has moved. 
  31592. MacApp calls DoMouseCommand from a variety of methods that handle events in 
  31593. views. You usually do not need to call DoMouseCommand yourself. You can override 
  31594. this method in TTEView subclasses to provide special mouse-handling behavior. 
  31595.  
  31596.  
  31597.  
  31598. æKY TTEView.DoneTyping
  31599. æD PROCEDURE TTEView.DoneTyping;
  31600. æFi UTEView.p
  31601. æT METHOD 
  31602. æC DoneTyping informs the TCommand object currently handling typing that it will 
  31603. receive no more keyboard events. MacApp calls DoneTyping from methods that change 
  31604. the current event-handling context, such as TTEView.DoMouseCommand and 
  31605. TTEView.InstallSelection. You usually do not need to call this method yourself. 
  31606.  
  31607.  
  31608.  
  31609. æKY TTEView.DoSetCursor
  31610. æD FUNCTION TTEView.DoSetCursor(localPoint: Point; 
  31611.   cursorRgn: RgnHandle): BOOLEAN; OVERRIDE;
  31612. æFi UTEView.p
  31613. æT METHOD 
  31614. æC DoSetCursor changes the appearance of the cursor to the image associated with 
  31615. the view. The default version of DoSetCursor sets the cursor to the text 
  31616. insertion (or I-beam) pointer and returns the value TRUE. The localPoint parameter is 
  31617. the local QuickDraw point, expressed in view coordinates, representing the 
  31618. location of the cursor. The cursorRgn parameter is the region that contains the 
  31619. cursor image. MacApp calls DoSetCursor from TView.HandleCursor. You usually do not 
  31620. need to call this method yourself. You can override DoSetCursor in TTEView 
  31621. subclasses to show a special cursor image. 
  31622.  
  31623.  
  31624.  
  31625. æKY TTEView.DoSetPageOffset
  31626. æD PROCEDURE TTEView.DoSetPageOffset(coord: VPoint); OVERRIDE;
  31627. æFi UTEView.p
  31628. æT METHOD 
  31629. æC DoSetPageOffset calculates the location of the top-left corner of the specified 
  31630. printed page. The coord parameter is a point that represents the horizontal and 
  31631. vertical displacement, in pages, of the specified page. MacApp calls 
  31632. DoSetPageOffset from TStdPrintHandler.SetPage when about to print the contents of the 
  31633. view. You usually do not need to call this method yourself. 
  31634.  
  31635.  
  31636.  
  31637. æKY TTEView.DoSetupMenus
  31638. æD PROCEDURE TTEView.DoSetupMenus; OVERRIDE;
  31639. æFi UTEView.p
  31640. æT METHOD 
  31641. æC DoSetupMenus enables and disables the Copy, Select All, Cut, and Clear items in 
  31642. the application’s menus when the TTEView object becomes the active view. MacApp 
  31643. calls DoSetupMenus from TApplication.SetupTheMenus, and from event-handling 
  31644. methods that change the active view. You usually do not need to call this method 
  31645. yourself. You must override this method in TTEView subclasses to enable and 
  31646. disable the correct menu items when the TTEView object becomes the active view. 
  31647. Your override must call INHERITED DoSetupMenus as its first action, to allow 
  31648. other handlers to enable menu items to which they can respond. 
  31649.  
  31650.  
  31651.  
  31652. æKY TTEView.Draw
  31653. æD PROCEDURE TTEView.Draw(area: Rect); OVERRIDE;
  31654. æFi UTEView.p
  31655. æT METHOD 
  31656. æC This method draws the TTEView object’s text on the screen. The area parameter is 
  31657. a QuickDraw rectangle, expressed in view coordinates, that defines part of the 
  31658. control that needs to be redrawn. You use this parameter to optimize drawing 
  31659. speed. MacApp calls Draw from TTEView.DrawContents. You usually do not need to 
  31660. call this method yourself. You can override Draw in TTEView subclasses if you 
  31661. need to draw the text in a special way. 
  31662.  
  31663.  
  31664.  
  31665. æKY TTEView.ExtractStyles
  31666. æD PROCEDURE TTEView.ExtractStyles(VAR theStyles: TEStyleHandle; 
  31667.   VAR theElements: STHandle);
  31668. æFi UTEView.p
  31669. æT METHOD 
  31670. æC ExtractStyles retrieves handles to the style data for a TextEdit record. MacApp 
  31671. stores retrieved style data in the parameter theStyles, and stores retrieved 
  31672. element information in the parameter theElement. You can call ExtractStyle to 
  31673. obtain style data for a TextEdit record—for example, when you need to store it in 
  31674. a file. 
  31675.  
  31676.  
  31677.  
  31678. æKY TTEView.ExtractText
  31679. æD FUNCTION TTEView.ExtractText: Handle;
  31680. æFi UTEView.p
  31681. æT METHOD 
  31682. æC ExtractText returns a handle to the text of the TTEView object. MacApp calls 
  31683. ExtractText from TEditText.GetText. You can use this method when you need to 
  31684. retrieve the text from a TTEView object—for example, when you need to store it in a 
  31685. file. 
  31686.  
  31687.  
  31688.  
  31689. æKY TTEView.Fields
  31690. æD PROCEDURE TTEView.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  31691.   fieldType: INTEGER)); OVERRIDE;
  31692. æFi UTEView.p
  31693. æT METHOD 
  31694. æC Fields reports the contents of each field of the TTEView object to the MacApp 
  31695. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  31696. contents of each field. Fields iterates over all the fields of the TTEView 
  31697. object, performing DoToField on each one. The fieldName parameter is the name of the 
  31698. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  31699. parameter uses a predefined constant to tell Fields what type of information 
  31700. to look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  31701. override this method in your subclasses if you want the Inspector to display 
  31702. your fields. Your override must call INHERITED Fields as its last action to 
  31703. ensure that the inherited fields are also displayed. 
  31704.  
  31705.  
  31706.  
  31707. æKY TTEView.Free
  31708. æD PROCEDURE TTEView.Free; OVERRIDE;
  31709. æFi UTEView.p
  31710. æT METHOD 
  31711. æC Free releases the memory used by the TTEView object and its TextEdit record. 
  31712. MacApp calls Free from a variety of methods that dispose of TTEView objects or of 
  31713. objects that contain TTEView objects. You can call Free to release the memory 
  31714. used by a TTEView object when you no longer need that object. 
  31715.  
  31716.  
  31717.  
  31718. æKY TTEView.GetPrintExtent
  31719. æD PROCEDURE TTEView.GetPrintExtent(VAR printExtent: VRect); OVERRIDE;
  31720. æFi UTEView.p
  31721. æT METHOD 
  31722. æC GetPrintExtent retrieves the area of the view that will be printed. This area is 
  31723. the view’s total area minus its margin insets. The method stores the resulting 
  31724. area in the printExtent parameter. MacApp calls GetPrintExtent from methods 
  31725. that prepare a view for printing. You usually do not need to call this method 
  31726. yourself, but you can use it if you need to determine what area of the view will 
  31727. be printed. 
  31728.  
  31729.  
  31730.  
  31731. æKY TTEView.GivePasteData
  31732. æD FUNCTION TTEView.GivePasteData(aDataHandle: Handle; 
  31733.   dataType: ResType): LONGINT; OVERRIDE;
  31734. æFi UTEView.p
  31735. æT METHOD 
  31736. æC GivePasteData retrieves the text or the style data of the TTEView object and 
  31737. stores it in the specified location, then returns the size, in bytes, of the 
  31738. retrieved data. The aDataHandle parameter is a handle to a block of memory that will 
  31739. contain the retrieved text or style data. The dataType parameter specifies 
  31740. whether the method is to retrieve text or style data. If the value of dataType is 
  31741. 'TEXT' then the method retrieves the view’s text; if ist value is 'styl' then 
  31742. the method retrieves style data. MacApp calls GivePasteData from 
  31743. TApplication.GetDataToPaste and TTEPasteCommand.ITEPasteCommand. MacApp calls this 
  31744. method to retrieve text and style data to be pasted from a TTEView object installed 
  31745. in the Clipboard. You usually do not need to call this method yourself. 
  31746.  
  31747.  
  31748.  
  31749. æKY TTEView.IdentifySoftware
  31750. æD PROCEDURE TTEView.IdentifySoftware; OVERRIDE;
  31751. æFi UTEView.p
  31752. æT METHOD 
  31753. æC IdentifySoftware writes to the Debug Transcript window version information about 
  31754. the UTEView unit and the date and time that the application was compiled; it 
  31755. then calls INHERITED IdentifySoftware. MacApp calls IdentifySoftware from 
  31756. TApplication.DoMenuCommand. You usually do not need to call IdentifySoftware 
  31757. yourself. You can override this method to add further information to the debug 
  31758. transcript. 
  31759.  
  31760.  
  31761.  
  31762. æKY TTEView.InstallSelection
  31763. æD PROCEDURE TTEView.InstallSelection(wasActive, beActive: BOOLEAN); OVERRIDE;
  31764. æFi UTEView.p
  31765. æT METHOD 
  31766. æC InstallSelection places the text insertion point and highlights any selected 
  31767. text in the TTEView object when it becomes the active view. The wasActive 
  31768. parameter specifies whether the TTEView was the active view before the call to 
  31769. InstallSelection; if the value of wasActive is TRUE, then the view was active before 
  31770. the call. The beActive parameter specifies whether the TTEView object will be the 
  31771. active view after the call; if the value of beActive is TRUE, then the view 
  31772. will be active. MacApp calls InstallSelection from methods that change the active 
  31773. view in a window. You usually do not need to call this method yourself, but 
  31774. you can use it to ensure that the selection in a TTEView object is correctly 
  31775. highlighted. 
  31776.  
  31777.  
  31778.  
  31779. æKY TTEView.IRes
  31780. æD PROCEDURE TTEView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  31781.   VAR itsParams: Ptr); OVERRIDE;
  31782. æFi UTEView.p
  31783. æT METHOD 
  31784. æC IRes initializes a TTEView object from a 'view' resource template. The 
  31785. itsDocument parameter specifies the TDocument object associated with the TTEView 
  31786. object. The itsSuperView parameter specifies the TView object into which the view is 
  31787. to be installed; for a TTEView object, this is usually a TWindow or TScroller 
  31788. object. The itsParams parameter is a pointer to the portion of the 'view' 
  31789. resource data used to initialize this view. When the IRes method finishes initializing 
  31790. the view, the method moves the pointer to the end of this data. MacApp calls 
  31791. this method for each of the views created from a 'view' resource template, 
  31792. usually in response to a NewTemplateWindow or a DoCreateViews call. You never need 
  31793. to call IRes yourself. 
  31794.  
  31795.  
  31796.  
  31797. æKY TTEView.ITEView
  31798. æD PROCEDURE TTEView.ITEView(itsDocument: TDocument; itsSuperView: TView; itsLocation, 
  31799.   itsSize: VPoint; itsHDeterminer, itsVDeterminer: SizeDeterminer; itsInset: Rect; 
  31800.   itsTextStyle: TextStyle; itsJustification: INTEGER; itsStyleType, 
  31801.   itsAutoWrap: BOOLEAN);
  31802. æFi UTEView.p
  31803. æT METHOD 
  31804. æC ITEView initializes a newly created TTEView object, assigning the specified 
  31805. values to the appropriate fields. The itsDocument parameter is the TDocument object 
  31806. with which the view will be associated. The itsSuperView parameter is the 
  31807. TView object in which the TTEView object is installed. Usually the superview is a 
  31808. TWindow or TScroller object. The itsLocation parameter is the view point that 
  31809. defines the location of the view’s top-left corner in its superview. The itsSize 
  31810. parameter is a view point that specifies the view’s horizontal and vertical 
  31811. dimensions in pixels. The itsHDeterminer and itsVDeterminer parameters determine 
  31812. how the view’s horizontal and vertical dimensions are calculated, respectively. 
  31813. Allowed values include sizeSuperView (the view is the same size as its 
  31814. superview), sizeRelSuperView (the view size is relative to the superview’s size), 
  31815. sizePage (the view is the size of one page), sizeFillPages (the view expands to fill 
  31816. an exact number of pages), sizeVariable (the view size fluctuates according to 
  31817. application-specific criteria), and sizeFixed (the size is fixed at the time 
  31818. the view is created). The itsInset parameter specifies the width of the four 
  31819. margins around the view. The value is a Rect record, and each of its fields—top, 
  31820. left, bottom, and right—specifies the size of the corresponding margin. The 
  31821. itsTextStyle parameter is a TextStyle record that specifies the style of the text 
  31822. displayed in the view. The itsJustification parameter specifies how the view’s 
  31823. text is to be justified. Allowed values include teJustLeft, teJustRight, and 
  31824. teJustCenter. The itsStyleType parameter specifies whether the TTEView object can 
  31825. display more than one text style at once; kWithStyle specifies that the view 
  31826. can display multiple styles, and kWithoutStyle specifies that it cannot. The 
  31827. itsAutoWrap parameter specifies whether lines of text that are longer than the view 
  31828. is wide will wrap to the next line or will extend beyond the right edge of the 
  31829. view. A value of TRUE specifies that long lines will automatically wrap. 
  31830. MacApp calls ITEView from methods that must create a TTEView object, such as 
  31831. TDialogView.MakeTEView. You can use this method in a similar fashion. 
  31832.  
  31833.  
  31834.  
  31835. æKY TTEView.MakeTERecord
  31836. æD PROCEDURE TTEView.MakeTERecord;
  31837. æFi UTEView.p
  31838. æT METHOD 
  31839. æC MakeTERecord creates the TextEdit record that the TTEView object uses to store 
  31840. and manipulate its text. MacApp calls MakeTERecord from methods that create and 
  31841. initialize new TTEView objects. You usually do not need to call this method 
  31842. yourself. 
  31843.  
  31844.  
  31845.  
  31846. æKY TTEView.RecalcText
  31847. æD PROCEDURE TTEView.RecalcText;
  31848. æFi UTEView.p
  31849. æT METHOD 
  31850. æC RecalcText recomputes the positions of breaks in the lines of text displayed by 
  31851. the TTEView object. MacApp calls RecalcText from methods that change the text 
  31852. or the style of the text displayed by the TTEView object. You usually do not 
  31853. need to call this method yourself. 
  31854.  
  31855.  
  31856.  
  31857. æKY TTEView.Resize
  31858. æD PROCEDURE TTEView.Resize(width, height: VCoordinate; invalidate: BOOLEAN); OVERRIDE;
  31859. æFi UTEView.p
  31860. æT METHOD 
  31861. æC Resize sets the size of the TTEView object to the specified size. The parameters 
  31862. to this method are used only by the call to INHERITED Resize; thus, they 
  31863. function as the parameters to TView.Resize. The width parameter is the view’s new 
  31864. horizontal dimension, expressed in view coordinates. The height parameter is the 
  31865. view’s new vertical dimension, expressed in view coordinates. If you set the 
  31866. value of the invalidate parameter to TRUE, the view is invalidated, forcing it to 
  31867. be redrawn in the update process. When you know the view will be redrawn 
  31868. eventually and wish to avoid drawing it twice—which makes the screen appear to 
  31869. flash—you can set the invalidate parameter to FALSE. MacApp calls Resize from 
  31870. methods that change the size of a view. You can use this method when you must 
  31871. directly change a TTEView object’s size. 
  31872.  
  31873.  
  31874.  
  31875. æKY TTEView.ScrollSelectionIntoView
  31876. æD PROCEDURE TTEView.ScrollSelectionIntoView;
  31877. æFi UTEView.p
  31878. æT METHOD 
  31879. æC ScrollSelectionIntoView scrolls the contents of the TTEView object until the 
  31880. current selection or insertion point is visible. If the selected area is too large 
  31881. to fit in the visible area of the window, then ScrollSelectionIntoView ensures 
  31882. that the upper-left part of the selection is visible. MacApp calls 
  31883. ScrollSelectionIntoView from a variety of methods that handle events in the TTEView 
  31884. object. You usually do not need to call this method yourself, but you can use it if 
  31885. you need to ensure that the selection or the insertion point is visible. 
  31886.  
  31887.  
  31888.  
  31889. æKY TTEView.SetJustification
  31890. æD PROCEDURE TTEView.SetJustification(newJust: INTEGER; redraw: BOOLEAN);
  31891. æFi UTEView.p
  31892. æT METHOD 
  31893. æC SetJustification sets the TTEView object’s justification style to the specified 
  31894. value. The parameter newJust is an integer specifying the justification style 
  31895. that the TTEView object is to use. Allowed values include teJustLeft = 0 
  31896. teJustCenter = 1 teJustRight = -1 teForceLeft = -2 The redraw parameter specifies 
  31897. whether the TTEView object is to redraw its contents after it sets the 
  31898. justification style; it redraws its contents if redraw is set to TRUE. MacApp calls 
  31899. SetJustification to change the justification style of a TTEView object. You can use 
  31900. this method in a similar fashion. 
  31901.  
  31902.  
  31903.  
  31904. æKY TTEView.SetOneStyle
  31905. æD PROCEDURE TTEView.SetOneStyle(theStart, theEnd, theMode: INTEGER; 
  31906.   theStyle: TextStyle; redraw: BOOLEAN);
  31907. æFi UTEView.p
  31908. æT METHOD 
  31909. æC SetOneStyle sets the text style of a continuous range of characters. The 
  31910. parameter theStart is the position in the text record of the first character to be 
  31911. affected. The parameter theEnd is the position of the last character to be 
  31912. affected. The parameter theMode controls which style attributes to set; its value can 
  31913. be any additive combination of the following values: doFont = 1 (set the font 
  31914. number) doFace = 2 (set the character style) doSize = 4 (set the type size) 
  31915. doColor = 8 (set the color) doAll = 15 (set all attributes) addSize = 16 (adjust 
  31916. type size) theStyle is a style record that specifies the new style that applies 
  31917. to the specified range of characters. The redraw parameter specifies whether the 
  31918. TTEView object is to redraw its contents; if redraw is set to TRUE, then the 
  31919. contents are redrawn. MacApp calls SetOneStyle from TDialogTEView.InstallEditText and 
  31920. TTEStyleCommand.InstallOneStyle. You can use this method to change the style of a 
  31921. specified range of text characters. 
  31922.  
  31923.  
  31924.  
  31925. æKY TTEView.SetText
  31926. æD PROCEDURE TTEView.SetText(theText: Str255);
  31927. æFi UTEView.p
  31928. æT METHOD 
  31929. æC SetText installs the specified text in the TTEView object. The parameter theText 
  31930. is the text that appears in the TTEView view. MacApp calls SetText from several 
  31931. methods that initialize or change the text that appears in a TTEView object. 
  31932. You can use this method in a similar fashion. 
  31933.  
  31934.  
  31935.  
  31936. æKY TTEView.ShowReverted
  31937. æD PROCEDURE TTEView.ShowReverted; OVERRIDE;
  31938. æFi UTEView.p
  31939. æT METHOD 
  31940. æC ShowReverted corrects the line heights in the text and the size of the view and 
  31941. then calls INHERITED ShowReverted. MacApp calls ShowReverted from 
  31942. TRevertDocCommand.DoIt. You usually do not need to call this method yourself. You must 
  31943. override this method in TTEView subclasses if you want to provide more specific 
  31944. reverting behavior. 
  31945.  
  31946.  
  31947.  
  31948. æKY TTEView.SpaceForStyles
  31949. æD FUNCTION TTEView.SpaceForStyles(rangeStart, rangeEnd: LONGINT): BOOLEAN;
  31950. æFi UTEView.p
  31951. æT METHOD 
  31952. æC SpaceForStyles returns the value TRUE if there is enough memory available to 
  31953. store the style data of the specified range of characters; otherwise, it returns 
  31954. FALSE. The rangeStart parameter is the position in the TTEView object’s text of 
  31955. the first character in the specified range. The rangeEnd parameter is the 
  31956. position of the last character of the specified range. MacApp calls SpaceForStyles 
  31957. from methods that copy and paste style information. You can use this method when 
  31958. you need to ensure that enough memory is available to permit you to store 
  31959. style data for a range of text. 
  31960.  
  31961.  
  31962.  
  31963. æKY TTEView.StuffStyles
  31964. æD PROCEDURE TTEView.StuffStyles(theStyles: TEStyleHandle; theElements: STHandle);
  31965. æFi UTEView.p
  31966. æT METHOD 
  31967. æC StuffStyles applies the styles specified by the supplied style record to the 
  31968. TTEView object’s TextEdit record. See pp. 261-263 of Inside Macintosh, Volume V, 
  31969. for a more complete explanation of TextEdit style records and style tables. The 
  31970. parameter theStyles is a handle to a TextEdit style record describing the 
  31971. specified styles. The parameter theElements is a style table for the TextEdit 
  31972. record. You can call StuffStyles to apply a specified style to a particular range of 
  31973. characters in a TTEView object. 
  31974.  
  31975.  
  31976.  
  31977. æKY TTEView.StuffTERects
  31978. æD PROCEDURE TTEView.StuffTERects(newTERect: Rect);
  31979. æFi UTEView.p
  31980. æT METHOD 
  31981. æC StuffTERects sets the destination rectangle and the view rectangle of the 
  31982. TTEView object’s associated TextEdit record to the specified rectangle. See pp. 
  31983. 374-380 of Inside Macintosh, Volume I, for a more complete discussion of TextEdit 
  31984. records. The newTERect parameter is the rectangle that becomes the new 
  31985. destination and view rectangles of the TextEdit record. MacApp calls StuffTERects from 
  31986. TTEView.Resize. You usually do not need to call this method yourself. 
  31987.  
  31988.  
  31989.  
  31990. æKY TTEView.StuffText
  31991. æD PROCEDURE TTEView.StuffText(theText: Handle);
  31992. æFi UTEView.p
  31993. æT METHOD 
  31994. æC StuffText sets the text of the TTEView object to the specified text. The 
  31995. parameter theText is a handle to the new text. The old handle is overwritten. MacApp 
  31996. calls StuffText from TTEView.SetText and TTECutCopyCommand.DoIt. You usually do 
  31997. not need to call this method yourself; you should usually use TTEView.SetText 
  31998. to set the view’s text. If you need to apply style data to the text before it 
  31999. becomes part of the TTEView object, you can use StuffStyles to apply the style 
  32000. data to the text and then call StuffText to add it to the view. 
  32001.  
  32002.  
  32003.  
  32004. æKY TTEView.SynchView
  32005. æD PROCEDURE TTEView.SynchView(redraw: BOOLEAN);
  32006. æFi UTEView.p
  32007. æT METHOD 
  32008. æC SynchView adjusts the TTEView object to ensure consistency after a TextEdit 
  32009. operation. If the redraw parameter is set to TRUE, then the method causes the 
  32010. current text selection to scroll into view. MacApp calls SynchView from a variety of 
  32011. methods that perform TextEdit operations on the TTEView object’s associated 
  32012. TextEdit record. You can use this method when you manipulate the TextEdit record 
  32013. and want to ensure that the view’s state is consistent afterward. 
  32014.  
  32015.  
  32016.  
  32017. æKY TTEView.ViewEnable
  32018. æD PROCEDURE TTEView.ViewEnable(state, redraw: BOOLEAN); OVERRIDE;
  32019.  
  32020. æFi UTEView.p
  32021. æT METHOD 
  32022. æC ViewEnable resets the view's idle frequency when the enable state of the view 
  32023. changes. The method then calls INHERITED ViewEnable. The value of the state 
  32024. parameter becomes the new value of the TView object’s fViewEnabled field. If the 
  32025. redraw parameter is set to TRUE, then the view is redrawn. You probably will not 
  32026. need to call this method. 
  32027.  
  32028.  
  32029.  
  32030. æKY TTEView.WRes
  32031. æD PROCEDURE TTEView.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  32032. æFi UTEView.p
  32033. æT METHOD 
  32034. æC WRes writes the TTEView portion of the view’s resource template to the location 
  32035. specified by the itsParams parameter. The parameter theResource is a handle to 
  32036. the view’s resource template. The parameter itsParams is a pointer to the 
  32037. TTEView section of the view’s resource template. WRes is the inverse of the IRes 
  32038. method, and is used only by programs that write 'view' resources; for example, 
  32039. ViewEdit uses this method to create new 'view' resources from views that are 
  32040. active on the screen. You rarely need to call this method yourself. You must 
  32041. override this method in your subclasses to create your own 'view' resources. Your 
  32042. override should check the size of the space remaining in the template past the end 
  32043. of the previously-written resource data; if there is not enough space to write 
  32044. your data into the file, your override should call the global routine 
  32045. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  32046. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  32047. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  32048. You need not be concerned about making the 'view' resource handle too big, 
  32049. because MacApp reclaims unused space by returning a new value for itsParams when the 
  32050. WRes method completes. 
  32051.  
  32052.  
  32053.  
  32054. æKY TTEView.WriteRes
  32055. æD PROCEDURE TTEView.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  32056. æFi UTEView.p
  32057. æT METHOD 
  32058. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('tevw') and 
  32059. class name ('TTEView') for the ‘view’ resource template, and then calls WRes to 
  32060. actually write the resource. The parameter theResource is a handle to the 
  32061. view’s resource template. The parameter itsParams is a pointer to the parameters 
  32062. MacApp uses to create the new resource. MacApp calls this method to write a 
  32063. TTEView object as part of a 'view' resource; you can use it in a similar fashion. You 
  32064. can override this method to provide your own unique class name or signature. 
  32065.  
  32066.  
  32067.  
  32068. æKY TTEView.WriteToDeskScrap
  32069. æD PROCEDURE TTEView.WriteToDeskScrap; OVERRIDE;
  32070. æFi UTEView.p
  32071. æT METHOD 
  32072. æC WriteToDeskScrap writes the text of the TTEView object to the desk scrap. MacApp 
  32073. calls WriteToDeskScrap from TApplication.AboutToLoseControl when the application is 
  32074. about to become inactive. You usually do not need to call this method yourself. 
  32075.  
  32076.  
  32077.  
  32078. æKY TTextGridView.DrawCell
  32079. æD PROCEDURE TTextGridView.DrawCell(aCell: GridCell; aQDRect: Rect); OVERRIDE;
  32080. æFi UGridView.p
  32081. æT METHOD 
  32082. æC DrawCell draws the text contained in a TGridView cell. The aCell parameter 
  32083. specifies the cell whose text is to be drawn. The aQDRect parameter defines the 
  32084. QuickDraw rectangle in which MacApp draws the text. TGridView.DrawRangeOfCells 
  32085. calls DrawCell. If you want to change the way the text is drawn, you must override 
  32086. this method. 
  32087.  
  32088.  
  32089.  
  32090. æKY TTextGridView.Fields
  32091. æD PROCEDURE TTextGridView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  32092.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  32093. æFi UGridView.p
  32094. æT METHOD 
  32095. æC Fields reports the contents of each field of the TTextGridView object to the 
  32096. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  32097. the contents of each field. Fields iterates over all the fields of the 
  32098. TTextGridView object, performing DoToField on each one. The fieldName parameter is the 
  32099. name of the field. The fieldAddr parameter is the field’s location in memory. 
  32100. The fieldType parameter uses a predefined constant to tell Fields what type of 
  32101. information to look for in a field. MacApp calls Fields from the MacApp 
  32102. Inspector. You must override this method in your subclasses if you want the Inspector 
  32103. to display your fields. Your override must call INHERITED Fields as its last 
  32104. action to ensure that the inherited fields are also displayed. 
  32105.  
  32106.  
  32107.  
  32108. æKY TTextGridView.Focus
  32109. æD FUNCTION TTextGridView.Focus: BOOLEAN; OVERRIDE;
  32110. æFi UGridView.p
  32111. æT METHOD 
  32112. æC Focus returns the value TRUE and calls TTextGridView.SetPen if the inherited 
  32113. method TView.Focus succeeds in focusing the view; otherwise, Focus returns the 
  32114. value FALSE. MacApp calls Focus from TTextGridView.DrawCell prior to actually 
  32115. drawing the text. You must call Focus in any TTextGridView method besides DrawCell 
  32116. that draws in the view. Do not change the behavior of Focus. 
  32117.  
  32118.  
  32119.  
  32120. æKY TTextGridView.GetText
  32121. æD PROCEDURE TTextGridView.GetText(aCell: GridCell; VAR aString: Str255);
  32122.  
  32123. æFi UGridView.p
  32124. æT METHOD 
  32125. æC GetText retrieves the current text to be drawn in a specified TTextGridView 
  32126. cell. It is an empty method; your TTextGridView subclass must override this method 
  32127. and provide the code to supply the string corresponding to the specified item. 
  32128. The aCell parameter specifies the cell whose text is to be retrieved. When this 
  32129. method returns, the parameter aString stores the text string that this method 
  32130. retrieves. MacApp calls GetText from TTextGridView.DrawCell when drawing the 
  32131. text in a TTextGridView cell. You must always override GetText. 
  32132.  
  32133.  
  32134.  
  32135. æKY TTextGridView.IRes
  32136. æD PROCEDURE TTextGridView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  32137.   VAR itsParams: Ptr); OVERRIDE;
  32138. æFi UGridView.p
  32139. æT METHOD 
  32140. æC IRes initializes a TTextGridView object from a 'view' resource template. The 
  32141. itsDocument parameter specifies the document associated with the TStaticText 
  32142. object. The itsSuperView parameter specifies the TView object into which the view is 
  32143. to be installed; for a TTextGridView object, this is usually a TView, TWindow, 
  32144. or TScroller object. The itsParams parameter is a pointer to the portion of 
  32145. the 'view' resource data used to initialize this view. When the IRes method 
  32146. finishes initializing the view, the method moves the pointer to the end of this 
  32147. data. MacApp calls this method for each of the views created from a 'view' resource 
  32148. template, usually in response to a NewTemplateWindow or a DoCreateViews call. 
  32149. You never need to call IRes yourself. 
  32150.  
  32151.  
  32152.  
  32153. æKY TTextGridView.ITextGridView
  32154. æD PROCEDURE TTextGridView.ITextGridView(itsDocument: TDocument; itsSuperView: TView; 
  32155.   itsLocation: VPoint; itsSize: VPoint; itsHSizeDet, itsVSizeDet: SizeDeterminer; 
  32156.   numOfRows: INTEGER; numOfCols: INTEGER; rowHeight: INTEGER; colWidth: INTEGER; 
  32157.   adornRows: BOOLEAN; adornCols: BOOLEAN; rowInset: INTEGER; colInset: INTEGER; 
  32158.   singleSelection: BOOLEAN; 
  32159. itsTextStyle: TextStyle);
  32160. æFi UGridView.p
  32161. æT METHOD 
  32162. æC ITextGridView initializes the fields of a TTextGridView object. The itsDocument 
  32163. parameter is the document associated with the TTextGridView object.The 
  32164. itsSuperView parameter is the view in which the TTextGridView object is installed. 
  32165. (Usually, this view is a TWindow or TScroller object.) The itsLocation parameter 
  32166. specifies the point that is the upper-left corner of the view, described in the 
  32167. local coordinates of the superview. The itsSize parameter is the bottom-right 
  32168. corner of the view, described in the local coordinates of the superview (this 
  32169. parameter is ignored for the appropriate dimension if the value of the itsHSizeDet 
  32170. or itsVSizeDet parameter is sizeVariable). The itsHSizeDet and itsVSizeDet 
  32171. parameters determine how the view’s horizontal and vertical dimensions are 
  32172. calculated, respectively. Possible values are: sizeSuperView (subview is the same size 
  32173. as superview), sizeRelSuperView (subview size changes an equal amount relative 
  32174. to the superview's size), sizePage (view is the size of one page), 
  32175. sizeFillPages (view expands to fill an exact number of pages), sizeVariable (view size 
  32176. fluctuates according to application-specific criteria), and sizeFixed (no special 
  32177. handling of size issues). The numOfRows parameter is the number of rows in the 
  32178. grid; similarly, the numOfCols parameter is the number of columns in the grid. 
  32179. The rowHeight parameter is the height, in pixels, of each row in the grid; the 
  32180. colWidth parameter is the width, in pixels, of each column in the grid. The 
  32181. adornRows and adornCols parameters specify whether to adorn the rows or colums of 
  32182. the grid; if either is set to TRUE, then MacApp calls the appropriate method, 
  32183. TGridView.AdornRow or TGridView.AdornCol, from TGridView.Draw. The rowInset 
  32184. parameter is the space, in pixels, between rows; the colInset parameter is the 
  32185. corresponding space between columns. If the value of the singleSelection parameter 
  32186. is TRUE, then only one cell can be selected at a time. The itsTextStyle 
  32187. parameter specifies the font, font size, style, and color of the text displayed in the 
  32188. cells. MacApp predefines certain constants that specify text styles in the 
  32189. file UMacApp.p. MacApp calls ITextGridView from TTextListView.ITextListView to do 
  32190. essential initialization of the fields of a new TTextListView object when it is 
  32191. created by procedure. You can use this method in a similar fashion. 
  32192.  
  32193.  
  32194.  
  32195. æKY TTextGridView.SetPen
  32196. æD PROCEDURE TTextGridView.SetPen;
  32197. æFi UGridView.p
  32198. æT METHOD 
  32199. æC SetPen sets the font and pen characteristics of the current port. MacApp calls 
  32200. SetPen from the TTextGridView methods Focus, Draw, and SetUpFont. You can use 
  32201. SetPen to set the port's text style and the pen size, pen mode, and pen pattern 
  32202. to an initial state without changing the pen location. 
  32203.  
  32204.  
  32205.  
  32206. æKY TTextGridView.SetUpFont
  32207. æD PROCEDURE TTextGridView.SetUpFont;
  32208. æFi UGridView.p
  32209. æT METHOD 
  32210. æC SetUpFont sets the fLineHeight and fLineAscent fields to that specified by the 
  32211. TTextGridView’s fTextStyle field. MacApp calls SetUpFont from TTextGridView.IRes 
  32212. and TTextGridView.ITextGridView to set font attributes when initializing 
  32213. TTextGridView objects. You can use SetUpFont to ensure that text drawn by your 
  32214. methods appears in the view’s style. 
  32215.  
  32216.  
  32217.  
  32218. æKY TTextGridView.WRes
  32219. æD PROCEDURE TTextGridView.WRes(theResource: ViewRsrcHndl; 
  32220.   VAR itsParams: Ptr); OVERRIDE;
  32221. æFi UGridView.p
  32222. æT METHOD 
  32223. æC WRes writes the TTextGridView portion of the view’s resource template to the 
  32224. location specified by the itsParams parameter. The parameter theResource is a 
  32225. handle to the view’s resource template. The parameter itsParams is a pointer to the 
  32226. TTextGridView section of the view’s resource template. WRes is the inverse of 
  32227. the IRes method, and is used only by programs that write 'view' resources; for 
  32228. example, ViewEdit uses this method to create new 'view' resources from views 
  32229. that are active on the screen. You rarely need to call this method yourself. You 
  32230. must override this method in your subclasses to create your own 'view' 
  32231. resources. Your override should check the size of the space remaining in the template 
  32232. past the end of the previously-written resource data; if there is not enough 
  32233. space to write your data into the file, your override should call the global 
  32234. routine ExpandPtr, passing as arguments the current values of theResource, 
  32235. itsParams, and the size of your resource data, in bytes. ExpandPtr expands the 'view' 
  32236. resource handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is 
  32237. greater. You need not be concerned about making the 'view' resource handle too 
  32238. big, because MacApp reclaims unused space by returning a new value for 
  32239. itsParams when the WRes method completes. 
  32240.  
  32241.  
  32242.  
  32243. æKY TTextGridView.WriteRes
  32244. æD PROCEDURE TTextGridView.WriteRes(theResource: ViewRsrcHndl; 
  32245.   VAR itsParams: Ptr); OVERRIDE;
  32246. æFi UGridView.p
  32247. æT METHOD 
  32248. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('txtg') and 
  32249. class name ('TTextGridView') for the 'view' resource template, and then calls 
  32250. WRes to actually write the resource. The parameter theResource is a handle to the 
  32251. view’s resource template. The parameter itsParams is a pointer to the 
  32252. parameters MacApp uses to create the new resource. MacApp calls this method to write a 
  32253. TTextGridView object as part of a 'view' resource; you can use it in a similar 
  32254. fashion. You can override this method to provide your own unique class name or 
  32255. signature. 
  32256.  
  32257.  
  32258.  
  32259. æKY TTextListView.AllItemsDo
  32260. æD PROCEDURE TTextListView.AllItemsDo(PROCEDURE DoToItem(anItem: INTEGER));
  32261. æFi UGridView.p
  32262. æT METHOD 
  32263. æC AllItemsDo is a general utility method that enables you to perform operations on 
  32264. all of the items in a TTextListView list. This method iterates over all the 
  32265. items in the list, performing the DoToItem procedure on each one in turn. 
  32266. DoToItem is a procedure of one argument that you must declare and implement yourself. 
  32267. The procedure you write can have any name that does not conflict with other 
  32268. procedures in the scope of the TTextListView class. Just as you can create any 
  32269. variable of the proper type and then pass it as an argument to a procedure, you 
  32270. can create any procedure and pass it to AllItemsDo, as long as the procedure 
  32271. accepts one argument of type INTEGER. MacApp binds this procedure to the formal 
  32272. parameter DoToItem and then calls it with each of the items in the TTextListView 
  32273. list bound to the parameter anItem. You can use this method to perform an 
  32274. operation on every element in a TTextListView list. You usually do not need to 
  32275. override AllItemsDo. 
  32276.  
  32277.  
  32278.  
  32279. æKY TTextListView.CanSelectCell
  32280. æD FUNCTION TTextListView.CanSelectCell(aCell: GridCell): BOOLEAN; OVERRIDE;
  32281. æFi UGridView.p
  32282. æT METHOD 
  32283. æC CanSelectCell returns the value TRUE if the specified cell can be selected. The 
  32284. aCell parameter is the cell to be tested. MacApp calls CanSelectCell from 
  32285. several methods that determine selections in TGridView objects. You can call this 
  32286. method when you want to determine if a cell can be selected. 
  32287.  
  32288.  
  32289.  
  32290. æKY TTextListView.CanSelectItem
  32291. æD FUNCTION TTextListView.CanSelectItem(anItem: INTEGER): BOOLEAN;
  32292. æFi UGridView.p
  32293. æT METHOD 
  32294. æC CanSelectItem returns the value TRUE if the specified item is a valid row number 
  32295. in the TTextListView object. The anItem parameter is an integer that specifies 
  32296. the item to be tested. MacApp calls this method from TTextListView.CanSelectCell to 
  32297. validate the value of the anItem parameter. 
  32298.  
  32299.  
  32300.  
  32301. æKY TTextListView.DelItemAt
  32302. æD PROCEDURE TTextListView.DelItemAt(anItem: INTEGER; numOfItems: INTEGER);
  32303. æFi UGridView.p
  32304. æT METHOD 
  32305. æC DelItemAt deletes the specified items in the TTextListView object’s list of 
  32306. items. The anItem parameter is the index of the first item to be deleted. Items in 
  32307. a TTextListView are numbered from the first item, beginning with 1. The 
  32308. numOfItems parameter is the number of items to be deleted from the list. MacApp calls 
  32309. DelItemAt from the TTextListView methods DelItemFirst and DelItemLast. You can 
  32310. use DelItemAt when you want to remove an item or a range of items from a 
  32311. TTextListView object. 
  32312.  
  32313.  
  32314.  
  32315. æKY TTextListView.DelItemFirst
  32316. æD PROCEDURE TTextListView.DelItemFirst(numOfItems: INTEGER);
  32317. æFi UGridView.p
  32318. æT METHOD 
  32319. æC DelItemFirst deletes a specified number of items, beginning with the first, from 
  32320. the TTextListView object’s list of items. The numOfItems parameter is the 
  32321. number of items to be deleted. You can call DelItemFirst to delete an item or a 
  32322. group of items from the front of a TTextListView object’s list of items. 
  32323.  
  32324.  
  32325.  
  32326. æKY TTextListView.DelItemLast
  32327. æD PROCEDURE TTextListView.DelItemLast(numOfItems: INTEGER);
  32328. æFi UGridView.p
  32329. æT METHOD 
  32330. æC DelItemLast deletes the specified number of items from the end of a 
  32331. TTextListView list. The numOfItems parameter is the number of items to be deleted from 
  32332. the list. You can call DelItemLast to delete an item or a group of items from the 
  32333. end of a TTextListView object’s list of items. 
  32334.  
  32335.  
  32336.  
  32337. æKY TTextListView.EachItemDo
  32338. æD PROCEDURE TTextListView.EachItemDo(start, stop: INTEGER; 
  32339.   PROCEDURE DoToItem(anItem: INTEGER));
  32340. æFi UGridView.p
  32341. æT METHOD 
  32342. æC EachItemDo performs a specified procedure on each of the items in a particular 
  32343. range of the TTextListView object’s list of items. The start parameter is the 
  32344. index of the first item to be processed, and the stop parameter is the index of 
  32345. the last. Items in a TTextListView object are numbered from the first item in 
  32346. the list, beginning with 1. DoToItem is a procedure that you define. This 
  32347. procedure can have any name you like, just as the variables passed in the start and 
  32348. stop parameters can have any name you like. The procedure you define must take 
  32349. one parameter of type INTEGER; this is the anItem parameter. EachItemDo iterates 
  32350. over all the items in the range specified by the start and stop parameters, 
  32351. binding each one in turn to the formal parameter anItem. In this way, EachItemDo 
  32352. can perform the DoToItem procedure on each of a sequence of items in the list. 
  32353. MacApp uses EachItemDo to perform an operation on each of a range of items in a 
  32354. TTextListView object. You can use this method for similar purposes. 
  32355.  
  32356.  
  32357.  
  32358. æKY TTextListView.EachSelectedItemDo
  32359. æD PROCEDURE TTextListView.EachSelectedItemDo(PROCEDURE DoToItem(anItem: INTEGER));
  32360. æFi UGridView.p
  32361. æT METHOD 
  32362. æC EachSelectedItemDo performs the DoToItem procedure on each selected item. 
  32363. DoToItem is the procedure that MacApp performs on each selected item. You must define 
  32364. a procedure that takes one argument of type INTEGER and pass it in this 
  32365. parameter. MacApp calls EachSelectedItemDo from methods that iterate over the items 
  32366. displayed in a TTextListView object. You can use this method in a similar fashion. 
  32367.  
  32368.  
  32369.  
  32370. æKY TTextListView.Fields
  32371. æD PROCEDURE TTextListView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  32372.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  32373.  
  32374. æFi UGridView.p
  32375. æT METHOD 
  32376. æC Fields reports the contents of each field of the TTextListView object to the 
  32377. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to report 
  32378. the contents of each field. Fields iterates over all the fields of the 
  32379. TTextListView object, performing DoToField on each one. The fieldName parameter is the 
  32380. name of the field. The fieldAddr parameter is the field’s location in memory. 
  32381. The fieldType parameter uses a predefined constant to tell Fields what type of 
  32382. information to look for in a field. MacApp calls Fields from the MacApp 
  32383. Inspector. You must override this method in your subclasses if you want the Inspector 
  32384. to display your fields. Your override must call INHERITED Fields as its last 
  32385. action to ensure that the inherited fields are also displayed. 
  32386.  
  32387.  
  32388.  
  32389. æKY TTextListView.FirstSelectedItem
  32390. æD FUNCTION TTextListView.FirstSelectedItem: INTEGER;
  32391. æFi UGridView.p
  32392. æT METHOD 
  32393. æC FirstSelectedItem returns an integer specifying the first selected item in a 
  32394. TTextListView list; it returns 0 if no item is selected. You can call 
  32395. FirstSelectedItem to obtain an index to the first selected item in a 
  32396. TTextListView list. 
  32397.  
  32398.  
  32399.  
  32400. æKY TTextListView.GetItemHeight
  32401. æD FUNCTION TTextListView.GetItemHeight(anItem: INTEGER): INTEGER;
  32402. æFi UGridView.p
  32403. æT METHOD 
  32404. æC GetItemHeight returns the height, in pixels, of the specified item. The anItem 
  32405. parameter specifies the item whose height is to be returned. Items are numbered 
  32406. from the beginning of the list, starting with 1. You can call GetItemHeight to 
  32407. get the height of an item in a TTextListView list. 
  32408.  
  32409.  
  32410.  
  32411. æKY TTextListView.GetItemText
  32412. æD PROCEDURE TTextListView.GetItemText(anItem: INTEGER; VAR aString: Str255);
  32413. æFi UGridView.p
  32414. æT METHOD 
  32415. æC GetItemText gets the text to be drawn for a specified item in a TTextListView 
  32416. list. GetItemText is an empty method; your TTextListView subclass must override 
  32417. this method and provide the code to supply the string corresponding to the 
  32418. specified item. The anItem parameter is an integer that specifies the list item 
  32419. whose text is to be retrieved. The aString parameter stores the string that 
  32420. corresponds to the item specified in anItem. MacApp calls GetItemText from 
  32421. TTextListView.GetText to retrieve the text for an item in a TTextListView list. You 
  32422. can use this method in a similar fashion. You must always override GetItemText. 
  32423.  
  32424.  
  32425.  
  32426. æKY TTextListView.GetItemWidth
  32427. æD FUNCTION TTextListView.GetItemWidth: INTEGER;
  32428. æFi UGridView.p
  32429. æT METHOD 
  32430. æC GetItemWidth returns the width of the TTextListView view. You can call 
  32431. GetItemWidth to obtain the width of a TTextListView view. 
  32432.  
  32433.  
  32434.  
  32435. æKY TTextListView.GetText
  32436. æD PROCEDURE TTextListView.GetText(aCell: GridCell; VAR aString: Str255); OVERRIDE;
  32437. æFi UGridView.p
  32438. æT METHOD 
  32439. æC GetText passes an item number to TTextListView.GetItemText, which returns the 
  32440. string associated with that TTextListView ist item. Note that GetItemText is an 
  32441. empty method; you must override GetItemText and provide the code that retrieves 
  32442. he string corresponding to the specified item. The anItem parameter specifies 
  32443. the list item whose text is to be retrieved. When this method returns, the 
  32444. aString parameter stores the text string corresponding to the item specified by the 
  32445. aCell parameter. MacApp calls GetText from TTextGridView.DrawCell when drawing 
  32446. text in a TTextListView cell. You can call GetText to obtain the string 
  32447. associated with a particular item in a TTextListView list. 
  32448.  
  32449.  
  32450.  
  32451. æKY TTextListView.InsItemBefore
  32452. æD PROCEDURE TTextListView.InsItemBefore(anItem: INTEGER; numOfItems: INTEGER);
  32453. æFi UGridView.p
  32454. æT METHOD 
  32455. æC InsItemBefore inserts a specified number of items in a specified position in a 
  32456. TTextListView list. The anItem parameter is the index of the item before which 
  32457. the new items are to be inserted. Items in a TTextListView object are numbered 
  32458. from 1 to the value of the fNumOfRows field. The numOfItems parameter is the 
  32459. number of items to be inserted. MacApp calls InsItemBefore from the TTextListView 
  32460. methods InsItemFirst and InsItemLast. You can use InsItemBefore to insert items 
  32461. in a TTextListView object. 
  32462.  
  32463.  
  32464.  
  32465. æKY TTextListView.InsItemFirst
  32466. æD PROCEDURE TTextListView.InsItemFirst(numOfItems: INTEGER);
  32467. æFi UGridView.p
  32468. æT METHOD 
  32469. æC InsItemFirst inserts a specified number of items at the beginning of a 
  32470. TTextListView list. The numOfItems parameter is the number of new items to be 
  32471. inserted. You can call InsItemFirst to add new items to the beginning of a 
  32472. TTextListView list. 
  32473.  
  32474.  
  32475.  
  32476. æKY TTextListView.InsItemLast
  32477. æD PROCEDURE TTextListView.InsItemLast(numOfItems: INTEGER);
  32478. æFi UGridView.p
  32479. æT METHOD 
  32480. æC InsItemLast inserts a specified number of items at the end of a TTextListView 
  32481. list. The numOfItems parameter is the number of new items to be inserted. You can 
  32482. call InsItemLast to add new items to the end of a TTextListView list. 
  32483.  
  32484.  
  32485.  
  32486. æKY TTextListView.InvalidateItem
  32487. æD PROCEDURE TTextListView.InvalidateItem(anItem: INTEGER);
  32488. æFi UGridView.p
  32489. æT METHOD 
  32490. æC InvalidateItem invalidates the specified item, causing it to be redrawn. The 
  32491. anItem parameter is the index of the item to be invalidated. MacApp numbers items 
  32492. in a TTextListView view from 1 to the value of the fNumOfRows field. You can 
  32493. call this method to cause an item in a TTextListView list to be redrawn. 
  32494.  
  32495.  
  32496.  
  32497. æKY TTextListView.IsItemSelected
  32498. æD FUNCTION TTextListView.IsItemSelected(anItem: INTEGER): BOOLEAN;
  32499. æFi UGridView.p
  32500. æT METHOD 
  32501. æC IsItemSelected returns the value TRUE if the specified item in a TTextListView 
  32502. list is selected. The anItem parameter is the index of the item to be tested. 
  32503. You can call this method to determine whether an item in a TTextListView list is 
  32504. selected. 
  32505.  
  32506.  
  32507.  
  32508. æKY TTextListView.ITextListView
  32509. æD PROCEDURE TTextListView.ITextListView(itsDocument: TDocument; itsSuperView: TView; 
  32510.   itsLocation: VPoint; itsSize: VPoint; itsHSizeDet, itsVSizeDet: SizeDeterminer; 
  32511.   numOfItems: INTEGER; rowHeight: INTEGER; colWidth: INTEGER; adornRows: BOOLEAN; 
  32512.   adornCols: BOOLEAN; rowInset: INTEGER; colInset: INTEGER; 
  32513.   singleSelection: BOOLEAN; itsTextStyle: TextStyle);
  32514.  
  32515. æFi UGridView.p
  32516. æT METHOD 
  32517. æC ITextListView initializes the fields of a TTextListView object. The itsDocument 
  32518. parameter is the document associated with the TTextListView object.The 
  32519. itsSuperView parameter is the view into which the TTextListView object is installed. 
  32520. (Usually, this view will be a TWindow or TScroller object.) The itsLocation 
  32521. parameter specifies the point that is the top-left corner of the view, described in 
  32522. the local coordinates of the superview. The itsSize parameter is the 
  32523. bottom-right corner of the view, described in the local coordinates of the superview 
  32524. (this parameter is ignored for the appropriate dimension if the value of the 
  32525. itsHSizeDet or itsVSizeDet parameter is sizeVariable). The itsHSizeDet and 
  32526. itsVSizeDet parameters determine how the view’s horizontal and vertical dimensions are 
  32527. calculated, respectively. Possible values are: sizeSuperView (subview is the same 
  32528. size as superview), sizeRelSuperView (subview size changes an equal amount 
  32529. relative to the superview's size), sizePage (view is the size of one page), 
  32530. sizeFillPages (view expands to fill an exact number of pages), sizeVariable (view 
  32531. size fluctuates according to application-specific criteria), and sizeFixed (no 
  32532. special handling of size issues). The numOfItems parameter is the number of items 
  32533. in the list. If numOfItems is nonzero, then the list view is initialized to the 
  32534. specified size. The rowHeight parameter is the height, in pixels, of each item 
  32535. in the list; the colWidth parameter is the width, in pixels, of the items in 
  32536. the list. The width and height of the items in the list are determined by font 
  32537. attributes such as size and style. The items' default size may be changed by 
  32538. calling TTextListView.SetItemHeight and TTextListView.SetItemWidth. The adornRows 
  32539. and adornCols parameters specify whether to adorn the rows or columns of the 
  32540. grid; if either is set to TRUE, then MacApp calls the appropriate method, 
  32541. TGridView.AdornRow or TGridView.AdornCol, from TGridView.Draw. The rowInset parameter 
  32542. is the space, in pixels, between items in the list; the colInset parameter is 
  32543. the corresponding space between columns. If the value of the singleSelection 
  32544. parameter is TRUE, then only one cell can be selected at a time. The itsTextStyle 
  32545. parameter specifies the style of the text displayed in the list. MacApp 
  32546. predefines certain constants that specify text styles in the file UMacApp.p. You must 
  32547. call ITextListView when you create a new TTextListView object procedurally. 
  32548.  
  32549.  
  32550.  
  32551. æKY TTextListView.LastSelectedItem
  32552. æD FUNCTION TTextListView.LastSelectedItem: INTEGER;
  32553. æFi UGridView.p
  32554. æT METHOD 
  32555. æC LastSelectedItem returns an index to the last item in a range of 
  32556. currently-selected items in a TTextListView list, or 0 if no item is selected. MacApp 
  32557. never calls LastSelectedItem; it is provided for your convenience. You can use this 
  32558. method to obtain an index to the last selected item in a TTextListView list. 
  32559.  
  32560.  
  32561.  
  32562. æKY TTextListView.Resize
  32563. æD PROCEDURE TTextListView.Resize(width, height: VCoordinate; 
  32564.   invalidate: BOOLEAN); OVERRIDE;
  32565. æFi UGridView.p
  32566. æT METHOD 
  32567. æC This method calls INHERITED Resize to resize the portion of the view containing 
  32568. the text list view, redrawing it and its subviews if requested, and then 
  32569. adjusts the width of the TTextListView object’s columns. The parameters to this 
  32570. method are used only by the call to INHERITED Resize; thus, they function as the 
  32571. parameters to TView.Resize. The width parameter is the view’s new horizontal 
  32572. dimension, expressed in view coordinates. The height parameter is the view’s new 
  32573. vertical dimension, expressed in view coordinates. If you set the value of the 
  32574. invalidate parameter to TRUE, the view is invalidated, forcing it to be redrawn in 
  32575. the update process. When you know the view will be redrawn eventually and wish 
  32576. to avoid drawing it twice—which makes the screen appear to flash—you can set 
  32577. the invalidate parameter to FALSE. MacApp calls Resize from methods that change 
  32578. the size of grid views. You can call this method to adjust the size of a 
  32579. TTextListView list. 
  32580.  
  32581.  
  32582.  
  32583. æKY TTextListView.SelectCell
  32584. æD PROCEDURE TTextListView.SelectCell(theCell: GridCell; extendSelection, highlight, 
  32585.   select: BOOLEAN); OVERRIDE;
  32586. æFi UGridView.p
  32587. æT METHOD 
  32588. æC SelectCell passes an item number to TTextListView.SelectItem, which selects the 
  32589. appropriate TTextListView list item. The parameter theCell is the new cell 
  32590. affected by this method. If the value of the extendSelection parameter is TRUE, 
  32591. then MacApp includes in the selection the cells that were previously selected as 
  32592. well as the new cell; if the value of the extendSelection parameter is FALSE, 
  32593. then the cell specified by the parameter theCell becomes the only selected cell. 
  32594. If the value of the highlight parameter is TRUE, then MacApp highlights the new 
  32595. selection. If the value of the select parameter is TRUE, then the specified 
  32596. cell becomes the new selection; if this parameter is set to FALSE, then all cells 
  32597. are unselected. You can call this method to manipulate the selection in a 
  32598. TTextListView list. 
  32599.  
  32600.  
  32601.  
  32602. æKY TTextListView.SelectItem
  32603. æD PROCEDURE TTextListView.SelectItem(anItem: INTEGER; extendSelection, highlight, 
  32604.   select: BOOLEAN);
  32605. æFi UGridView.p
  32606. æT METHOD 
  32607. æC SelectItem passes an index to INHERITED SelectCell, which selects a specified 
  32608. TTextListView element. The anItem parameter is the selected item’s position in 
  32609. the TTextListView list. Items in a TTextListView list are numbered consecutively 
  32610. from the beginning of the list, starting with 1. If the value of the 
  32611. extendSelection parameter is TRUE, then MacApp includes in the selection the cells 
  32612. that were previously selected as well as the new cell; if the value of the 
  32613. extendSelection parameter is FALSE, then the cell specified by the parameter anItem 
  32614. becomes the only selected cell. If the value of the highlight parameter is TRUE, 
  32615. then MacApp highlights the new selection. If the value of the select parameter is 
  32616. TRUE, then the specified cell becomes the new selection; if this parameter is 
  32617. set to FALSE, then all cells are unselected. MacApp calls SelectItem from 
  32618. TTextListView.SelectCell in response to user actions or methods that modify the 
  32619. selection in a TTextListView list. You can use this method to select a TTextListView 
  32620. list item by its index number. 
  32621.  
  32622.  
  32623.  
  32624. æKY TTextListView.SetItemHeight
  32625. æD PROCEDURE TTextListView.SetItemHeight(anItem: INTEGER; numOfItems: INTEGER; 
  32626.   aHeight: INTEGER);
  32627. æFi UGridView.p
  32628. æT METHOD 
  32629. æC SetItemHeight sets the height of the specified items in a TTextListView list. 
  32630. The anItem parameter is the index of the first item whose height is to be 
  32631. adjusted. Items in a TTextListView object are numbered from from 1 to the value of the 
  32632. fNumOfRows field. The numOfItems parameter is the number of items to be 
  32633. changed. The aHeight parameter is the new height, in pixels, of the items to be 
  32634. adjusted. You can call this method to change the height of an item or a range of 
  32635. items in a TTextListView list. 
  32636.  
  32637.  
  32638.  
  32639. æKY TTextListView.SetItemWidth
  32640. æD PROCEDURE TTextListView.SetItemWidth(aWidth: INTEGER);
  32641. æFi UGridView.p
  32642. æT METHOD 
  32643. æC SetItemWidth sets the width of the items in a TTextListView list. The aWidth 
  32644. parameter is the list's new width, in pixels. You can call this method to change 
  32645. the width of a TTextListView list. 
  32646.  
  32647.  
  32648.  
  32649. æKY TTextListView.WriteRes
  32650. æD PROCEDURE TTextListView.WriteRes(theResource: ViewRsrcHndl;
  32651.   VAR itsParams: Ptr); OVERRIDE;
  32652.  
  32653. æFi UGridView.p
  32654. æT METHOD 
  32655. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('lstg') and 
  32656. class name ('TTextListView') for the 'view' resource template, and then calls 
  32657. WRes to actually write the resource. The parameter theResource is a handle to the 
  32658. view’s resource template. The parameter itsParams is a pointer to the 
  32659. parameters MacApp uses to create the new resource. MacApp calls this method to write a 
  32660. TTextListView object as part of a 'view' resource; you can use it in a similar 
  32661. fashion. You can override this method to provide your own unique class name or 
  32662. signature. 
  32663.  
  32664.  
  32665.  
  32666. æKY TTranscriptView.AddText
  32667. æD PROCEDURE TTranscriptView.AddText(textBuf: Ptr; byteCount: INTEGER);
  32668. æFi UTranscriptView.p
  32669. æT METHOD 
  32670. æC AddText adds text to the Debug Transcript file or draws it in the Debug 
  32671. Transcript window if the respective fWrToFile or fWrToWindow field has the value TRUE. 
  32672. AddText also performs any pending updates for the Debug Transcript window. The 
  32673. textBuf parameter is a pointer to a data structure in memory where the Debug 
  32674. Transcript text is stored until it is written to the file or the window. The 
  32675. byteCount parameter is the number of bytes to be read from textBuf. AddText is 
  32676. called by the global routine DebugWriteLn. You never need to call it yourself. 
  32677.  
  32678.  
  32679.  
  32680. æKY TTranscriptView.AddTextToFile
  32681. æD PROCEDURE TTranscriptView.AddTextToFile(textBuf: Ptr; byteCount: INTEGER);
  32682.  
  32683. æFi UTranscriptView.p
  32684. æT METHOD 
  32685. æC If fGotRefnum is set to TRUE, AddTextToFile writes the text in textBuf to the 
  32686. file referred to by fRefNum. AddTextToFile also has a stub for code you provide 
  32687. to perform an operation every time this method is called; it executes the stub 
  32688. if the Macintosh Toolbox routine FSWrite returns noErr. The textBuf parameter is 
  32689. a pointer to a data structure in memory where the Debug Transcript text is 
  32690. stored until it is written to the file or window. The byteCount parameter is the 
  32691. number of bytes to be read from textBuf. AddTextToFile is called by 
  32692. TTTranscriptView.AddText when the field fWrToFile has the value TRUE. You usually do 
  32693. not need to call it yourself unless you change the way the debugger works. 
  32694.  
  32695.  
  32696.  
  32697. æKY TTranscriptView.CommonInit
  32698. æD PROCEDURE TTranscriptView.CommonInit(itsSuperView: TView; outputFont, 
  32699.   outputSize: INTEGER; numLines, numCharsPerLine: INTEGER);
  32700. æFi UTranscriptView.p
  32701. æT METHOD 
  32702. æC CommonInit performs initialization common to all TTranscriptView objects. The 
  32703. itsSuperView parameter is the superview in which the transcript view will be 
  32704. installed. The outputFont parameter is an integer indicating the font that will be 
  32705. used to draw or print the debugger output. The outputSize parameter is the font 
  32706. size of the output font. The numLines parameter is the number of lines that 
  32707. can fit in the TTranscriptView buffer. The numCharsPerLine parameter is the number 
  32708. of characters in the output font that fit onto one line in the Debug 
  32709. Transcript buffer. CommonInit is called by the methods TTranscriptView.IRes and 
  32710. TTranscriptView.ITranscriptView to do initialization common to TTranscriptView objects. 
  32711.  
  32712.  
  32713.  
  32714.  
  32715. æKY TTranscriptView.DoHelp
  32716. æD FUNCTION TTranscriptView.DoHelp(VAR info: EventInfo; 
  32717.   VAR message: UNIV Longint): TCommand;
  32718. æFi UTranscriptView.p
  32719. æT METHOD 
  32720. æC DoHelp returns NIL, makes sure the ProcPtr in fHelpProc is not NIL, and then 
  32721. calls the global routine CallHelpProc with fHelpProc as the parameter. The info 
  32722. parameter is the Toolbox event that caused DoHelp to be called. The message 
  32723. parameter is the help message that is supplied in response to the user's query. 
  32724. DoHelp is called by TTranscriptView.DoKeyCommand when the user presses the help key 
  32725. while in the debugger. You never need to call DoHelp unless you change the way 
  32726. the debugger implements on-line help. 
  32727.  
  32728.  
  32729.  
  32730. æKY TTranscriptView.DoIdle
  32731. æD FUNCTION TTranscriptView.DoIdle(phase: IdlePhase): BOOLEAN; OVERRIDE;
  32732. æFi UTranscriptView.p
  32733. æT METHOD 
  32734. æC After making sure the view is focused, DoIdle causes the text insertion point to 
  32735. blink in the active window. The default version of this method always returns 
  32736. FALSE, indicating that the TTranscriptView object did not free itself. The 
  32737. phase parameter can have the values idleBegin, idleContinue, or idleEnd. MacApp 
  32738. sets the value of the phase parameter to idleBegin when there are no events to be 
  32739. handled in the event record; this value tells DoIdle to pass control to the 
  32740. first handler in the idle chain. MacApp sets the value of the phase parameter to 
  32741. idleContinue when the first cohandler in the chain has completed its task and 
  32742. there still are no events posted in the event record; this value tells DoIdle to 
  32743. pass control to the next cohandler in the chain. MacApp sets the value of the 
  32744. phase parameter to idleEnd when an event is posted in the event record; this 
  32745. value tells DoIdle to pass control to the command chain or click chain, as 
  32746. appropriate. MacApp calls this method at idle time if the Debug Transcript window is 
  32747. active. This method is internal to the MacApp debugger; you cannot call it 
  32748. yourself. 
  32749.  
  32750.  
  32751.  
  32752. æKY TTranscriptView.DoKeyCommand
  32753. æD FUNCTION TTranscriptView.DoKeyCommand(ch: Char; aKeyCode: INTEGER; 
  32754.   VAR info: EventInfo): TCommand; OVERRIDE;
  32755. æFi UTranscriptView.p
  32756. æT METHOD 
  32757. æC DoKeyCommand returns a TCommand object that handles keystrokes made when the 
  32758. Debug Transcript window is active. If the Command key is pressed in combination 
  32759. with Return or Backspace, this method will send a message to scroll down or up 
  32760. through the transcript view (respectively) and return NIL. If the Help key is 
  32761. pressed and the value of fHelpProc is not NIL, DoKeyCommand calls 
  32762. TTranscriptView.DoHelp; if the value of fHelpProc is NIL, DoKeyCommand simply sets 
  32763. fLastCh to the same value as the ch parameter. All other keystrokes cause DoKeyCommand to 
  32764. call INHERITED DoKeyCommand. The ch parameter is the alphanumeric character that 
  32765. corresponds to the key the user pressed. The aKeyCode parameter is the ASCII 
  32766. key code generated by the keystroke. The info parameter is the event record 
  32767. description of the event that caused MacApp to call DoKeyCommand; the info 
  32768. parameter is used to pass information about the event, such as whether the Option key 
  32769. was pressed. MacApp calls DoKeyCommand when the user presses a key on the 
  32770. keyboard and the Debug Transcript view is active. This method is internal to the 
  32771. MacApp debugger; you cannot call it yourself. You usually do not need to override 
  32772. this method. 
  32773.  
  32774.  
  32775.  
  32776. æKY TTranscriptView.Draw
  32777. æD PROCEDURE TTranscriptView.Draw(area: Rect); OVERRIDE;
  32778. æFi UTranscriptView.p
  32779. æT METHOD 
  32780. æC This method draws the visible portion of the text in a TTranscriptView view. The 
  32781. area parameter is the QuickDraw rectangle, expressed in view coordinates, that 
  32782. defines boundaries of the view. MacApp calls this method to update the Debug 
  32783. Transcript view. You do not need to call this method yourself. 
  32784.  
  32785.  
  32786.  
  32787. æKY TTranscriptView.EndForce
  32788. æD PROCEDURE TTranscriptView.EndForce;
  32789. æFi UTranscriptView.p
  32790. æT METHOD 
  32791. æC This method terminates the execution of TTranscriptView.ForceOutput. 
  32792.  
  32793.  
  32794.  
  32795. æKY TTranscriptView.Fields
  32796. æD PROCEDURE TTranscriptView.Fields(PROCEDURE DoToField(fieldName: Str255; 
  32797.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;
  32798. æFi UTranscriptView.p
  32799. æT METHOD 
  32800. æC Fields reports the contents of each field of the TTranscriptView object to the 
  32801. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  32802. report the contents of each field. Fields iterates over all the fields of the 
  32803. TTranscriptView object, performing DoToField on each one. The fieldName parameter is 
  32804. the name of the field. The fieldAddr parameter is the field’s location in 
  32805. memory. The fieldType parameter uses a predefined constant to tell Fields what type 
  32806. of information to look for in a field. MacApp calls Fields from the MacApp 
  32807. Inspector. You must override this method in your subclasses if you want the 
  32808. Inspector to display your fields. Your override must call INHERITED Fields as its last 
  32809. action to ensure that the inherited fields are also displayed. 
  32810.  
  32811.  
  32812.  
  32813. æKY TTranscriptView.ForceOutput
  32814. æD PROCEDURE TTranscriptView.ForceOutput(wrToWindow, wrToFile: WrForceOptions);
  32815. æFi UTranscriptView.p
  32816. æT METHOD 
  32817. æC ForceOutput stores the current states of fWrToWindow and fWrToFile and 
  32818. temporarily sets them to the values specified in the arguments to this procedure. 
  32819. After calling ForceOutput, you can call the global routine DebugForceOutput to do the 
  32820. work of forcing the debugger's output into another window or file. You can 
  32821. then call TTranscriptView.EndForce to restore fWrToWindow and fWrToFile to their 
  32822. previous states. The wrToWindow and wrToFile parameters are options that allow 
  32823. you to use the Pascal writeLn procedure for a window or a document, 
  32824. respectively. If the value of wrToWindow is not WrForceUnchanged, MacApp sets the 
  32825. value of the field fWrToWindow to the Boolean value of the expression 
  32826. "wrToWindow = WrForceOn" ; otherwise fWrToWindow is left unchanged. The wrToFile 
  32827. parameter sets the value of fWrToFile similarly; if the value of wrToFIle is not 
  32828. WrForceUnchanged, MacApp sets the value of the field fWrToFile to the Boolean value of 
  32829. the expression "wrToFile = WrForceOn" . Otherwise, the value of fWrToFile is left 
  32830. unchanged. ForceOutput is called by the global routines MADebuggerMainEntry and 
  32831. DebugForceOutput, which do the actual work of forcing the debugger output into 
  32832. another window or file. 
  32833.  
  32834.  
  32835.  
  32836. æKY TTranscriptView.Free
  32837. æD PROCEDURE TTranscriptView.Free; OVERRIDE;
  32838. æFi UTranscriptView.p
  32839. æT METHOD 
  32840. æC Free turns off output redirection if it is on, releases the memory used by the 
  32841. text in a TTranscriptView view, and then calls INHERITED Free. The MacApp 
  32842. debugger calls this method when disposing of TTranscriptView objects that are no 
  32843. longer needed. You usually do not need to call this method yourself. 
  32844.  
  32845.  
  32846.  
  32847. æKY TTranscriptView.GetInsertionPointRect
  32848. æD FUNCTION TTranscriptView.GetInsertionPointRect: Rect;
  32849. æFi UTranscriptView.p
  32850. æT METHOD 
  32851. æC GetInsertionPointRect returns the rectangle, expressed in in local coordinates, 
  32852. defining the boundaries of the list item that contains the insertion point. 
  32853. GetInsertionPointRect is called by TTranscriptView.AddText and 
  32854. TTranscriptView.DoKeyCommand to find the insertion point when adding text to the Debug 
  32855. Transcript window. GetInsertionPointRect is called by TTranscriptView.DoIdle to cause 
  32856. the insertion point to blink. GetInsertionPointRect is also called by the methods 
  32857. TTranscriptView.RevealInsertionPoint and TTranscriptView.RevealInsertionPointLine. 
  32858. You can call GetInsertionPointRect when you need a description of the location of the 
  32859. insertion point or list item that it marks. 
  32860.  
  32861.  
  32862.  
  32863. æKY TTranscriptView.HandleMouseDown
  32864. æD FUNCTION TTranscriptView.HandleMouseDown(theMouse: VPoint; VAR info: EventInfo;
  32865.   VAR hysteresis: Point; VAR theCommand: TCommand): BOOLEAN; OVERRIDE;
  32866. æFi UTranscriptView.p
  32867. æT METHOD 
  32868. æC HandleMouseDown processes the specified mouse-down event and provides an 
  32869. appropriate TCommand object to handle undoable actions. This method sets the 
  32870. affectsMenus field of the event record to FALSE in order to keep the MacApp debugger 
  32871. from interfering with the current state of menus; it then calls INHERITED 
  32872. HandleMouseDown to do the actual work of handling the mouse click and returns TRUE if 
  32873. the mouse click was handled. The parameter theMouse is the current position of 
  32874. the mouse pointer, expressed in local view coordinates. The info parameter is 
  32875. the information from the Toolbox event record describing the mouse-down event 
  32876. that caused this method to be called. The hysteresis parameter is a point that 
  32877. represents the horizontal and vertical distance the mouse can travel between 
  32878. clicks and still be considered to be at the same location. MacApp uses this 
  32879. parameter to determine whether a double click has occurred or if the mouse pointer has 
  32880. moved. The parameter theCommand is the command object that handles the mouse 
  32881. click. MacApp calls HandleMouseDown when the user clicks anywhere within the 
  32882. boundaries of the Debug Transcript window. You usually do not need to call 
  32883. HandleMouseDown yourself. 
  32884.  
  32885.  
  32886.  
  32887. æKY TTranscriptView.IndexColToLocal
  32888. æD FUNCTION TTranscriptView.IndexColToLocal(index, col: INTEGER): Point;
  32889. æFi UTranscriptView.p
  32890. æT METHOD 
  32891. æC IndexColToLocal converts the given values to a point in local view coordinates. 
  32892. The index parameter is the row number occupied by the specified item. The col 
  32893. parameter specifies the column containing the specified item. IndexColToLocal is 
  32894. called by TTranscriptView.AddText when determining the insertion point; it is 
  32895. also called by TTranscriptView.GetInsertionPointRect when computing the 
  32896. rectangle that contains the insertion point. You can use IndexColToLocal in a similar 
  32897. fashion; however, you rarely need to call it yourself unless you modify the 
  32898. debugger. 
  32899.  
  32900.  
  32901.  
  32902. æKY TTranscriptView.IndexToLocal
  32903. æD FUNCTION TTranscriptView.IndexToLocal(index: INTEGER): INTEGER;
  32904. æFi UTranscriptView.p
  32905. æT METHOD 
  32906. æC IndexToLocal returns the vertical coordinate of the specified row. The index 
  32907. parameter is the row number that is to be converted into a vertical view 
  32908. coordinate. IndexToLocal is called by TTranscriptView.Draw to determine the vertical 
  32909. coordinate where drawing will take place; it is also called by 
  32910. TTranscriptView.IndexColToLocal to determine the vertical coordinate that that method 
  32911. returns. You can use IndexToLocal in a similar fashion; however, you rarely need to 
  32912. call it yourself unless you modify the debugger. 
  32913.  
  32914.  
  32915.  
  32916. æKY TTranscriptView.IndexToRow
  32917. æD FUNCTION TTranscriptView.IndexToRow(index: INTEGER): INTEGER;
  32918.  
  32919. æFi UTranscriptView.p
  32920. æT METHOD 
  32921. æC IndexToRow returns the index as a row number. The index parameter is the 
  32922. position in the list that is to be expressed as a row number. IndexToRow is called by 
  32923. TTranscriptView.IndexToLocal when computing the vertical coordinate of a given 
  32924. index. You can use IndexToRow in a similar fashion; however, you rarely need to 
  32925. call it yourself unless you modify the debugger. 
  32926.  
  32927.  
  32928.  
  32929. æKY TTranscriptView.InstallTextStyle
  32930. æD PROCEDURE TTranscriptView.InstallTextStyle(theStyle: TextStyle);
  32931. æFi UTranscriptView.p
  32932. æT METHOD 
  32933. æC InstallTextStyle installs a text style into the grafPort being used by the 
  32934. debugger and resizes the view to accommodate the new text style. Th eparameter 
  32935. theStyle specifies text attributes such as color, size, and font. InstallTextStyle 
  32936. is called by the global routine InitUDebug when initializing the view used for 
  32937. the debugger's output. It is also called by the global routine WindCmd to 
  32938. install a text style in the view used to display the content of the Debug Transcript 
  32939. window. You can use InstallTextStyle in a similar fashion; however, you rarely 
  32940. need to call it yourself unless you modify the debugger. 
  32941.  
  32942.  
  32943.  
  32944. æKY TTranscriptView.IRes
  32945. æD PROCEDURE TTranscriptView.IRes(itsDocument: TDocument; itsSuperView: TView; 
  32946.   VAR itsParams: Ptr);
  32947. æFi UTranscriptView.p
  32948. æT METHOD 
  32949. æC IRes initializes a TTranscriptView object from a 'view' resource template. The 
  32950. itsDocument parameter specifies the TDocument object associated with this view. 
  32951. The itsSuperView parameter specifies the view in which this view is to be 
  32952. installed. The itsParams parameter is a pointer to the portion of the 'view' 
  32953. resource data used to initialize this view. When the IRes method finishes initializing 
  32954. the view, the method moves the pointer to the end of this data. MacApp calls 
  32955. this method for each of the views created from a 'view' resource template, 
  32956. usually in response to a NewTemplateWindow or a DoCreateViews call. You never need 
  32957. to call IRes yourself. 
  32958.  
  32959.  
  32960.  
  32961. æKY TTranscriptView.ITranscriptView
  32962. æD PROCEDURE TTranscriptView.ITranscriptView(itsSuperView: TView; outputFont, 
  32963.   outputSize: INTEGER; numLines, numCharsPerLine: INTEGER);
  32964. æFi UTranscriptView.p
  32965. æT METHOD 
  32966. æC ITranscriptView initializes a TTranscriptView view. The itsSuperView parameter 
  32967. is the view in which this view will be installed. The outputFont parameter is an 
  32968. integer indicating the font that will be used to draw or print the debugger 
  32969. output. The outputSize parameter is the font size of the output font. The 
  32970. numLines parameter is the number of lines visible in the TTranscriptView view. The 
  32971. numCharsPerLine parameter is the number of characters that fit onto one line in 
  32972. the Debug Transcript window when drawn in the output font. ITranscriptView is 
  32973. called by the global routine InitUDebug when initializing a TTranscriptView 
  32974. object. You can use ITranscriptView in a similar fashion; however, you rarely need to 
  32975. call it yourself unless you modify the debugger. 
  32976.  
  32977.  
  32978.  
  32979. æKY TTranscriptView.LocalToCol
  32980. æD FUNCTION TTranscriptView.LocalToCol(local: INTEGER): INTEGER;
  32981. æFi UTranscriptView.p
  32982. æT METHOD 
  32983. æC This method, when overridden, should return the column number of the line that 
  32984. contains the specified local vertical coordinate. The default version is empty. 
  32985. The local parameter specifies the vertical coordinate for which the column 
  32986. number will be returned. 
  32987.  
  32988.  
  32989.  
  32990. æKY TTranscriptView.LocalToIndex
  32991. æD FUNCTION TTranscriptView.LocalToIndex(local: INTEGER): INTEGER;
  32992. æFi UTranscriptView.p
  32993. æT METHOD 
  32994. æC LocalToIndex converts a specified vertical local coordinate into an index to the 
  32995. line buffers. The local parameter specifies the coordinate for which the index 
  32996. is to be returned. LocalToIndex is called by TTranscriptView.Draw to get the 
  32997. index of the line to draw. You probably will not need to call this method. 
  32998.  
  32999.  
  33000.  
  33001. æKY TTranscriptView.PrevIndex
  33002. æD FUNCTION TTranscriptView.PrevIndex(ln: INTEGER): INTEGER;
  33003. æFi UTranscriptView.p
  33004. æT METHOD 
  33005. æC PrevIndex returns the number of the line that precedes the one specified by the 
  33006. ln parameter. Lines are wrapped circularly; that is, the line considered to 
  33007. precede the first one is the last. The ln parameter is the number of the specified 
  33008. line. 
  33009.  
  33010.  
  33011.  
  33012. æKY TTranscriptView.Redirect
  33013. æD FUNCTION TTranscriptView.Redirect(vRefnum: INTEGER; fileName: StringPtr): OSErr;
  33014. æFi UTranscriptView.p
  33015. æT METHOD 
  33016. æC If passed a valid vRefNum, this method redirects debugger output to the 
  33017. specified file. If the filename contains '>>', the file is opened for append; 
  33018. otherwise, this method truncates the file to 0 length first. Redirect does not set the 
  33019. fWrToFile state variable. Redirect returns an OSErr value if any of its 
  33020. operations fail; otherwise, it returns the value noErr. The vRefNum parameter is the 
  33021. volume ID of the volume to which the file is to be redirected. The fileName 
  33022. parameter is a pointer to the string that is the name of the redirect file. Redirect 
  33023. is called by the global routine DebugRedirect to enable redirection after that 
  33024. method makes sure the Debug Transcript view is valid. It is also called by the 
  33025. global routine DebugTerminate and by TTranscriptView.Free to close the 
  33026. redirect file before attempting other tasks. You can call this method to redirect the 
  33027. debugger’s output to a file or a view; however, you rarely need to call it 
  33028. yourself unless you modify the debugger. 
  33029.  
  33030.  
  33031.  
  33032. æKY TTranscriptView.RevealInsertionPoint
  33033. æD PROCEDURE TTranscriptView.RevealInsertionPoint;
  33034. æFi UTranscriptView.p
  33035. æT METHOD 
  33036. æC This method displays the insertion point, scrolling through the view if 
  33037. necessary. The following global routines call RevealInsertionPoint to display the 
  33038. insertion point on the screen, generally as the precursor to some other action: 
  33039. DebugReadLn, GetPromptedChar, GetPromptedString, and WithHideFromMacAppDo. 
  33040. RevealInsertionPoint is also called by TDebugApplication.PollEvent if the Debug 
  33041. Transcript window is not shown. You can use this method in a similar fashion; however, 
  33042. you rarely need to call it yourself unless you modify the debugger. 
  33043.  
  33044.  
  33045.  
  33046. æKY TTranscriptView.RevealInsertionPointLine
  33047. æD PROCEDURE TTranscriptView.RevealInsertionPointLine;
  33048. æFi UTranscriptView.p
  33049. æT METHOD 
  33050. æC RevealInsertionPointLine displays the line containing the insertion point, 
  33051. scrolling through the view if necessary. RevealInsertionPointLine is called by 
  33052. TTranscriptView.AddText to show the line containing the new text. You can use 
  33053. RevealInsertionPointLine in a similar fashion; however, you rarely need to call it 
  33054. yourself unless you modify the debugger. 
  33055.  
  33056.  
  33057.  
  33058. æKY TTranscriptView.RowToIndex
  33059. æD FUNCTION TTranscriptView.RowToIndex(row: INTEGER): INTEGER;
  33060. æFi UTranscriptView.p
  33061. æT METHOD 
  33062. æC RowToIndex returns an integer representing the specified row as an index into 
  33063. the line buffers. The row parameter is the number of the row to be converted into 
  33064. an index. RowToIndex is called by TTranscriptView.AddText and 
  33065. TTranscriptView.GetInsertionPointRect in determining the insertion point. It is also 
  33066. called by TTranscriptView.LocalToIndex to compute the index of a row containing a 
  33067. specified vertical coordinate. You can use RowToIndex in a similar fashion; however, 
  33068. you rarely need to call this method yourself unless you modify the debugger. 
  33069.  
  33070.  
  33071.  
  33072. æKY TTranscriptView.Scroll
  33073. æD PROCEDURE TTranscriptView.Scroll(howManyLines: INTEGER);
  33074.  
  33075. æFi UTranscriptView.p
  33076. æT METHOD 
  33077. æC This method scrolls through the view vertically by the specified number of 
  33078. lines. The howManyLines parameter specifies the number of lines by which to scroll. 
  33079.  
  33080.  
  33081.  
  33082. æKY TTranscriptView.SuccIndex
  33083. æD FUNCTION TTranscriptView.SuccIndex(ln: INTEGER): INTEGER;
  33084. æFi UTranscriptView.p
  33085. æT METHOD 
  33086. æC SuccIndex returns the number of the line that follows the one specified in the 
  33087. ln parameter. Lines are wrapped circularly; that is, the line considered to 
  33088. follow the last one is the first. The ln parameter is the number of the specified 
  33089. line. SuccIndex is called by TTranscriptView.AddText when setting the index of 
  33090. the next new line in the text buffer. It is also called by TTranscriptView.Draw 
  33091. when advancing the' insertion point to a new line. You can use SuccIndex in a 
  33092. similar fashion; however, you rarely need to call it yourself unless you modify 
  33093. the debugger. 
  33094.  
  33095.  
  33096.  
  33097. æKY TUndoRedoCommand.DoIt
  33098. æD PROCEDURE TUndoRedoCommand.DoIt; OVERRIDE;
  33099. æFi UMacApp.p
  33100. æT METHOD 
  33101. æC DoIt undoes or redoes the last command, updates the view and the Clipboard, and 
  33102. updates the fChangeCount field as appropriate. MacApp calls this method when 
  33103. the user chooses the Undo or Redo item from the application’s Edit menu. You 
  33104. never need to call DoIt yourself. 
  33105.  
  33106.  
  33107.  
  33108. æKY TUndoRedoCommand.Fields
  33109. æD PROCEDURE TUndoRedoCommand.Fields(PROCEDURE DoToField(fieldName: Str255;    
  33110.   fieldAddr: Ptr; fieldType: INTEGER)); OVERRIDE;  
  33111.  
  33112. æFi UMacApp.p
  33113. æT METHOD 
  33114. æC Fields reports the contents of each field of the TUndoRedoCommand object to the 
  33115. MacApp Inspector. DoToField is a procedure that MacApp passes to Fields to 
  33116. report the contents of each field. Fields iterates over all the fields of the 
  33117. TUndoRedoCommand object, performing DoToField on each one. The fieldName parameter 
  33118. is the name of the field. The fieldAddr parameter is the field’s location in 
  33119. memory. The fieldType parameter uses a predefined constant to tell Fields what 
  33120. type of information to look for in a field. MacApp calls Fields from the MacApp 
  33121. Inspector. You must override this method in your subclasses if you want the 
  33122. Inspector to display your fields. Your override must call INHERITED Fields as its 
  33123. last action to ensure that the inherited fields are also displayed. 
  33124.  
  33125.  
  33126.  
  33127. æKY TUndoRedoCommand.IUndoRedoCommand
  33128. æD PROCEDURE TUndoRedoCommand.IUndoRedoCommand(itsCmdNumber: CmdNumber);
  33129. æFi UMacApp.p
  33130. æT METHOD 
  33131. æC IUndoRedoCommand initializes a TUndoRedoCommand object and associates it with a 
  33132. command number. The itsCmdNumber parameter is the command number associated 
  33133. with a particular menu command — in this case, the Undo or Redo command typically 
  33134. found in an application's Edit menu. The command number is used in the 'cmnu' 
  33135. resource in the resource description file; you usually define a constant to 
  33136. represent that number in both the resource description file and in the appropriate 
  33137. interface or implementation file of the application. MacApp calls this method 
  33138. when it creates the TUndoRedoCommand object in TApplication.DoMenuCommand. You 
  33139. never need to call IUndoRedoCommand yourself. 
  33140.  
  33141.  
  33142.  
  33143. æKY TView.Activate
  33144. æD PROCEDURE TView.Activate(entering: BOOLEAN);
  33145.  
  33146. æFi UMacApp.p
  33147. æT METHOD 
  33148. æC Activate performs any adjustments to the TView object that correspond to 
  33149. activation or deactivation of the view. The default version, for example, adjusts its 
  33150. highlight state and then sends the activate message. The entering parameter 
  33151. indicates whether the TView object is to be activated or deactivated. For example, 
  33152. you might expect the value of the entering parameter to be TRUE if the 
  33153. Activate method of an editable text view is called in response to a user’s mouse click 
  33154. in the view. This method is called by MacApp when the TView object or its 
  33155. superview is activated or deactivated. 
  33156.  
  33157.  
  33158.  
  33159. æKY TView.AddSubView
  33160. æD PROCEDURE TView.AddSubView(theSubView: TView);
  33161. æFi UMacApp.p
  33162. æT METHOD 
  33163. æC AddSubView adds a new TView object to this view’s list of subviews. If this 
  33164. view’s list of subviews is NIL, then AddSubView creates a new list. The parameter 
  33165. theSubView contains the TView object to be added. MacApp calls AddSubView when 
  33166. installing subviews in windows and dialog boxes. You can use AddSubView to 
  33167. install palettes in document windows, to install dialog items in dialog boxes, or 
  33168. for similar purposes. 
  33169.  
  33170.  
  33171.  
  33172. æKY TView.AdjustSize
  33173. æD PROCEDURE TView.AdjustSize;
  33174. æFi UMacApp.p
  33175. æT METHOD 
  33176. æC AdjustSize adjusts the size of the view and recalculates pagination. MacApp 
  33177. calls AdjustSize whenever a change in data may have caused the size of the view to 
  33178. change. For example, MacApp calls the AdjustSize when a row or column is 
  33179. deleted in a TGridView. 
  33180.  
  33181.  
  33182.  
  33183. æKY TView.Adorn
  33184. æD PROCEDURE TView.Adorn(area: Rect; itsPenSize: Point; itsAdornment: CntlAdornment);
  33185. æFi UMacApp.p
  33186. æT METHOD 
  33187. æC Adorn draws a special border, or adornment, around a specified portion of the 
  33188. view. The area parameter specifies the rectangle around which the adornment is to 
  33189. be drawn. Adorn sets the pen size to the value of itsPenSize and then draws an 
  33190. adornment consisting of any graphic objects contained in the itsAdornment 
  33191. parameter. The itsAdornment parameter is a set consisting of predefined standard 
  33192. adornment elements. The default version of this method uses the following 
  33193. elements: adnShadow = creates a shadow for the adornment adnOval = adorns the view 
  33194. with an oval adnRRect = adorns the view with a rounded rectangle adnLineTop = 
  33195. draws a line across the top of the specified area adnLineLeft = draws a line down 
  33196. the left side of the specified area adnLineBottom = draws a line across the 
  33197. bottom of the specified area adnLineRight = draws a line down the right side of the 
  33198. specified area MacApp calls Adorn to draw boxes around editable text fields in 
  33199. dialog boxes and to draw borders around certain controls. You can call Adorn 
  33200. in similar circumstances to draw borders around your own TView objects. 
  33201.  
  33202.  
  33203.  
  33204. æKY TView.AssumeFocused
  33205. æD PROCEDURE TView.AssumeFocused;
  33206. æFi UMacApp.p
  33207. æT METHOD 
  33208. æC AssumeFocused causes a ProgramBreak if the focused view isn't SELF. For debugging 
  33209. purposes only, MacApp frequently calls AssumeFocused from a drawing method when 
  33210. another method should have focused the affected view. You can use 
  33211. AssumeFocused in a similar way to ensure that the current view is focused before its 
  33212. drawing methods are called. 
  33213.  
  33214.  
  33215.  
  33216. æKY TView.AttachPrintHandler
  33217. æD PROCEDURE TView.AttachPrintHandler(itsPrintHandler: TPrintHandler);
  33218. æFi UMacApp.p
  33219. æT METHOD 
  33220. æC AttachPrintHandler assigns the specified print handler to the TView object’s 
  33221. fPrintHandler field. MacApp calls AttachPrintHandler when a TView object is 
  33222. initialized. The method attaches the view’s print handler, which then handles any 
  33223. printing requests. MacApp also calls AttachPrintHandler when a print handler is 
  33224. freed. In this case the method assigns gNullPrintHandler to the TView object’s 
  33225. fPrintHandler field. 
  33226.  
  33227.  
  33228.  
  33229. æKY TView.BeInPort
  33230. æD PROCEDURE TView.BeInPort(itsPort: GrafPtr);
  33231. æFi UMacApp.p
  33232. æT METHOD 
  33233. æC BeInPort performs any housekeeping necessary to support graphics or printing 
  33234. operations on the TView object’s grafPort. The default version calls the 
  33235. CheckPrinter method of the view’s print handler and sends the BeInPort message to any 
  33236. subviews. The itsPort parameter is a pointer to the grafPort in which the TView 
  33237. object is to be drawn; the grafPort is used to support graphics or printing 
  33238. operations on the view. MacApp uses BeInPort in TView methods that change active 
  33239. views. You usually do not need to call this method unless you change the way 
  33240. MacApp activates or deactivates views. 
  33241.  
  33242.  
  33243.  
  33244. æKY TView.BeInScroller
  33245. æD PROCEDURE TView.BeInScroller(itsScroller: TScroller);
  33246. æFi UMacApp.p
  33247. æT METHOD 
  33248. æC BeInScroller performs housekeeping that is needed when the TView object’s 
  33249. scroller becomes the current scroller. In particular, the default version recomputes 
  33250. the scrolling limit of the TView object’s scroller to keep it current. The 
  33251. itsScroller parameter is the TView object’s scroller. MacApp calls BeInScroller 
  33252. when performing operations in which a scroller must be updated, such as adding a 
  33253. subview to the scroller. 
  33254.  
  33255.  
  33256.  
  33257. æKY TView.CalcMinSize
  33258. æD PROCEDURE TView.CalcMinSize(VAR minSize: VPoint);
  33259. æFi UMacApp.p
  33260. æT METHOD 
  33261. æC CalcMinSize calculates the minimum dimensions of the TView object. The minSize 
  33262. parameter contains the calculated size, represented as a view point, when the 
  33263. method returns. The default version simply stores the value of the TView object’s 
  33264. fSize field in minSize. MacApp calls CalcMinSize when changing the size of a 
  33265. view; you must call CalcMinSize from your methods that change the size of views. 
  33266. You must override this method in subclasses that need to set a minimum 
  33267. acceptable size for a view. 
  33268.  
  33269.  
  33270.  
  33271. æKY TView.ClipFurtherTo
  33272. æD PROCEDURE TView.ClipFurtherTo(r: Rect; hDeltaOrg, vDeltaOrg: INTEGER);
  33273. æFi UMacApp.p
  33274. æT METHOD 
  33275. æC ClipFurtherTo sets the clipping rectangle of the view to be the intersection of 
  33276. the current clipping rectangle with the specified rectangle, with the specified 
  33277. offset. The r parameter specifies the rectangle whose intersection with the 
  33278. current clipping rectangle is to be determined. The hDeltaOrg parameter specifies 
  33279. the horizontal offset of the rectangle specified by r, and vDeltaOrg specifies 
  33280. its vertical offset. The offsets are calculated from the origin of the current 
  33281. grafPort. MacApp calls ClipFurtherTo in Focus and AutoScroll methods. You 
  33282. probably will not need to call this method. 
  33283.  
  33284.  
  33285.  
  33286. æKY TView.Close
  33287. æD PROCEDURE TView.Close;
  33288. æFi UMacApp.p
  33289. æT METHOD 
  33290. æC This method closes the TView object and its subviews. Close commits the last 
  33291. command so that it can no longer be undone. MacApp calls this method when a window 
  33292. is closed. You probably will not need to call Close yourself. 
  33293.  
  33294.  
  33295.  
  33296. æKY TView.ComputeSize
  33297. æD PROCEDURE TView.ComputeSize(VAR newSize: VPoint);
  33298. æFi UMacApp.p
  33299. æT METHOD 
  33300. æC ComputeSize calculates the size of the TView object. The computation is 
  33301. performed in different ways, depending on the value of the fSizeDeterminer field. The 
  33302. newSize parameter is a VPoint value in which the method stores the computed 
  33303. size. MacApp calls ComputeSize when it changes the size of the view; for example, 
  33304. AdjustSize methods call ComputeSize and use the resulting value to set the size 
  33305. of the view. You can use ComputeSize for similar purposes. 
  33306.  
  33307.  
  33308.  
  33309. æKY TView.ContainsClipType
  33310. æD FUNCTION TView.ContainsClipType(aType: ResType): BOOLEAN;
  33311. æFi UMacApp.p
  33312. æT METHOD 
  33313. æC ContainsClipType tests whether there are any resources of the specified resource 
  33314. type in the desk scrap and returns a value of TRUE if there are. The aType 
  33315. parameter is a packed array of four characters that specifies a resource type. 
  33316. MacApp calls ContainsClipType when checking to determine whether it can paste a 
  33317. resource from the desk scrap into a document. 
  33318.  
  33319.  
  33320.  
  33321. æKY TView.ContainsMouse
  33322. æD FUNCTION TView.ContainsMouse(theMouse: VPoint): BOOLEAN;
  33323. æFi UMacApp.p
  33324. æT METHOD 
  33325. æC ContainsMouse tests whether the mouse pointer is within the bounds of the view. 
  33326. The method returns the value TRUE if the mouse pointer is within a viewthat is 
  33327. visible. The method returns the value FALSE if the view is not shown on the 
  33328. screen or if the mouse pointer is not within the bounds of the view. The parameter 
  33329. theMouse contains the mouse pointer’s location, expressed as a point in view 
  33330. coordinates. You can call this method to determine whether the pointer is within 
  33331. a particular view. MacApp uses it for the same purpose. 
  33332.  
  33333.  
  33334.  
  33335. æKY TView.CountSubViews
  33336. æD FUNCTION TView.CountSubViews: INTEGER;
  33337. æFi UMacApp.p
  33338. æT METHOD 
  33339. æC CountSubViews returns the number of subviews contained in this view. When 
  33340. testing mouse clicks in windows and dialog boxes, and when drawing the contents of 
  33341. windows, MacApp calls CountSubViews to determine whether a given view contains 
  33342. any subviews that might be affected. You can use this method for the same purpose. 
  33343.  
  33344.  
  33345.  
  33346. æKY TView.DoBreakFollowing
  33347. æD FUNCTION TView.DoBreakFollowing(vhs: VHSelect; prevBreak: VCoordinate;
  33348. VAR automatic: BOOLEAN): VCoordinate;
  33349. æFi UMacApp.p
  33350. æT METHOD 
  33351. æC DoBreakFollowing forces a page break for printing at a particular position in a 
  33352. view and returns a view coordinate containing the location of the new page 
  33353. break. The vhs parameter specifies whether the page break is a horizontal or a 
  33354. vertical one; that is, whether page 2 is to the right of page 1, or below it. The 
  33355. prevBreak parameter specifies the position of the previous page break as a 
  33356. MacApp coordinate. The method stores a Boolean value in the automatic parameter 
  33357. indicating whether the break is to be considered an automatic page break. The 
  33358. default method of TStdPrintHandler sets this parameter to TRUE. MacApp calls this 
  33359. method from other methods that calculate the positions of page breaks. You 
  33360. normally will not need to call DoBreakFollowing directly. 
  33361.  
  33362.  
  33363.  
  33364. æKY TView.DoCalcPageStrips
  33365. æD PROCEDURE TView.DoCalcPageStrips(VAR pageStrips: Point);
  33366. æFi UMacApp.p
  33367. æT METHOD 
  33368. æC DoCalcPageStrips calculates the number of physical pages represented by the 
  33369. contents of the view, storing the result in the vertical coordinate of the 
  33370. pageStrips parameter. MacApp calls this method to determine the physical dimensions of 
  33371. each page in a view that is about to be printed. You usually do not need to 
  33372. call this method yourself. Override this method to change the way view contents 
  33373. are divided into pages for printing. 
  33374.  
  33375.  
  33376.  
  33377. æKY TView.DoCalcViewPerPage
  33378. æD PROCEDURE TView.DoCalcViewPerPage(VAR viewPerPage: VPoint);
  33379. æFi UMacApp.p
  33380. æT METHOD 
  33381. æC DoCalcViewPerPage computes the size of its view object and calculates the number 
  33382. of identical views that can be printed vertically on a page. It then returns 
  33383. this number (truncated to an integer) as the vertical coordinate of the 
  33384. viewPerPage parameter. MacApp calls this method when performing calculations in 
  33385. preparation for printing the view. You usually do not need to call this method 
  33386. yourslef or override it. 
  33387.  
  33388.  
  33389.  
  33390. æKY TView.DoCheckPrinter
  33391. æD PROCEDURE TView.DoCheckPrinter;
  33392. æFi UMacApp.p
  33393. æT METHOD 
  33394. æC DoCheckPrinter determines whether the printer selected through the Chooser has 
  33395. changed. If it has, the method recomputes the effective device resolution and 
  33396. performs other housekeeping tasks for printing. MacApp calls this method whenever 
  33397. a new print handler is attached to a view and whenever the currently active 
  33398. view changes. You can call DoCheckPrinter when you suspect your code needs to 
  33399. verify the current printer’s characteristics, and you are not sure whether MacApp 
  33400. will handle it for you. 
  33401.  
  33402.  
  33403.  
  33404. æKY TView.DoChoice
  33405. æD PROCEDURE TView.DoChoice(origView: TView; itsChoice: INTEGER); OVERRIDE;
  33406. æFi UMacApp.p
  33407. æT METHOD 
  33408. æC The default version of DoChoice calls the DoChoice method of its superview; it 
  33409. calls INHERITED DoChoice if there is no superview. Subclasses of TView can 
  33410. override DoChoice to perform appropriate actions when processing user-generated 
  33411. events. The origView parameter is the TView object that first made the call to its 
  33412. DoChoice method in response to a user action. The itsChoice parameter is an 
  33413. integer specifying the user’s choice. This parameter is necessary for dialog items 
  33414. that present multiple choices, such as pop-up menus, or clusters of radio 
  33415. buttons or check boxes. MacApp calls DoChoice in methods such as TrackMouse, when a 
  33416. user is operating on a view or group of views with the mouse. You can override 
  33417. this method to perform actions in response to mouse clicks or movement in your 
  33418. TView objects. 
  33419.  
  33420.  
  33421.  
  33422. æKY TView.DoDrawPageBreak
  33423. æD PROCEDURE TView.DoDrawPageBreak(vhs: VHSelect; whichBreak: INTEGER; 
  33424.   loc: VCoordinate; automatic: BOOLEAN);
  33425. æFi UMacApp.p
  33426. æT METHOD 
  33427. æC DoDrawPageBreak draws page breaks in the view. The vhs parameter specifies 
  33428. whether page breaks are horizontal or vertical; that is, whether page 2 is to the 
  33429. right of page 1, or below it. The whichBreak parameter specifies which page break 
  33430. is to be drawn. Page breaks are numbered, with the first one that occurs being 
  33431. numbered 1. The loc parameter specifies the screen location for the page break 
  33432. image. The automatic parameter is used to store information on whether the 
  33433. break is to be considered an automatic page break; the default version of this 
  33434. method, however, ignores this parameter. MacApp calls DoDrawPageBreak as part of 
  33435. its print feedback routines. You usually do not need to call DoDrawPageBreak 
  33436. yourself or override it. 
  33437.  
  33438.  
  33439.  
  33440. æKY TView.DoDrawPrintFeedback
  33441. æD PROCEDURE TView.DoDrawPrintFeedback(area: Rect);
  33442. æFi UMacApp.p
  33443. æT METHOD 
  33444. æC DoDrawPrintFeedback draws page breaks, rulers, page numbers, and so on, in views 
  33445. that might be printed. This method simply calls the DrawPrintFeedback method 
  33446. of its print handler, the default version of which is an empty method. To draw 
  33447. anything in the view you must override this DrawPrintFeedback method. The area 
  33448. parameter is a QuickDraw rectangle, expressed in local coordinates, defining the 
  33449. part of the control that needs to be redrawn. You use the parameter to 
  33450. optimize drawing speed. MacApp calls DoDrawPrintFeedback from TView.DrawContents. You 
  33451. usually do not need to call this method yourself. 
  33452.  
  33453.  
  33454.  
  33455. æKY TView.DoHighlightSelection
  33456. æD PROCEDURE TView.DoHighlightSelection(fromHL, toHL: HLState);
  33457. æFi UMacApp.p
  33458. æT METHOD 
  33459. æC DoHighlightSelection sets the highlight state of the TView object’s selection. 
  33460. The default version of DoHighlightSelection does nothing; you can override it to 
  33461. perform the appropriate action to highlight a selection in a given TView 
  33462. object. The parameter fromHL is the selection’s original highlight state; the toHL 
  33463. parameter is the desired highlight state. Possible highlight states are hlOff 
  33464. (selection is not highlighted), hlDim (selection is dimmed), and hlOn (selection 
  33465. is highlighted). MacApp calls this method from Activate methods and from 
  33466. DrawContents methods; you usually do not need to call it yourself. 
  33467.  
  33468.  
  33469.  
  33470. æKY TView.DoMenuCommand
  33471. æD FUNCTION TView.DoMenuCommand(aCmdNumber: CmdNumber): TCommand;
  33472. æFi UMacApp.p
  33473. æT METHOD 
  33474. æC DoMenuCommand returns a TCommand object to handle a user’s menu selections, or 
  33475. handles the selections directly. The default version of this method handles only 
  33476. printing commands; it calls the DoMenuCommand method of the view’s print 
  33477. handler if the aCmdNumber parameter specifies a valid printing command; otherwise, 
  33478. it calls INHERITED DoMenuCommand. The parameter aCmdNumber is the command number 
  33479. defined for the selected menu item. MacApp predefines certain command numbers 
  33480. as constants in the file UMacApp.p; you can define others in your 'cmnu' 
  33481. resource description and in the appropriate interface or implementation file. MacApp 
  33482. calls DoMenuCommand when the TView object is currently active and the user 
  33483. chooses a command from a pull-down menu.You usually do not need to call this method 
  33484. yourself. You must override this method if you define your own command 
  33485. numbers. Commands your override cannot handle must be passed back to the command chain 
  33486. by calling INHERITED DoMenuCommand. 
  33487.  
  33488.  
  33489.  
  33490. æKY TView.DoMouseCommand
  33491. æD FUNCTION TView.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo;
  33492.   VAR hysteresis: Point): TCommand;
  33493. æFi UMacApp.p
  33494. æT METHOD 
  33495. æC DoMouseCommand, when overridden, performs the appropriate actions to process a 
  33496. mouse click in a TView object. The override must return a TCommand object to 
  33497. handle complex commands; simple commands may be handled by the method directly. 
  33498. The method’s parameters enable you both to pass information to the method and to 
  33499. receive changes made during the method’s operation. The parameter theMouse is 
  33500. the location of the mouse click, expressed in local view coordinates. The info 
  33501. parameter is the mouse-down event record, which is passed on by the method when 
  33502. it returns in case other methods need to use it. The hysteresis parameter is a 
  33503. point that represents the horizontal and vertical distance the mouse can travel 
  33504. between clicks and still be considered to be at the same location. MacApp uses 
  33505. this parameter to determine whether a double click has occurred or if a 
  33506. control has moved. MacApp calls DoMouseCommand when the mouse is clicked in the view. 
  33507. You usually do not need to call this method yourself because MacApp intercepts 
  33508. mouse clicks for you and dispatches them appropriately. The default version of 
  33509. this method does nothing. You must override this method to produce useful 
  33510. behavior, such as selecting an object that is represented in the view, or creating 
  33511. a TCommand object to perform more complex commands. 
  33512.  
  33513.  
  33514.  
  33515. æKY TView.DoOffScreen
  33516. æD PROCEDURE TView.DoOffScreen(PROCEDURE WhatToDo);
  33517.  
  33518. æFi UMacApp.p
  33519. æT METHOD 
  33520. æC This method is experimental and is not supported in MacApp 2.0. 
  33521.  
  33522.  
  33523.  
  33524. æKY TView.DoPagination
  33525. æD PROCEDURE TView.DoPagination;
  33526. æFi UMacApp.p
  33527. æT METHOD 
  33528. æC DoPagination recalculates the page breaks in the view for printing. MacApp calls 
  33529. DoPagination when the size of the view changes or when the printer is changed. 
  33530. The default version calls the RedoPageBreaks method of the TView object’s 
  33531. print handler. 
  33532.  
  33533.  
  33534.  
  33535. æKY TView.DoPrinterChanged
  33536. æD PROCEDURE TView.DoPrinterChanged;
  33537. æFi UMacApp.p
  33538. æT METHOD 
  33539. æC DoPrinterChanged performs any adjustments that might be necessary when the 
  33540. printer assignment changes. MacApp calls DoPrinterChanged when CheckPrinter methods 
  33541. reveal that the printer has changed. The default version calls the PrinterChanged 
  33542. method of the TView object’s print handler unless there is no PrintHandler; 
  33543. if there isn't one, the default method does nothing. 
  33544.  
  33545.  
  33546.  
  33547. æKY TView.DoSetCursor
  33548. æD FUNCTION TView.DoSetCursor(localPoint: Point; cursorRgn: RgnHandle): BOOLEAN;
  33549. æFi UMacApp.p
  33550. æT METHOD 
  33551. æC DoSetCursor sets the cursor image and returns the value TRUE if the cursor has 
  33552. been changed. The localPoint parameter is the location of the mouse pointer in 
  33553. the TView object’s local coordinates. The cursorRgn parameter is a handle to a 
  33554. region occupied by the cursor image. MacApp calls DoSetCursor from its 
  33555. HandlerCursor methods. The default method does nothing and always returns FALSE. You 
  33556. can override this method to test the cursor’s position in a view, change the 
  33557. cursor image if necessary, and return TRUE when the cursor has been changed. 
  33558.  
  33559.  
  33560.  
  33561. æKY TView.DoSetPageOffset
  33562. æD PROCEDURE TView.DoSetPageOffset(coord: VPoint);
  33563. æFi UMacApp.p
  33564. æT METHOD 
  33565. æC DoSetPageOffset sets the offset of the view on the page for printing. The coord 
  33566. parameter specifies the location of the top-left corner of the view’s image on 
  33567. the page. MacApp calls DoSetPageOffset from the page setup routines in its 
  33568. printing methods. Override this method only when you must calculate an image’s 
  33569. position on the page specially—for example, when you must print tall, unadjusted 
  33570. text. 
  33571.  
  33572.  
  33573.  
  33574. æKY TView.DoSetupMenus
  33575. æD PROCEDURE TView.DoSetupMenus;
  33576. æFi UMacApp.p
  33577. æT METHOD 
  33578. æC DoSetupMenus, when overridden, sets up menus used by the TView object when the 
  33579. view becomes active. The default version of this method calls INHERITED 
  33580. DoSetupMenus, and then sends the DoSetupMenus message to the TView object’s print 
  33581. handler, if it has one. MacApp calls this method when the view or its superview is 
  33582. selected or otherwise activated, such as when a TWindow object (a descendant of 
  33583. TView) becomes the active window. You usually do not need to call this method 
  33584. yourself. If you override this method in your subclasses,your override must call 
  33585. INHERITED DoSetupMenus as its first action, to allow other handlers to enable 
  33586. menu items to which they can respond. 
  33587.  
  33588.  
  33589.  
  33590. æKY TView.Draw
  33591. æD PROCEDURE TView.Draw(area: Rect);
  33592. æFi UMacApp.p
  33593. æT METHOD 
  33594. æC This method draws the image of the TView object on the screen. This is an empty 
  33595. method; you must override it, providing all code necessary to draw the contents 
  33596. of your view. The area parameter is the QuickDraw rectangle that defines the 
  33597. part of the view that needs to be redrawn; its value is specified in the view’s 
  33598. local coordinates. You use the area parameter to optimize drawing speed. If 
  33599. Draw is called by TView.DrawContents, the area parameter represents the visible 
  33600. portion of the view. MacApp calls the Draw method from methods that display the 
  33601. TView object’s image. For example, the Draw methods of TView’s subclasses call 
  33602. INHERITED Draw, and TView’s DrawContents method calls Draw. You must override 
  33603. Draw in your subclasses to display the screen image of views you have created, 
  33604. and you can call Draw whenever you want to ensure that the image is drawn on the 
  33605. screen. 
  33606.  
  33607.  
  33608.  
  33609. æKY TView.DrawContents
  33610. æD PROCEDURE TView.DrawContents;
  33611. æFi UMacApp.p
  33612. æT METHOD 
  33613. æC DrawContents draws the TView object and all its subviews. This method is used to 
  33614. draw the image of the view for printing, to create a Clipboard image, and to 
  33615. display the view on the screen. It draws the image on the screen only when it is 
  33616. not drawing to the desk scrap or creating output for the printer. In general, 
  33617. MacApp calls DrawContents whenever it needs to display a TView object—for 
  33618. example, when the user manipulates a control or moves a window and reveals part of 
  33619. another view. You can call DrawContents any time you want to ensure that the 
  33620. current image of the TView object is correct, but usually you will not need to 
  33621. call this method yourself. 
  33622.  
  33623.  
  33624.  
  33625. æKY TView.EachSubView
  33626. æD PROCEDURE TView.EachSubView(PROCEDURE DoToSubView(theSubView: TView));
  33627. æFi UMacApp.p
  33628. æT METHOD 
  33629. æC EachSubView iterates over all the TView object’s subviews, performing the 
  33630. DoToSubView procedure on each one in turn. The DoToSubView parameter is a procedure 
  33631. of one argument that is performed on each subview, but you must declare and 
  33632. implement this procedure yourself, and the procedure must not be a method. The 
  33633. procedure you write can have any name that does not conflict with other procedures 
  33634. in the scope of the TView class. Just as you can create any variable of the 
  33635. proper type, and then pass it as an argument to a procedure, you can create any 
  33636. procedure and pass it to EachSubView, as long as the procedure accepts one 
  33637. argument of type TView. MacApp binds this procedure to the formal parameter 
  33638. DoToSubView and then calls it with each of the TView object’s subviews bound to the 
  33639. parameter theSubView. MacApp calls this method when, for example, it activates a 
  33640. window with a number of subviews, because it must also activate each subview. You 
  33641. can call EachSubView to perform operations on all of a TView object’s 
  33642. subviews. You probably will not need to override EachSubView. 
  33643.  
  33644.  
  33645.  
  33646. æKY TView.Fields
  33647. æD PROCEDURE TView.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr;
  33648.   fieldType: INTEGER)); OVERRIDE;
  33649. æFi UMacApp.p
  33650. æT METHOD 
  33651. æC Fields reports the contents of each field of the TView object to the MacApp 
  33652. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  33653. contents of each field. Fields iterates over all the fields of the TView object, 
  33654. performing DoToField on each one. The fieldName parameter is the name of the 
  33655. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  33656. parameter uses a predefined constant to tell Fields what type of information to 
  33657. look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  33658. override this method in your subclasses if you want the Inspector to display your 
  33659. fields. Your override must call INHERITED Fields as its last action to ensure 
  33660. that the inherited fields are also displayed. 
  33661.  
  33662.  
  33663.  
  33664. æKY TView.FindSubView
  33665. æD FUNCTION TView.FindSubView(itsIdentifier: IDType): TView;
  33666. æFi UMacApp.p
  33667. æT METHOD 
  33668. æC FindSubView examines the subviews of the TView object. If it finds one that 
  33669. corresponds to the IDType passed in the itsIdentifier parameter, then it returns 
  33670. that TView object as its result. Otherwise it returns NIL, unless debugging is 
  33671. enabled, in which case it writes a message to the Debug Transcript window. MacApp 
  33672. calls FindSubView from methods that create and manipulate compound TView 
  33673. objects. For example, MacApp uses FindSubView to determine which dialog item a user 
  33674. clicks in a dialog box. You can use FindSubView for similar purposes. You 
  33675. normally will not need to override this method. 
  33676.  
  33677.  
  33678.  
  33679. æKY TView.FirstSubviewThat
  33680. æD FUNCTION TView.FirstSubViewThat
  33681.   (FUNCTION TestSubView(theSubView: TView): BOOLEAN): TView;
  33682. æFi UMacApp.p
  33683. æT METHOD 
  33684. æC FirstSubviewThat tests each subview of the TView object and returns the first 
  33685. one that matches the specified function’s test. The TestSubView parameter is a 
  33686. function that the method uses to test each subview in turn until the test 
  33687. succeeds. You must declare and implement this function yourself. The function you 
  33688. write can have any name that does not conflict with other functions in the scope of 
  33689. the TView class. Just as you can create any variable of the proper type and 
  33690. then pass it as an argument to a procedure, you can create any function and pass 
  33691. it to FirstSubviewThat, as long as the function accepts one argument of type 
  33692. TView. MacApp binds this function to the formal parameter DoToSubVie, and then 
  33693. calls it with each of the TView object’s subviews bound to the parameter 
  33694. theSubView. MacApp uses FirstSubviewThat to implement the FindSubView function (see 
  33695. the entry for TView.FindSubView). You can call this method to select subviews for 
  33696. your own purposes. You probably will not need to override FirstSubviewThat. 
  33697.  
  33698.  
  33699.  
  33700. æKY TView.Focus
  33701. æD FUNCTION TView.Focus: BOOLEAN;
  33702. æFi UMacApp.p
  33703. æT METHOD 
  33704. æC Focus sets the clipping rectangle for QuickDraw operations as the rectangle that 
  33705. encloses the TView object’s screen image and makes a QuickDraw SetOrigin call. 
  33706. Focus returns the value TRUE if it succeeds in focusing and FALSE if it does 
  33707. not. MacApp calls Focus for you in all Draw methods. You should call focus in 
  33708. any TView method besides Draw that draws in the view. Do not change the behavior 
  33709. of Focus. 
  33710.  
  33711.  
  33712.  
  33713. æKY TView.FocusOnSuperView
  33714. æD FUNCTION TView.FocusOnSuperView: BOOLEAN;
  33715. æFi UMacApp.p
  33716. æT METHOD 
  33717. æC FocusOnSuperView sets the clipping rectangle for QuickDraw operations as the 
  33718. rectangle that encloses this TView object’s superview. The method returns the 
  33719. value TRUE if it succeeds in obtaining a rectangle or returns the value FALSE if it 
  33720. does not. MacApp uses FocusOnSuperView when resizing views and when calling 
  33721. Focus to ensure that it is possible to focus on a view’s superview before trying 
  33722. to focus on the view itself. You can use it as a general utility when you want 
  33723. to accomplish a similar purpose, or if you need to draw in the superview of a 
  33724. particular view. Do not change the behavior of FocusOnSuperView. 
  33725.  
  33726.  
  33727.  
  33728. æKY TView.ForceRedraw
  33729. æD PROCEDURE TView.ForceRedraw;
  33730. æFi UMacApp.p
  33731. æT METHOD 
  33732. æC ForceRedraw forces QuickDraw to redraw the entire view image; normally QuickDraw 
  33733. clips drawing operations to a portion of the view image. MacApp calls 
  33734. ForceRedraw when some display data has changed and the normal Window Manager updating 
  33735. mechanisms do not draw the new information. For example, when you change the 
  33736. pattern in a scroll bar, the new pattern might not appear if the scroll bar’s 
  33737. rectangle is not automatically added to the window’s update region. ForceRedraw, 
  33738. however, would force the image to be redrawn. You can use ForceRedraw to ensure 
  33739. that an entire image will be redrawn. Do not change the behavior of ForceRedraw. 
  33740.  
  33741.  
  33742.  
  33743.  
  33744. æKY TView.Free
  33745. æD PROCEDURE TView.Free;
  33746. æFi UMacApp.p
  33747. æT METHOD 
  33748. æC Free releases the memory used by the TView object. It also frees any subviews 
  33749. the object might have and removes the object from its superview’s list of 
  33750. subviews. In addition, Free removes the TView object from any associated document and 
  33751. frees the print handler associated with the view. MacApp calls Free when 
  33752. initialization of an instance fails and it must release the memory that was allocated 
  33753. for the object. You usually do not need to call this method yourself. 
  33754.  
  33755.  
  33756.  
  33757. æKY TView.FreeFromClipboard
  33758. æD PROCEDURE TView.FreeFromClipboard;
  33759. æFi UMacApp.p
  33760. æT METHOD 
  33761. æC FreeFromClipboard deletes the TView object from the list of Clipboard views 
  33762. maintained by the view’s associated document. MacApp calls FreeFromClipboard from 
  33763. methods such as TApplication.AbandonUndoClipboard, or from CheckDeskScrap 
  33764. methods, which can change the contents of the desk scrap. You can use this method to 
  33765. remove the contents of a view from the Clipboard. 
  33766.  
  33767.  
  33768.  
  33769. æKY TView.GetDefaultCursorRgn
  33770. æD PROCEDURE TView.GetDefaultCursorRgn(localPoint: Point; cursorRgn: RgnHandle); 
  33771.  
  33772. æFi UMacApp.p
  33773. æT METHOD 
  33774. æC GetDefaultCursorRgn returns the largest appropriate cursor region. The 
  33775. localPoint parameter is the location of the mouse pointer in the TView object’s local 
  33776. coordinates. The cursorRgn parameter is a handle to a region occupied by the 
  33777. cursor image. DoSetCursor calls GetDefaultCursorRgn to determine the largest 
  33778. possible cursor region. You can use this method in a similar fashion. 
  33779.  
  33780.  
  33781.  
  33782. æKY TView.GetDialogView
  33783. æD FUNCTION TView.GetDialogView: TView;
  33784. æFi UMacApp.p
  33785. æT METHOD 
  33786. æC If the TView object is the subview of a TDialogView object, then GetDialogView 
  33787. returns that TDialogView object. Otherwise, the method returns NIL. MacApp calls 
  33788. GetDialogView from certain methods that, to perform their functions, must 
  33789. refer to a dialog box that contains the view. You can use this method in any method 
  33790. that requires explicit reference to a TDialogView object that contains the view. 
  33791.  
  33792.  
  33793.  
  33794. æKY TView.GetExtent
  33795. æD PROCEDURE TView.GetExtent(VAR itsExtent: VRect);
  33796. æFi UMacApp.p
  33797. æT METHOD 
  33798. æC GetExtent returns a view rectangle, in the view’s local coordinates, that 
  33799. represents the size of the view. This method stores the boundary rectangle of the 
  33800. view in the itsExtent parameter. MacApp calls GetExtent from methods such as 
  33801. ForceRedraw or from mouse-tracking methods that must use a rectangle the size of the 
  33802. view. You can call GetExtent whenever you need to know the current size of the 
  33803. TView object’s boundary rectangle. 
  33804.  
  33805.  
  33806.  
  33807. æKY TView.GetFrame
  33808. æD PROCEDURE TView.GetFrame(VAR itsFrame: VRect);
  33809. æFi UMacApp.p
  33810. æT METHOD 
  33811. æC GetFrame returns a view rectangle, expressed in global coordinates, that is the 
  33812. size of the view’s frame. GetFrame stores the rectangle into the itsFrame 
  33813. parameter. MacApp calls GetFrame from Focus, Resize, and DrawContents methods. You 
  33814. can use this method when you need to know the rectangle that describes a view’s 
  33815. frame. 
  33816.  
  33817.  
  33818.  
  33819. æKY TView.GetGrafPort
  33820. æD FUNCTION TView.GetGrafPort: GrafPtr;
  33821. æFi UMacApp.p
  33822. æT METHOD 
  33823. æC GetGrafPort returns a pointer to the grafPort currently associated with the 
  33824. TView object. MacApp calls GetGrafPort from methods that add subviews or create 
  33825. controls, and it uses the method to assign the correct grafPort to those newly 
  33826. created views. You usually do not need to call this method yourself. 
  33827.  
  33828.  
  33829.  
  33830. æKY TView.GetInspectorName
  33831. æD PROCEDURE TView.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  33832. æFi UMacApp.p
  33833. æT METHOD 
  33834. æC GetInspectorName constructs a string that is displayed in the Inspector window 
  33835. as the name of a TView object. The string consists of the characters 'In ' 
  33836. prefixed to the title of the window in which the TView object appears. When the 
  33837. method returns, it stores the string it constructs in the inspectorName parameter. 
  33838. MacApp calls GetInspectorName only from the TObjListView.GetItemText method to 
  33839. determine what name to give the TView object in the Inspector’s list of 
  33840. objects. You usually do not need to call GetInspectorName. 
  33841.  
  33842.  
  33843.  
  33844. æKY TView.GetPrintExtent
  33845. æD PROCEDURE TView.GetPrintExtent(VAR printExtent: VRect);
  33846. æFi UMacApp.p
  33847. æT METHOD 
  33848. æC GetPrintExtent returns the part of the view that is to be printed, representing 
  33849. it as a view rectangle. The method’s default behavior returns the view’s 
  33850. dimensions. GetPrintExtent stores the rectangle in the printExtent parameter. MacApp 
  33851. calls this method from other GetPrintExtent and SetPrintExtent methods. You can 
  33852. override this method to control what parts of a view are printed. 
  33853.  
  33854.  
  33855.  
  33856. æKY TView.GetQDExtent
  33857. æD PROCEDURE TView.GetQDExtent(VAR qdExtent: Rect);
  33858. æFi UMacApp.p
  33859. æT METHOD 
  33860. æC GetQDExtent stores a QuickDraw rectangle, in local QuickDraw coordinates, that 
  33861. encloses the view’s area on the screen. The method stores the boundary rectangle 
  33862. in the qdExtent parameter. MacApp calls this method from various drawing 
  33863. methods and from DoSetCursor methods. You can call it to determine a view’s boundary 
  33864. rectangle, expressed in local QuickDraw coordinates. 
  33865.  
  33866.  
  33867.  
  33868. æKY TView.GetScroller
  33869. æD FUNCTION TView.GetScroller(immediateSuperView: BOOLEAN): TScroller;
  33870. æFi UMacApp.p
  33871. æT METHOD 
  33872. æC GetScroller returns the TScroller object associated with this TView object, if 
  33873. any. The value of the immediateSuperView parameter should be TRUE if the view’s 
  33874. scroller is its immediate superview; otherwise, it should be FALSE. MacApp 
  33875. calls GetScroller when it needs to compute coordinate offsets to draw the contents 
  33876. of a view. You usually do not need to call GetScroller yourself. 
  33877.  
  33878.  
  33879.  
  33880. æKY TView.GetVisibleRect
  33881. æD PROCEDURE TView.GetVisibleRect(VAR visQDRect: Rect);
  33882. æFi UMacApp.p
  33883. æT METHOD 
  33884. æC GetVisibleRect computes a rectangle, expressed in global QuickDraw coordinates, 
  33885. that contains the visible region of the view. The method stores the resulting 
  33886. rectangle in the visQDRect parameter. MacApp calls GetVisibleRect from methods 
  33887. that draw the view’s contents or cause them to scroll, using the rectangle to 
  33888. determine what part of the view is visible and thus needs to be redrawn. You can 
  33889. call this method for similar purposes. 
  33890.  
  33891.  
  33892.  
  33893. æKY TView.GetWindow
  33894. æD FUNCTION TView.GetWindow: TWindow;
  33895. æFi UMacApp.p
  33896. æT METHOD 
  33897. æC GetWindow returns the TWindow object that contains the TView object to which 
  33898. GetWindow refers. If there is no such TWindow object, then the method returns NIL. 
  33899. MacApp calls this method from other methods that must determine what window 
  33900. contains a given view. You can use GetWindow for the same purpose. 
  33901.  
  33902.  
  33903.  
  33904. æKY TView.GivePasteData
  33905. æD FUNCTION TView.GivePasteData(aDataHandle: Handle; dataType: ResType): LONGINT;
  33906. æFi UMacApp.p
  33907. æT METHOD 
  33908. æC GivePasteData stores the current desk scrap of the resource type specified by 
  33909. dataType into the handle specified by aDataHandle. It returns the error condition 
  33910. generated by a call to the GetScrap trap using the passed parameters. The 
  33911. aDataHandle parameter is a handle to a block of memory that will contain the 
  33912. retrieved desk scrap. The dataType parameter specifies the resource type of the 
  33913. current desk scrap. MacApp calls GivePasteData from TApplication.GetDataToPaste and 
  33914. from initialization methods for pasting commands. You probably will not need to 
  33915. call GivePasteData yourself. You must override GivePasteData to handle your 
  33916. own data type. 
  33917.  
  33918.  
  33919.  
  33920. æKY TView.HandleCursor
  33921. æD FUNCTION TView.HandleCursor(theMouse: VPoint; cursorRgn: RgnHandle): TView;
  33922. æFi UMacApp.p
  33923. æT METHOD 
  33924. æC HandleCursor sets the cursor image to the one associated with this view. This 
  33925. method enables an application to change the cursor image for a particular view. 
  33926. The method returns the view that handled the cursor. The parameter theMouse is 
  33927. the location of the mouse pointer expressed as a local view point. The cursorRgn 
  33928. parameter is a QuickDraw region that contains the cursor image. MacApp calls 
  33929. this method when the mouse cursor enters a view; you usually do not need to call 
  33930. HandleCursor yourself. 
  33931.  
  33932.  
  33933.  
  33934. æKY TView.HandleMouseDown
  33935. æD FUNCTION TView.HandleMouseDown(theMouse: VPoint; VAR info: EventInfo; 
  33936.   VAR hysteresis: Point; VAR theCommand: TCommand): BOOLEAN;
  33937. æFi UMacApp.p
  33938. æT METHOD 
  33939. æC HandleMouseDown processes the specified mouse-down event and provides an 
  33940. appropriate TCommand object to handle undoable actions. The default version calls the 
  33941. DoMouseCommand method of this TView object. This method returns TRUE if it is 
  33942. able to return a command object or if a subview handles the command. The 
  33943. parameter theMouse is the current position of the mouse pointer, expressed in local 
  33944. view coordinates. The info parameter is the information from the Toolbox event 
  33945. record describing the mouse-down event; it is used to store the mouse-down event, 
  33946. in case the DoMouseCommand method needs to examine or change its modifiers. 
  33947. The hysteresis parameter is a QuickDraw point that represents the horizontal and 
  33948. vertical distance the mouse can travel between clicks and still be considered 
  33949. to be at the same location. MacApp uses this parameter to determine whether a 
  33950. double click has occurred, or the mouse pointer has moved. The parameter 
  33951. theCommand is the command object that handles the mouse click. MacApp calls 
  33952. HandleMouseDown when the user clicks the mouse button while the cursor is within the 
  33953. view. You usually do not need to call HandleMouseDown yourself. 
  33954.  
  33955.  
  33956.  
  33957. æKY TView.HasPendingUpdate
  33958. æD FUNCTION TView.HasPendingUpdate: BOOLEAN;
  33959.  
  33960. æFi UMacApp.p
  33961. æT METHOD 
  33962. æC HasPendingUpdate returns the value TRUE if there is a pending update event for 
  33963. this view; otherwise, the method returns FALSE. MacApp calls this method before 
  33964. it updates the windows. You can use this method in a similar fashion. 
  33965.  
  33966.  
  33967.  
  33968. æKY TView.InvalidateFocus
  33969. æD PROCEDURE TView.InvalidateFocus;
  33970.  
  33971.  
  33972. æFi UMacApp.p
  33973. æT METHOD 
  33974. æC InvalidateFocus indicates that the view's focus is no longer valid and must be 
  33975. recomputed. MacApp calls this method to invalidate the focus of a view. You can 
  33976. use this method in a similar fashion. 
  33977.  
  33978.  
  33979.  
  33980. æKY TView.InvalidRect
  33981. æD PROCEDURE TView.InvalidRect(r: Rect);
  33982. æFi UMacApp.p
  33983. æT METHOD 
  33984. æC InvalidRect invalidates the rectangle passed to it in r; that is, it adds the 
  33985. rectangle to the region of the view that must be redrawn. The r parameter is a 
  33986. QuickDraw rectangle in local coordinates. MacApp calls InvalidRect from several 
  33987. methods that change the appearance of the screen. You can use InvalidRect to 
  33988. ensure that certain parts of a view are redrawn when a method changes the display, 
  33989. but it is normally easier to use InvalidVRect. 
  33990.  
  33991.  
  33992.  
  33993. æKY TView.InvalidVRect
  33994. æD PROCEDURE TView.InvalidVRect(viewRect: VRect);
  33995. æFi UMacApp.p
  33996. æT METHOD 
  33997. æC InvalidVRect adds the rectangle specified by viewRect to the region of the view 
  33998. that must be redrawn. The viewRect parameter specifies the rectangle that is to 
  33999. be invalidated as a view rectangle in local coordinates. MacApp calls 
  34000. InvalidVRect from certain methods that change the appearance of the screen. You can 
  34001. use this method in similar situations to ensure that the view’s image is always 
  34002. redrawn correctly. 
  34003.  
  34004.  
  34005.  
  34006. æKY TView.IRes
  34007. æD PROCEDURE TView.IRes(itsDocument: TDocument; itsSuperview: TView; 
  34008.   VAR itsParams: Ptr);
  34009. æFi UMacApp.p
  34010. æT METHOD 
  34011. æC IRes initializes a TView object from a 'view' resource template. The itsDocument 
  34012. parameter specifies the document associated with the TView object. The 
  34013. itsSuperView parameter is a reference to the superview in which this view is to be 
  34014. installed. The itsParams parameter is a pointer to the portion of the 'view' 
  34015. resource data used to initialize this view. When the IRes method finishes 
  34016. initializing the view, the method moves the pointer to the end of this data. MacApp 
  34017. calls this method for each of the views created from a 'view' resource template, 
  34018. usually in response to a NewTemplateWindow or a DoCreateViews call. You never need 
  34019. to call IRes yourself. 
  34020.  
  34021.  
  34022.  
  34023. æKY TView.IsDoneTracking
  34024. æD FUNCTION TView.IsDoneTracking: BOOLEAN;
  34025.  
  34026.  
  34027. æFi UMacApp.p
  34028. æT METHOD 
  34029. æC This method indicates whether the tracker is through tracking. The default is to 
  34030. return the value FALSE while the user continues to hold down the mouse button, 
  34031. and return the value TRUE when the releases the mouse button. You usually do 
  34032. not need to call this method, although you still must deal with queued events if 
  34033. you change the criteria for TRUE. 
  34034.  
  34035.  
  34036.  
  34037. æKY TView.IsFocused
  34038. æD FUNCTION TView.IsFocused: BOOLEAN;
  34039. æFi UMacApp.p
  34040. æT METHOD 
  34041. æC IsFocused returns the value TRUE if the currently focused view is equal to SELF. 
  34042. MacApp calls this method from a variety of other methods that draw in views. 
  34043. You can use IsFocused to determine whether a view is ready for drawing; if 
  34044. IsFocused returns the value FALSE, then QuickDraw operations will occur in a 
  34045. grafPort that does not belong to the view. 
  34046.  
  34047.  
  34048.  
  34049. æKY TView.IsShown
  34050. æD FUNCTION TView.IsShown: BOOLEAN;
  34051. æFi UMacApp.p
  34052. æT METHOD 
  34053. æC IsShown returns the value TRUE if the view is visible on the screen. MacApp 
  34054. calls IsShown when it focuses on a view. You can use this method whenever you need 
  34055. to determine whether a view is visible on the screen. 
  34056.  
  34057.  
  34058.  
  34059. æKY TView.IsViewEnabled
  34060. æD FUNCTION TView.IsViewEnabled: BOOLEAN;
  34061. æFi UMacApp.p
  34062. æT METHOD 
  34063. æC IsViewEnabled returns the value TRUE if the view is currently enabled. MacApp 
  34064. uses IsViewEnabled to determine how to handle mouse clicks and the mouse pointer. 
  34065. You can use it for similar purposes. 
  34066.  
  34067.  
  34068.  
  34069. æKY TView.IsVisible
  34070. æD FUNCTION TView.IsVisible: BOOLEAN;
  34071.  
  34072. æFi UMacApp.p
  34073. æT METHOD 
  34074. æC IsVisible returns the value TRUE if any portion of the view is currently visible 
  34075. when focused. MacApp calls IsVisible, for example, from TView.Activate to 
  34076. determine if the selection needs to be highlighted. You can use IsVisible in a 
  34077. similar fashion. 
  34078.  
  34079.  
  34080.  
  34081. æKY TView.IView
  34082. æD PROCEDURE TView.IView(itsDocument: TDocument; itsSuperview: TView; 
  34083.   itsLocation: VPoint; itsSize: VPoint; itsHSizeDet, itsVSizeDet: SizeDeterminer);
  34084. æFi UMacApp.p
  34085. æT METHOD 
  34086. æC IView initializes the instance variables of the TView object using the values in 
  34087. the passed parameters. The itsDocument parameter is a reference to the 
  34088. TDocument object with which the TView object is to be associated. The itsSuperView 
  34089. parameter is a reference to the superview in which this view is to be installed. 
  34090. The itsLocation parameter is a view point in the superview that specifies the 
  34091. position of this view’s top-left corner. The itsSize parameter is the view’s 
  34092. initial size expressed as a view point. The itsHSizeDet and itsVSizeDet parameters 
  34093. determine how the view’s horizontal and vertical dimensions are calculated, 
  34094. respectively. These values include sizeSuperView (the view is the same size as its 
  34095. superview, sizeRelSuperView (the view size is relative to the superview’s 
  34096. size), sizePage (the view is the size of one page), sizeFillPages (the view expands 
  34097. to fill an exact number of pages), sizeVariable (the view size fluctuates 
  34098. according to application-specific criteria), or sizeFixed (the size is fixed at the 
  34099. time the view is created). 
  34100.  
  34101.  
  34102.  
  34103. æKY TView.LastSubViewThat
  34104. æD FUNCTION TView.LastSubViewThat
  34105.   (FUNCTION TestSubView(theSubView: TView): BOOLEAN): TView;
  34106. æFi UMacApp.p
  34107. æT METHOD 
  34108. æC LastSubViewThat returns the last member of the list in the fSubViews field that 
  34109. matches the test passed in TestSubView. You must define the function 
  34110. TestSubView yourself. It can have any name you like, just as a variable that you pass 
  34111. to a formal parameter can have any name you like. The function should accept one 
  34112. argument of type TView and return a Boolean result. If no member of the 
  34113. fSubViews list causes TestSubView to return TRUE, then LastSubViewThat returns NIL. 
  34114. MacApp calls LastSubViewThat from methods that handle the mouse pointer. You can 
  34115. use it any time you need to select a subview on the basis of some arbitrary test. 
  34116.  
  34117.  
  34118.  
  34119. æKY TView.LocalToSuper
  34120. æD PROCEDURE TView.LocalToSuper(VAR thePoint: VPoint);
  34121. æFi UMacApp.p
  34122. æT METHOD 
  34123. æC LocalToSuper converts a view point from the TView object’s local coordinate 
  34124. system to that of its superview. thePoint is the point to be converted when the 
  34125. method is called, and when the method returns it is the converted value. MacApp 
  34126. does not normally use LocalToSuper. It is provided as a utility routine in case 
  34127. an application should need to convert between the coordinate systems of a view 
  34128. and its superview. 
  34129.  
  34130.  
  34131.  
  34132. æKY TView.LocalToWindow
  34133. æD PROCEDURE TView.LocalToWindow(VAR thePoint: VPoint);
  34134. æFi UMacApp.p
  34135. æT METHOD 
  34136. æC LocalToWindow converts the passed point from the view’s local coordinate system 
  34137. to that of the window in which it is installed. The thePoint parameter is a 
  34138. MacApp view point in the view’s local coordinates when the method is called. When 
  34139. the method returns thePoint is the converted value. MacApp does not normally 
  34140. call this method. It is provided as a utility routine for use when you need to 
  34141. convert a point in a view to the coordinate system of its window. 
  34142.  
  34143.  
  34144.  
  34145. æKY TView.Locate
  34146. æD PROCEDURE TView.Locate(h, v: VCoordinate; invalidate: BOOLEAN);
  34147.  
  34148. æFi UMacApp.p
  34149. æT METHOD 
  34150. æC Locate adjusts the focus and validation of the view, its subviews, and its 
  34151. superview. The h and v parameters specify the new location of the view’s upper-left 
  34152. corner in the superview's coordinates. The h parameter is the horizontal 
  34153. coordinate of the upper-left corner of the view’s new location. The v parameter is 
  34154. the vertical coordinate of the upper-left corner of the view’s new location. The 
  34155. invalidate parameter specifies whether MacApp should force the view to redraw 
  34156. itself; if invalidate is set to TRUE, then the view is redrawn. MacApp calls 
  34157. Locate from methods that adjust the size or shape of views. You usually do not 
  34158. need to call this method yourself. 
  34159.  
  34160.  
  34161.  
  34162. æKY TView.MakeFirstSubView
  34163. æD PROCEDURE TView.MakeFirstSubView(theSubView: TView);
  34164. æFi UMacApp.p
  34165. æT METHOD 
  34166. æC MakeFirstSubView makes the passed TView object the first item in the fSubViews 
  34167. field. If the subview is already in the fSubViews list, its reference is deleted 
  34168. and reinserted at the front of the list. The theSubView parameter is an object 
  34169. of type TView; it becomes the new head of the view’s fSubViews list. MacApp 
  34170. does not normally call this method. It is provided as a utility routine for 
  34171. managing windows with complex sets of subviews. 
  34172.  
  34173.  
  34174.  
  34175. æKY TView.MakeLastSubView
  34176. æD PROCEDURE TView.MakeLastSubView(theSubView: TView);
  34177.  
  34178. æFi UMacApp.p
  34179. æT METHOD 
  34180. æC MakeLastSubView makes the passed TView object the last item in the fSubViews 
  34181. field. If the subview is already in the fSubViews list, its reference is deleted 
  34182. and reinserted at the back of the list. The parameter theSubView is an object of 
  34183. type TView; it becomes the new last item of the view’s fSubViews list. MacApp 
  34184. does not normally call this method. It is provided as a utility routine for 
  34185. managing of windows with complex sets of subviews. 
  34186.  
  34187.  
  34188.  
  34189. æKY TView.Open
  34190. æD PROCEDURE TView.Open;
  34191.  
  34192. æFi UMacApp.p
  34193. æT METHOD 
  34194. æC Open performs any initial behavior that might be appropriate when a view is 
  34195. first displayed on the screen. The default version does nothing except call the 
  34196. Open methods of all its subviews. MacApp calls Open from other methods that create 
  34197. views, such as those that create windows. You can override it to provide your 
  34198. views special behavior when views are created. 
  34199.  
  34200.  
  34201.  
  34202. æKY TView.PageInteriorChanged
  34203. æD PROCEDURE TView.PageInteriorChanged(newInterior: Rect);
  34204. æFi UMacApp.p
  34205. æT METHOD 
  34206. æC PageInteriorChanged enables a view to perform specialized actions when its page 
  34207. interior rectangle is changed. The default version does nothing. The 
  34208. newInterior parameter is the rectangle that defines the page interior of the view for 
  34209. printing purposes. It is expressed as a QuickDraw rectangle in view coordinates. 
  34210. MacApp calls PageInteriorChanged from TView.RedoPageBreaks, so that any code you 
  34211. have written in overridden versions of this method will run. You usually do 
  34212. not need to call this method yourself. You must override it if you want it to do 
  34213. anything. 
  34214.  
  34215.  
  34216.  
  34217. æKY TView.QDToViewPt
  34218. æD PROCEDURE TView.QDToViewPt(qdPoint: Point; VAR viewPt: VPoint);
  34219. æFi UMacApp.p
  34220. æT METHOD 
  34221. æC QDToViewPt converts a point in QuickDraw coordinates to the same point expressed 
  34222. in MacApp’s view coordinates. QuickDraw uses a 16-bit coordinate system, and 
  34223. MacApp uses its own 32-bit coordinate system. The qdPoint parameter is the 
  34224. QuickDraw point to be converted. The viewPt parameter should be a variable of type 
  34225. VPoint; it will contain the converted point when the method returns. MacApp 
  34226. calls QDToViewPt when it needs to convert between the MacApp and QuickDraw 
  34227. coordinate systems. You can use this method for the same purpose. 
  34228.  
  34229.  
  34230.  
  34231. æKY TView.QDToViewRect
  34232. æD PROCEDURE TView.QDToViewRect(qdRect: Rect; VAR viewRect: VRect);
  34233. æFi UMacApp.p
  34234. æT METHOD 
  34235. æC QDToViewRect converts a rectangle in QuickDraw coordinates to the same rectangle 
  34236. expressed in MacApp’s view coordinates. QuickDraw uses a 16-bit coordinate 
  34237. system, and MacApp uses its own 32-bit coordinate system. The qdRect parameter is 
  34238. the QuickDraw rectangle to be converted. The viewRect parameter should be a 
  34239. variable of type VRect; it will contain the converted rectangle when the method 
  34240. returns. MacApp calls QDToViewRect when it needs to convert between the MacApp 
  34241. and QuickDraw coordinate systems. You can use this method for the same purpose. 
  34242.  
  34243.  
  34244.  
  34245. æKY TView.RemoveSubView
  34246. æD PROCEDURE TView.RemoveSubView(theSubView: TView);
  34247.  
  34248. æFi UMacApp.p
  34249. æT METHOD 
  34250. æC RemoveSubView removes the specified TView object from the view’s fSubViews list. 
  34251. The theSubView parameter specifies the TView object to be removed. MacApp 
  34252. calls RemoveSubView from certain methods, such as TView.Free, that change what 
  34253. subviews are installed in a view. You can use RemoveSubView when you need to remove 
  34254. a subview from a view. 
  34255.  
  34256.  
  34257.  
  34258. æKY TView.Resize
  34259. æD PROCEDURE TView.Resize(width, height: VCoordinate; invalidate: BOOLEAN);
  34260. æFi UMacApp.p
  34261. æT METHOD 
  34262. æC Resize changes the size of the view as displayed on the screen, redrawing if 
  34263. requested. The width parameter is the view’s new horizontal dimension, expressed 
  34264. in view coordinates. The height parameter is the view’s new vertical dimension, 
  34265. expressed in view coordinates. If you set the value of the invalidate parameter 
  34266. to TRUE, the view is invalidated, forcing it to be redrawn in the update 
  34267. process. When you know the view will be redrawn eventually and wish to avoid drawing 
  34268. it twice—which makes the screen appear to flash—you can set the invalidate 
  34269. parameter to FALSE. Resize is a general-purpose utility that MacApp calls to 
  34270. change the size of a view. You can use it in a similar fashion. 
  34271.  
  34272.  
  34273.  
  34274. æKY TView.RevealBottom
  34275. æD PROCEDURE TView.RevealBottom(redraw: BOOLEAN);
  34276. æFi UMacApp.p
  34277. æT METHOD 
  34278. æC RevealBottom causes the bottom-right point of the view to scroll into view. The 
  34279. redraw parameter should be set to TRUE if the area is to be redrawn. MacApp 
  34280. does not normally call RevealBottom. It is provided as a utility for manipulating 
  34281. views. 
  34282.  
  34283.  
  34284.  
  34285. æKY TView.RevealRect
  34286. æD PROCEDURE TView.RevealRect(rectToReveal: VRect; minToSee: Point; redraw: BOOLEAN);
  34287. æFi UMacApp.p
  34288. æT METHOD 
  34289. æC RevealRect causes a specified rectangle within a view to scroll into view on the 
  34290. screen. The rectToReveal parameter is the rectangle to reveal in the view’s 
  34291. local coordinates. The minToSee parameter specifies a minimum area that must be 
  34292. made visible. The redraw parameter should be TRUE if the revealed rectangle 
  34293. should be redrawn. The default version of RevealRect uses only the rectToReveal 
  34294. parameter; the other parameters are provided for use by overridden versions of the 
  34295. method. MacApp calls RevealRect from certain methods that make specified parts 
  34296. of a view visible, particularly, from ScrollSelectionIntoView methods of 
  34297. TTEView objects. You can use RevealRect for scrolling and selection control in a 
  34298. similar fashion. 
  34299.  
  34300.  
  34301.  
  34302. æKY TView.RevealTop
  34303. æD PROCEDURE TView.RevealTop(redraw: BOOLEAN);
  34304. æFi UMacApp.p
  34305. æT METHOD 
  34306. æC RevealTop causes the top-left point of the view to scroll into view. The redraw 
  34307. parameter should be set to TRUE if the area is to be redrawn. MacApp does not 
  34308. normally call RevealTop. It is provided as a utility for manipulating views. 
  34309.  
  34310.  
  34311.  
  34312. æKY TView.Show
  34313. æD PROCEDURE TView.Show(state, redraw: BOOLEAN);
  34314. æFi UMacApp.p
  34315. æT METHOD 
  34316. æC Show displays the view on the screen and optionally forces it to redraw its 
  34317. image. Set the state parameter to TRUE to show the view or to FALSE to hide the 
  34318. view. The redraw parameter should be set to TRUE if the view should be forced to 
  34319. redraw itself. MacApp calls Show from the Open and Close methods of the TWindow 
  34320. class. You can call it when you need to force a view to be shown on the screen. 
  34321.  
  34322.  
  34323.  
  34324.  
  34325. æKY TView.ShowReverted
  34326. æD PROCEDURE TView.ShowReverted;
  34327. æFi UMacApp.p
  34328. æT METHOD 
  34329. æC ShowReverted adjusts the view’s size, redraws the view, and calls the 
  34330. ShowReverted method of all subviews. MacApp calls ShowReverted from 
  34331. TDocument.ShowReverted when the user chooses the Revert command and confirms. 
  34332. You must override ShowReverted to provide any actual behavior in this circumstance. 
  34333.  
  34334.  
  34335.  
  34336. æKY TView.SubViewChangedSize
  34337. æD PROCEDURE TView.SubViewChangedSize(theSubView: TView; delta: VPoint);
  34338. æFi UMacApp.p
  34339. æT METHOD 
  34340. æC SubViewChangedSize performs appropriate actions when one of a view’s subviews 
  34341. changes size. The default version does nothing. The parameter theSubView is the 
  34342. subview that has changed. The delta parameter is a MacApp view point that 
  34343. specifies the subview’s new size. MacApp’s Resize methods include a call to the 
  34344. SubViewChangedSize method of the superview, so this method is called whenever a view 
  34345. calls the Resize method and has a superview. You usually do not need to call 
  34346. this method yourself. You can override SubViewChangedSize to provide special 
  34347. behavior when a view changes size. 
  34348.  
  34349.  
  34350.  
  34351. æKY TView.SubViewMoved
  34352. æD PROCEDURE TView.SubViewMoved(theSubView: TView);
  34353. æFi UMacApp.p
  34354. æT METHOD 
  34355. æC SubViewMoved performs any special actions that are appropriate when a view’s 
  34356. subviews move. The default version does nothing. The parameter theSubView is the 
  34357. subview that moved. MacApp calls this method from a subview’s Locate method, so 
  34358. it is executed when a view moves and has a superview. You usually do not need 
  34359. to call this method yourself. You can override this method to provide special 
  34360. behavior when a view moves. 
  34361.  
  34362.  
  34363.  
  34364. æKY TView.SuperToLocal
  34365. æD PROCEDURE TView.SuperToLocal(VAR thePoint: VPoint);
  34366. æFi UMacApp.p
  34367. æT METHOD 
  34368. æC Given a point in a superview’s local coordinates, SuperToLocal returns the same 
  34369. point in the view’s local coordinate system. When the method is called, the 
  34370. parameter thePoint is the point in the superview’s coordinates. When the method 
  34371. returns, thePoint is the converted point. MacApp calls SuperToLocal in certain 
  34372. methods, such as HandleCursor and HandleMousedown, that must calculate the 
  34373. location of a point in a view’s subviews. You can use SuperToLocal for similar 
  34374. purposes. 
  34375.  
  34376.  
  34377.  
  34378. æKY TView.SuperViewChangedSize
  34379. æD PROCEDURE TView.SuperViewChangedSize(delta: VPoint; invalidate: BOOLEAN);
  34380. æFi UMacApp.p
  34381. æT METHOD 
  34382. æC SuperViewChangedSize provides special behavior when a view’s superview changes 
  34383. size. It determines whether the view needs to be resized in response to a change 
  34384. in its superview, and, if so, changes the view accordingly. The delta 
  34385. parameter is a VPoint value that specifies the change in the superview’s size. If the 
  34386. invalidate parameter is set to TRUE, then the view’s rectangle is redrawn. 
  34387. MacApp calls this method when the size of the view’s superview changes. You can 
  34388. override it to provide special behavior in such circumstances. You usually do not 
  34389. need to call SuperViewChangedSize yourself. 
  34390.  
  34391.  
  34392.  
  34393. æKY TView.SuperViewMoved
  34394. æD PROCEDURE TView.SuperViewMoved(invalidate: BOOLEAN);
  34395. æFi UMacApp.p
  34396. æT METHOD 
  34397. æC SuperViewMoved provides special behavior when a view’s superview moves. The 
  34398. default version does nothing. If the invalidate parameter is set to TRUE then the 
  34399. view will be redrawn. MacApp calls SuperViewMoved from the Locate methods of 
  34400. superviews. You can override this method to provide special behavior when the 
  34401. superview moves. You usually do not need to call SuperViewMoved yourself. 
  34402.  
  34403.  
  34404.  
  34405. æKY TView.TrackConstrain
  34406. æD PROCEDURE TView.TrackConstrain(anchorPoint, previousPoint: VPoint; 
  34407.   VAR nextPoint: VPoint);
  34408. æFi UMacApp.p
  34409. æT METHOD 
  34410. æC TrackConstrain allows a view to constrain the mouse while it is being tracked. 
  34411. It is an empty method; you must provide all code necessary to constrain the 
  34412. mouse in any way your application requires. The anchorPoint parameter is the 
  34413. location of the mouse pointer, in view coordinates, when the mouse button was clicked 
  34414. in the view. The previousPoint parameter represents the location of the mouse 
  34415. when it was last tracked. The nextPoint parameter is the current location of 
  34416. the mouse, in view coordinates. Your override version of this method constrains 
  34417. the mouse by changing the value of nextPoint appropriately. You usually do not 
  34418. call this method yourself—instead, MacApp sends a message to 
  34419. TApplication.TrackMouse as the mouse moves, and TrackMouse calls 
  34420. TControlTracker.TrackConstrain. The TControlTracker command object calls the 
  34421. appropriate TrackConstrain, TrackMouse, and TrackFeedback methods. When the value of 
  34422. the TControlTracker object’s fContrainsMouse field is TRUE, mouse movement is 
  34423. constrained. The default value of fConstrainsMouse is FALSE. (For further information 
  34424. on mouse trackers, see the discussion of mouse operations in the MacApp 2.0 Cookbook.) 
  34425.  
  34426.  
  34427.  
  34428. æKY TView.TrackFeedback
  34429. æD PROCEDURE TView.TrackFeedback(anchorPoint, nextPoint: VPoint; turnItOn, 
  34430.   mouseDidMove: BOOLEAN);
  34431. æFi UMacApp.p
  34432. æT METHOD 
  34433. æC TrackFeedback provides onscreen feedback for the user while the mouse is being 
  34434. tracked (that is, while the mouse button is pressed and a mouse-tracker object 
  34435. exists). The default version provides “rubber-band” feedback: a dotted-line box 
  34436. between the mouse pointer’s position when the mouse button was first pressed 
  34437. and its current position. The anchorPoint parameter is the position of the mouse 
  34438. pointer, in view coordinates, when the mouse button was pressed. The nextPoint 
  34439. parameter is the mouse pointer’s current position, described in view 
  34440. coordinates. The value of the turnItOn parameter is TRUE if the feedback is to be 
  34441. enabled. The value of the mouseDidMove parameter is TRUE if the mouse moved more than 
  34442. the hysteresis value since the last time TrackFeedback was called. (MacApp uses 
  34443. the hysteresis value, supplied by TApplication.TrackMouse, to determine if 
  34444. multiple mouse clicks are close enough on the screen to be considered part of a 
  34445. double or triple click.) MacApp calls TrackFeedback twice for every call to 
  34446. TrackConstrain and TrackMouse. The first time it is called with turnItOn set to 
  34447. FALSE; the second time, with turnItOn set to TRUE. This technique makes it easy to 
  34448. implement feedback such as a drawing the dashed outline of a box from the 
  34449. anchor point to the current mouse location. (Note that not all feedback is done this 
  34450. way; sometimes it is more convenient to implement feedback in the TrackMouse 
  34451. method. For example, tracking a button calls for highlighting the button when 
  34452. the mouse pointer enters the button, and removing highlighting from the button 
  34453. when the pointer leaves it.) You usually do not need to call TrackFeedback 
  34454. yourself; TApplication.TrackMouse calls this method as necessary when MacApp 
  34455. intercepts mouse-down events. However, you can override this method to provide other 
  34456. kinds of feedback while tracking the mouse. (For further discussion of mouse 
  34457. trackers, see the discussion of mouse operations in the MacApp 2.0 Cookbook.) 
  34458.  
  34459.  
  34460.  
  34461. æKY TView.TrackMouse
  34462. æD PROCEDURE TView.TrackMouse(aTrackPhase: TrackPhase; VAR anchorPoint, previousPoint, 
  34463.   nextPoint: VPoint; mouseDidMove: BOOLEAN);
  34464.  
  34465. æFi UMacApp.p
  34466. æT METHOD 
  34467. æC This method carries out any mouse-tracking activity required by the view, other 
  34468. than that implemented in TrackConstrain and TrackFeedback. It is an empty 
  34469. method; you must provide all code necessary to track the mouse in any way your view 
  34470. requires. The aTrackPhase parameter describes the current phase of the 
  34471. mouse-tracking process. MacApp sets its value to trackPress when the mouse button is 
  34472. first pressed. When the mouse has moved more than the hysteresis value since the 
  34473. last time TrackFeedback was called, MacApp sets the value of the aTrackPhase 
  34474. parameter to trackMove. When the mouse button is released, MacApp sets 
  34475. aTrackPhase to trackRelease. When aTrackPhase is set to trackPress, all three points 
  34476. (anchorPoint, previousPoint, and nextPoint) have the same value. When aTrackPhase 
  34477. is set to trackRelease, the nextPoint parameter contains the coordinates of the 
  34478. location of the mouse-up event. The anchorPoint parameter is the position of 
  34479. the mouse pointer, in view coordinates, when the mouse button was first pressed. 
  34480. If you change this value, the new value is passed to you in the parameter 
  34481. aTrackPhase the next time TrackMouse is called. The previousPoint parameter is the 
  34482. position, in view coordinates, of the mouse pointer the last time TrackMouse was 
  34483. called. The nextPoint parameter is the current position of the mouse pointer, 
  34484. in view coordinates. Although you can change the value of nextPoint yourself, 
  34485. it is preferable to use TCommand.TrackConstrain to limit mouse movement. The 
  34486. value of nextPoint at the time TrackMouse exits will be passed to you as the value 
  34487. of previousPoint the next time TrackMouse is called. MacApp sets the value of 
  34488. the mouseDidMove parameter to TRUE if the mouse moved since the last time 
  34489. TCommand.TrackFeedback was called. However, SELF.TrackConstrain may set the mouse 
  34490. coordinates back to values as if no movement had occurred; thus, the mouse has 
  34491. not necessarily moved the first time TrackMouse is called with aTrackPhase set to 
  34492. trackMove. Test the value of mouseDidMove to determine whether you should 
  34493. consider the mouse to have moved. The mouseDidMove parameter will have the value 
  34494. TRUE if aTrackPhase has a value of either trackPress or trackRelease; otherwise, 
  34495. its value is TRUE if nextPoint and previousPoint are not equal. You never call 
  34496. TView.TrackMouse yourself; rather, TApplication.TrackMouse calls it when the 
  34497. mouse button is first pressed, as the mouse moves, and when the mouse button is 
  34498. released. You often override this method to take application-specific action. 
  34499. (For further information on mouse trackers, see the discussion of mouse 
  34500. operations in the MacApp 2.0 Cookbook.) 
  34501.  
  34502.  
  34503.  
  34504. æKY TView.Update
  34505. æD PROCEDURE TView.Update;
  34506. æFi UMacApp.p
  34507. æT METHOD 
  34508. æC Update draws the contents of the view in the window to which it belongs. MacApp 
  34509. calls Update from HandleUpdateEvent, Activate, and DoScroll methods. You 
  34510. usually do not need to call this method yourself. If you want to change the way views 
  34511. draw their contents, you should probably override DrawContents and leave 
  34512. Update unchanged. 
  34513.  
  34514.  
  34515.  
  34516. æKY TView.ValidVRect
  34517. æD PROCEDURE TView.ValidVRect(viewRect: VRect);
  34518. æFi UMacApp.p
  34519. æT METHOD 
  34520. æC ValidVRect validates the visible portion of the specified view rectangle so that 
  34521. it is not redrawn by the MacApp updating process. This optimization can 
  34522. prevent unwanted blinking and speed up redrawing. The viewRect parameter is the 
  34523. rectangle to be validated, expressed as a MacApp view rectangle. ValidVRect is a 
  34524. utility routine provided for your use. You can use it to optimize speed and 
  34525. appearance of redrawing operations. 
  34526.  
  34527.  
  34528.  
  34529. æKY TView.ViewEnable
  34530. æD PROCEDURE TView.ViewEnable(state, redraw: BOOLEAN);
  34531. æFi UMacApp.p
  34532. æT METHOD 
  34533. æC ViewEnable enables or disables a view and specifies whether it is to be redrawn. 
  34534. The value of the state parameter becomes the new value of the TView object’s 
  34535. fViewEnabled field. If the redraw parameter is set to TRUE, then the view is 
  34536. redrawn. MacApp uses ViewEnable to control the states of dialog items. You can use 
  34537. it similarly, and to enable or disable TView objects of your own design. The 
  34538. meaning of the fViewEnabled field is determined by the nature of each specific 
  34539. TView class that uses it. 
  34540.  
  34541.  
  34542.  
  34543. æKY TView.ViewToQDPt
  34544. æD FUNCTION TView.ViewToQDPt(viewPt: VPoint): Point;
  34545. æFi UMacApp.p
  34546. æT METHOD 
  34547. æC ViewToQDPt converts a MacApp view point to the corresponding local QuickDraw 
  34548. point and returns the converted point. The viewPt parameter is the view point to 
  34549. be converted. MacApp calls ViewToQDPt from a variety of drawing and mouse-handling 
  34550. methods that must convert between MacApp and QuickDraw coordinates. You can 
  34551. use this method for the same purpose. 
  34552.  
  34553.  
  34554.  
  34555. æKY TView.ViewToQDRect
  34556. æD PROCEDURE TView.ViewToQDRect(viewRect: VRect; VAR qdRect: Rect);
  34557. æFi UMacApp.p
  34558. æT METHOD 
  34559. æC ViewToQDRect converts a MacApp view rectangle to the corresponding QuickDraw 
  34560. rectangle in local coordinates. The viewRect parameter is the view rectangle to be 
  34561. converted. The qdRect parameter is the converted rectangle when the method 
  34562. returns. MacApp calls this method from a variety of drawing and sizing methods 
  34563. that must convert between the MacApp and QuickDraw representations of rectangles. 
  34564. You can use this method for the same purpose. 
  34565.  
  34566.  
  34567.  
  34568. æKY TView.WindowToLocal
  34569. æD PROCEDURE TView.WindowToLocal(VAR thePoint: VPoint);
  34570. æFi UMacApp.p
  34571. æT METHOD 
  34572. æC WindowToLocal converts a point in the coordinates of the window in which the 
  34573. view appears to the view’s local coordinates. More generally, this method converts 
  34574. from the coordinate system of the TView object at the top of a view hierarchy 
  34575. to the coordinate system of the object making the call to WindowToLocal. The 
  34576. parameter thePoint is the point to be converted on entry; when the method 
  34577. returns, it is the converted point. This method is provided as a utility for 
  34578. coordinate conversion. You can use it whenever you need to make a conversion from the 
  34579. coordinates in a window to the coordinates of any view in its view hierarchy. 
  34580.  
  34581.  
  34582.  
  34583. æKY TView.WRes
  34584. æD PROCEDURE TView.WRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr);
  34585. æFi UMacApp.p
  34586. æT METHOD 
  34587. æC WRes writes the TView portion of the view’s resource template to the location 
  34588. specified by the itsParams parameter. The parameter theResource is a handle to 
  34589. the view’s resource template. The parameter itsParams is a pointer to the TView 
  34590. section of the view’s resource template. WRes is the inverse of the IRes method, 
  34591. and is used only by programs that write 'view' resources; for example, 
  34592. ViewEdit uses this method to create new 'view' resources from views that are active on 
  34593. the screen. You rarely need to call this method yourself. You must override 
  34594. this method in your subclasses to create your own 'view' resources. Your override 
  34595. should check the size of the space remaining in the template past the end of 
  34596. the previously-written resource data; if there is not enough space to write your 
  34597. data into the file, your override should call the global routine ExpandPtr, 
  34598. passing as arguments the current values of theResource, itsParams, and the size 
  34599. of your resource data, in bytes. ExpandPtr expands the 'view' resource handle by 
  34600. the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. You 
  34601. need not be concerned about making the 'view' resource handle too big, because 
  34602. MacApp reclaims unused space by returning a new value for itsParams when the WRes 
  34603. method completes. 
  34604.  
  34605.  
  34606.  
  34607. æKY TView.WriteRes
  34608. æD PROCEDURE TView.WriteRes(theResource: ViewRsrcHndl; VAR itsParams: Ptr);
  34609. æFi UMacApp.p
  34610. æT METHOD 
  34611. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('view') and 
  34612. class name ('TView') for the 'view' resource template, and then calls WRes to 
  34613. actually write the resource. The parameter theResource is a handle to the view’s 
  34614. resource template. The parameter itsParams is a pointer to the parameters 
  34615. MacApp uses to create the new resource. MacApp calls this method to write a TView 
  34616. object as part of a 'view' resource; you can use it in a similar fashion. You can 
  34617. override this method to provide your own unique class name or signature. 
  34618.  
  34619.  
  34620.  
  34621. æKY TView.WriteToDeskScrap
  34622. æD PROCEDURE TView.WriteToDeskScrap;
  34623. æFi UMacApp.p
  34624. æT METHOD 
  34625. æC WriteToDeskScrap draws the contents of the view in a QuickDraw picture and then 
  34626. stores this picture as a 'PICT' resource in the desk scrap. MacApp calls 
  34627. WriteToDeskScrap from TApplication.AboutToLoseControl when the application is about 
  34628. to become inactive. You can use WriteToDeskScrap as a default method for storing 
  34629. the contents of a view in the Clipboard. You usually do not need to call this 
  34630. method yourself. You must override the method to provide more specialized 
  34631. behavior, such as storing a selected area in the Clipboard. 
  34632.  
  34633.  
  34634.  
  34635. æKY TWindow.Activate
  34636. æD PROCEDURE TWindow.Activate (entering: BOOLEAN); OVERRIDE;
  34637. æFi UMacApp.p
  34638. æT METHOD 
  34639. æC Activate activates or deactivates a window and its subviews based on the value 
  34640. of the entering parameter. Set the entering parameter to TRUE to activate the 
  34641. window or to FALSE to deactivate the window. If the value of entering is 
  34642. different from the value of the window’s fIsActive field, then this method calls the 
  34643. window’s DrawContents method and INHERITED Activate. If the value of the entering 
  34644. parameter is TRUE, the Activate method activates the window’s subviews. What 
  34645. happens next depends on the value of entering. If the value of entering is TRUE, 
  34646. then gFrontWindow is set to SELF, the application’s target is set to the 
  34647. window’s fTarget, and gDocument is set to the window’s fDocument. If the value of 
  34648. entering is FALSE, then the window’s fTarget is set to the application’s current 
  34649. target, the application’s target is set to gApplication, gFrontWindow and 
  34650. gDocument are set to NIL, and the cursor is set to the arrow. Finally, the window’s 
  34651. size box is redrawn, and fIsActive is set to the value of entering. You can 
  34652. override Activate for windows that require additional activation or deactivation 
  34653. logic, in which case you usually call INHERITED Activate as part of your 
  34654. override method. Activate is called by TApplication.HandleActivateEvent to activate or 
  34655. deactivate a window; it is also called by TWindow.Close to deactivate a window 
  34656. that is being closed. You can call Activate when you need to activate or 
  34657. deactivate the Window Manager window associated with a TWindow object. 
  34658.  
  34659.  
  34660.  
  34661. æKY TWindow.AdaptToScreen
  34662. æD PROCEDURE TWindow.AdaptToScreen;
  34663. æFi UMacApp.p
  34664. æT METHOD 
  34665. æC AdaptToScreen adjusts the size of the window to fit the primary screen of the 
  34666. computer on which the application is being run. AdaptToScreen does not change the 
  34667. window’s fSize field. MacApp calls AdaptToScreen before the window is opened 
  34668. and AdaptToScreen calls the Resize method, which calls the Toolbox routine 
  34669. SizeWindow to adjust fSize during Open. You can use this method in a similar 
  34670. fashion. 
  34671.  
  34672.  
  34673.  
  34674. æKY TWindow.AllowsMenuAccess
  34675. æD FUNCTION TWindow.AllowsMenuAcces: BOOLEAN;
  34676. æFi UMacApp.p
  34677. æT METHOD 
  34678. æC AllowsMenuAccess returns the value TRUE if the menus are accessible when this 
  34679. window is the frontmost. By default, this method allows menu access—that is, 
  34680. returns TRUE—regardless of whether the window is modal or modeless. 
  34681. AllowsMenuAccess is called by TApplication.InModalMenuState to test whether a window 
  34682. allows menu access. You can use this method in a similar fashion. 
  34683.  
  34684.  
  34685.  
  34686. æKY TWindow.BuildWindowRgns
  34687. æD FUNCTION TWindow.BuildWindowRgns(build: BOOLEAN): BOOLEAN;
  34688.  
  34689. æFi UMacApp.p
  34690. æT METHOD 
  34691. æC BuildWindowRgns, if the build parameter is set to kBuild, ensures that the 
  34692. window regions are valid and sets the fContRgnInset and fContDifference fields. The 
  34693. method returns the value TRUE if the windows were previously built. The build 
  34694. parameter specifies whether or not to build the window regions. You probably 
  34695. will not need to call this method yourself. 
  34696.  
  34697.  
  34698.  
  34699. æKY TWindow.Center
  34700. æD PROCEDURE TWindow.Center(horizontally, vertically: BOOLEAN);
  34701. æFi UMacApp.p
  34702. æT METHOD 
  34703. æC This method centers the window on the main screen horizontally, vertically, or 
  34704. both. If the value of the horizontally parameter is TRUE, the window will be 
  34705. centered horizontally. If the value of the vertically parameter is TRUE, the 
  34706. window will be centered vertically. TWindow.Open calls Center to center the window. 
  34707. You can use the method in a similar fashion. 
  34708.  
  34709.  
  34710.  
  34711. æKY TWindow.Close
  34712. æD PROCEDURE TWindow.Close; OVERRIDE;
  34713. æFi UMacApp.p
  34714. æT METHOD 
  34715. æC This method closes a window and notifies its subviews that their window is being 
  34716. closed. If the value of fFreeOnClosing is TRUE, Close also calls TWindow.Free 
  34717. to release memory used by the TWindow object. MacApp calls this method, for 
  34718. example, to close an associated window when a document is closed. You probably 
  34719. will not need to call this method. You can override Close for windows that need 
  34720. extra processing when they are closed, in which case you will usually call 
  34721. INHERITED Close as part of your override method. 
  34722.  
  34723.  
  34724.  
  34725. æKY TWindow.CloseByUser
  34726. æD PROCEDURE TWindow.CloseByUser;
  34727. æFi UMacApp.p
  34728. æT METHOD 
  34729. æC CloseByUser closes the active window when the user clicks the window’s close box 
  34730. or chooses the Close menu command. If the value of the window’s 
  34731. fClosesDocument field is TRUE, or if this is the document’s only window, this method 
  34732. also closes the document associated with the window. MacApp calls CloseByUser when the 
  34733. user clicks a window's close box. You probably will not need to call this 
  34734. method yourself. 
  34735.  
  34736.  
  34737.  
  34738. æKY TWindow.DoMenuCommand
  34739. æD FUNCTION TWindow.DoMenuCommand(aCmdNumber: CmdNumber): TCommand; OVERRIDE;
  34740.  
  34741. æFi UMacApp.p
  34742. æT METHOD 
  34743. æC DoMenuCommand closes TWindow windows when the user chooses the Close menu 
  34744. command. Otherwise, it calls INHERITED DoMenuCommand to return the command to the 
  34745. command chain. The parameter aCmdNumber is the command number defined for the 
  34746. selected menu item—in this case, the Close command normally found in an 
  34747. application’s File menu. The Close command is predefined by MacApp in the file 
  34748. UMacApp.p; you may define other command numbers yourself in your 'cmnu' resource 
  34749. description and in the appropriate interface or implementation file. MacApp calls 
  34750. DoMenuCommand when the user chooses the Close command from a menu. You usually do not 
  34751. need to call this method yourself. 
  34752.  
  34753.  
  34754.  
  34755. æKY TWindow.DoSetupMenus
  34756. æD PROCEDURE TWindow.DoSetupMenus; OVERRIDE;
  34757. æFi UMacApp.p
  34758. æT METHOD 
  34759. æC DoSetupMenus enables menu commands to which the TWindow object’s DoMenuCommand 
  34760. method can respond. If the window is not modal—that is, if the value of fIsModal 
  34761. is FALSE— this method also calls INHERITED DoSetupMenus, which prevents 
  34762. enabling menus whose scope is beyond that of the modal window itself. DoSetupMenus is 
  34763. called by TApplication.SetupTheMenus. You usually do not need to call this 
  34764. method yourself. If you override this method in your subclasses,your override must 
  34765. call INHERITED DoSetupMenus as its first action, to allow other handlers to 
  34766. enable menu items to which they can respond. 
  34767.  
  34768.  
  34769.  
  34770. æKY TWindow.DrawContents
  34771. æD PROCEDURE TWindow.DrawContents; OVERRIDE;
  34772. æFi UMacApp.p
  34773. æT METHOD 
  34774. æC This method calls INHERITED DrawContents and then draws the size box (if the 
  34775. window has one) by calling DrawResizeIcon. MacApp calls DrawContents from 
  34776. TWindow.Update to update the windows. You usually do not need to call it yourself. 
  34777.  
  34778.  
  34779.  
  34780. æKY TWindow.DrawResizeIcon
  34781. æD PROCEDURE TWindow.DrawResizeIcon;
  34782. æFi UMacApp.p
  34783. æT METHOD 
  34784. æC This method draws the window’s size box. DrawResizeIcon is called by 
  34785. TWindow.Activate and TWindow.DrawContents to draw the size box icon in a window when 
  34786. it is made active. You can use this method in a similar fashion. 
  34787.  
  34788.  
  34789.  
  34790. æKY TWindow.Fields
  34791. æD PROCEDURE TWindow.Fields(PROCEDURE DoToField(fieldName: Str255; fieldAddr: Ptr; 
  34792.   fieldType: INTEGER)); OVERRIDE;
  34793. æFi UMacApp.p
  34794. æT METHOD 
  34795. æC Fields reports the contents of each field of the TWindow object to the MacApp 
  34796. Inspector. DoToField is a procedure that MacApp passes to Fields to report the 
  34797. contents of each field. Fields iterates over all the fields of the TWindow 
  34798. object, performing DoToField on each one. The fieldName parameter is the name of the 
  34799. field. The fieldAddr parameter is the field’s location in memory. The fieldType 
  34800. parameter uses a predefined constant to tell Fields what type of information 
  34801. to look for in a field. MacApp calls Fields from the MacApp Inspector. You must 
  34802. override this method in your subclasses if you want the Inspector to display 
  34803. your fields. Your override must call INHERITED Fields as its last action to 
  34804. ensure that the inherited fields are also displayed. 
  34805.  
  34806.  
  34807.  
  34808. æKY TWindow.Focus
  34809. æD FUNCTION TWindow.Focus: BOOLEAN; OVERRIDE;
  34810. æFi UMacApp.p
  34811. æT METHOD 
  34812. æC If the value of the window’s fWMgrWindow field is not NIL, this method focuses 
  34813. the window; it sets the port to the window’s port, sets the port’s origin to 
  34814. (0,0), sets the value of gLongOffset to (0,0), and sets the port’s clipping region 
  34815. to the visRgn. It returns the value TRUE if the window could be focused and 
  34816. the window is visible. It returns the value FALSE if the value of the window’s 
  34817. fWMgrWindow is NIL or if the window is not visible. MacApp calls Focus before 
  34818. performing any graphics operation on a view (remember, windows are views). You can 
  34819. use this method in a similar fashion. 
  34820.  
  34821.  
  34822.  
  34823. æKY TWindow.FocusOnSuperView
  34824. æD FUNCTION TWindow.FocusOnSuperView: BOOLEAN; OVERRIDE;
  34825. æFi UMacApp.p
  34826. æT METHOD 
  34827. æC FocusOnSuperView always returns the value FALSE because in MacApp a window has 
  34828. no superview. This method is provided for use by TInspectWindow. You usually do 
  34829. not need to call this method. 
  34830.  
  34831.  
  34832.  
  34833. æKY TWindow.ForceOnScreen
  34834. æD PROCEDURE TWindow.ForceOnScreen;
  34835. æFi UMacApp.p
  34836. æT METHOD 
  34837. æC ForceOnScreen ensures that some part of the window is visible on the primary 
  34838. screen; for applications that attempt to reopen windows in the last saved 
  34839. location, a problem can occur when switching from a system with a large screen to a 
  34840. system with a small screen: It is possible for a window to be visible on the large 
  34841. screen but not visible on the small screen. ForceOnScreen prevents this 
  34842. problem. ForceOnScreen does not change the window’s fSize field. MacApp calls 
  34843. ForceOnScreen before the window is opened, and ForceOnScreen calls the Toolbox routine 
  34844. SizeWindow to adjust fSize while the window is being opened. You can use this 
  34845. method in a similar fashion. 
  34846.  
  34847.  
  34848.  
  34849. æKY TWindow.Free
  34850. æD PROCEDURE TWindow.Free; OVERRIDE;
  34851. æFi UMacApp.p
  34852. æT METHOD 
  34853. æC Free removes the window from its document’s window list, or, if there is no 
  34854. document, from the application’s free window list. It then calls INHERITED Free to 
  34855. release the memory used by dependent structures. MacApp calls Free when the 
  34856. user closes a window or a document associated with the window. You usually do not 
  34857. need to call this method yourself; however, if you do call it, you must not 
  34858. refer to any fields or methods of SELF. 
  34859.  
  34860.  
  34861.  
  34862. æKY TWindow.GetGlobalBounds
  34863. æD PROCEDURE TWindow.GetGlobalBounds(VAR globalBounds: Rect);
  34864. æFi UMacApp.p
  34865. æT METHOD 
  34866. æC GetGlobalBounds returns the rectangle, expressed in global coordinates, defining 
  34867. the boundaries of the window. The globalBounds parameter is the rectangle that 
  34868. defines the area in which the window will be drawn. GetGlobalBounds is called 
  34869. by the following TWindow methods that adjust a window's size or location: 
  34870. AdaptToScreen, Center, ForceOnScreen, and SimpleStagger. GetGlobalBounds is also 
  34871. called by TApplication.TrackCursor to find out if the cursor is in a window. You 
  34872. can use this method in a similar fashion. 
  34873.  
  34874.  
  34875.  
  34876. æKY TWindow.GetGrafPort
  34877. æD FUNCTION TWindow.GetGrafPort: GrafPtr; OVERRIDE;
  34878. æFi UMacApp.p
  34879. æT METHOD 
  34880. æC GetGrafPort returns the value of the window’s fWMgrWindow field. Several methods 
  34881. call TWindow.GetGrafPort. TWindow.Focus calls it to test an existing port's 
  34882. validity or to set a new port. GetGrafPort is also called by 
  34883. TWindow.GetGlobalBounds to obtain a value to store in the globalBounds variable. If 
  34884. the application is compiled with debugging code installed, TWindow.DrawResizeIcon 
  34885. calls GetGrafPort to test the validity of the port in which it is about to draw. You 
  34886. can call GetGrafPort when you want to obtain a window's grafPtr. 
  34887.  
  34888.  
  34889.  
  34890. æKY TWindow.GetInspectorName
  34891. æD PROCEDURE TWindow.GetInspectorName(VAR inspectorName: Str255); OVERRIDE;
  34892. æFi UMacApp.p
  34893. æT METHOD 
  34894. æC GetInspectorName retrieves the name of the Window Manager window associated with 
  34895. the TWindow object. When the method returns, it stores the name of the Window 
  34896. Manager window in the inspectorName parameter. MacApp calls GetInspectorName 
  34897. when displaying information about TWindow objects in the Inspector window. You 
  34898. usually do not need to call this method yourself. 
  34899.  
  34900.  
  34901.  
  34902. æKY TWindow.GetMaxIntersectedDevice
  34903. æD FUNCTION TWindow.GetMaxIntersectedDevice(VAR screenRect: Rect): GDHandle;
  34904.  
  34905.  
  34906. æFi UMacApp.p
  34907. æT METHOD 
  34908. æC GetMaxIntersectedDevice returns the screenRect of the most intersected device 
  34909. and its GDHandle, or if Color QuickDraw isn't available it returns GetGrayRgn 
  34910. intersected with screenbits.bounds and NIL for the GDHandle. The screenRect 
  34911. parameter is the screenRect of the most intersected device. 
  34912.  
  34913.  
  34914.  
  34915. æKY TWindow.GetTitle
  34916. æD PROCEDURE TWindow.GetTitle(VAR theTitle: Str255);
  34917. æFi UMacApp.p
  34918. æT METHOD 
  34919. æC GetTitle returns the title of the window—that is, the contents of the 
  34920. fWMgrWindow field. The parameter theTitle is the title of the Window Manager window 
  34921. associated with this TWindow object. The following methods call GetTitle to obtain a 
  34922. window's name: TStdPrintHandler.GetDocName, TView.GetInspectorName, 
  34923. TWindow.GetInspectorName, TWindow.IRes, TWindow.IWindow, TApplication.OpenNew, 
  34924. TWindow.SetTitleForDoc, and TWindow.WRes. You can use this method in a similar fashion. 
  34925.  
  34926.  
  34927.  
  34928. æKY TWindow.GetWindow
  34929. æD FUNCTION TWindow.GetWindow: TWindow; OVERRIDE;
  34930. æFi UMacApp.p
  34931. æT METHOD 
  34932. æC GetWindow returns a reference to itself; that is, it returns SELF. 
  34933.  
  34934.  
  34935.  
  34936. æKY TWindow.GoAwayByUser
  34937. æD PROCEDURE TWindow.GoAwayByUser(globalMouse: Point);
  34938. æFi UMacApp.p
  34939. æT METHOD 
  34940. æC When the user clicks in the window's close box, GoAwayByUser tracks the mouse 
  34941. pointer while the mouse button is pressed, highlighting the window's close box 
  34942. while the pointer is in it. If the mouse button is released while the pointer is 
  34943. in the close box, GoAwayByUser closes the window. If the document has no other 
  34944. windows, this method also closes the document. The globalMouse parameter is the 
  34945. point, expressed in global coordinates, where the user first clicked in the 
  34946. window's close box. GoAwayByUser is called by TApplication.HandleMouseDown and 
  34947. TDebugApplication.HandleMouseDown to handle mouse clicks in a TWindow or 
  34948. TDebugWindow object's close box. You never need to call GoAwayByUser yourself. 
  34949.  
  34950.  
  34951.  
  34952. æKY TWindow.HandleMouseDown
  34953. æD FUNCTION TWindow.HandleMouseDown(theMouse: VPoint; VAR info: EventInfo; 
  34954.   VAR hysteresis: Point; VAR theCommand: TCommand): BOOLEAN; OVERRIDE;
  34955. æFi UMacApp.p
  34956. æT METHOD 
  34957. æC HandleMouseDown first brings the window to the front by calling the window’s 
  34958. Select method. If the value of the fDoFirstClick field is TRUE, HandleMouseDown 
  34959. updates the window and calls INHERITED HandleMouseDown. If the window is already 
  34960. in front, HandleMouseDown simply calls INHERITED HandleMouseDown. The parameter 
  34961. theMouse is the mouse pointer’s position, expressed as a local view point. The 
  34962. info parameter is used to store the mouse-down event, in case the 
  34963. HandleMouseDown method needs to examine or change its modifiers. The hysteresis 
  34964. parameter is a QuickDraw point that represents the vertical and horizontal distance 
  34965. the pointer can travel between clicks and still be considered to be at the same 
  34966. location. MacApp uses this parameter to determine whether a double click occurred or 
  34967. if the mouse pointer has moved. TApplication.DispatchEvent calls 
  34968. HandleMouseDown when the user clicks anywhere within the boundaries of a window. You 
  34969. usually do not need to call HandleMouseDown yourself. 
  34970.  
  34971.  
  34972.  
  34973. æKY TWindow.HasPendingUpdate
  34974. æD FUNCTION TWindow.HasPendingUpdate: BOOLEAN;
  34975. æFi UMacApp.p
  34976. æT METHOD 
  34977. æC HasPendingUpdate returns the value TRUE if the window referenced in fWMgrWindow 
  34978. has a pending update event. HasPendingUpdate is called by 
  34979. TTETypingCommand.AddCharacter to update the view before adding new text to it. It is 
  34980. also called by TTranscriptView.AddText to display the changes in the text record and 
  34981. the view's size. Another method that calls HasPendingUpdate is TScroller.DoScroll; 
  34982. this method handles pending update events just before drawing the scrolled view. 
  34983. Also, HasPendingUpdate is called by TDebugApplication.HandleUpdateEvent to update 
  34984. the Debug Transcript window. You can use this method in a similar fashion; you 
  34985. call it to update views that have been changed by your methods or that change 
  34986. as a result of the actions of other methods. 
  34987.  
  34988.  
  34989.  
  34990. æKY TWindow.InstallDocument
  34991. æD PROCEDURE TWindow.InstallDocument (itsDocument: TDocument);
  34992. æFi UMacApp.p
  34993. æT METHOD 
  34994. æC InstallDocument associates the specified document with the window. The 
  34995. itsDocument parameter is the document associated with the window. If itsDocument is 
  34996. not NIL, InstallDocument adds the window to the document’s window list; otherwise, 
  34997. it adds the window to the application’s free window list. InstallDocument is 
  34998. called by TWindow.IWindow and TWindow.IRes to associate a window with a document 
  34999. when either of these methods initialize a new TWindow object. You can use 
  35000. InstallDocument in a similar fashion. 
  35001.  
  35002.  
  35003.  
  35004. æKY TWindow.IRes
  35005. æD PROCEDURE TWindow.IRes(itsDocument: TDocument; itsSuperView: TView; 
  35006.   VAR itsParams: Ptr);
  35007. æFi UMacApp.p
  35008. æT METHOD 
  35009. æC IRes initializes a TWindow object from a 'view' resource template. The 
  35010. itsDocument parameter specifies the document associated with the TWindow object. The 
  35011. itsSuperView parameter is the TView object into which this view is to be 
  35012. installed; since a window has no superview, this parameter must be set to NIL. The 
  35013. itsParams parameter is a pointer to the portion of the 'view' resource data used to 
  35014. initialize this view. When the IRes method finishes initializing the view, the 
  35015. method moves the pointer to the end of this data. MacApp calls this method for 
  35016. each of the views created from a 'view' resource template, usually in response 
  35017. to a NewTemplateWindow or a DoCreateViews call. You never need to call IRes 
  35018. yourself. 
  35019.  
  35020.  
  35021.  
  35022. æKY TWindow.IsDraggable
  35023. æD FUNCTION TWindow.IsDraggable(whichRect: Rect): BOOLEAN;
  35024.  
  35025.  
  35026. æFi UMacApp.p
  35027. æT METHOD 
  35028. æC IsDraggable returns the value TRUE if any of the corner points of the specified 
  35029. rectangle are draggable. The whichRect parameter specifies the rectangle to be 
  35030. tested. 
  35031.  
  35032.  
  35033.  
  35034. æKY TWindow.IsShown
  35035. æD FUNCTION TWindow.IsShown: BOOLEAN; OVERRIDE;
  35036. æFi UMacApp.p
  35037. æT METHOD 
  35038. æC IsShown returns the value TRUE if the window is currently shown on the screen. 
  35039. MacApp uses IsShown to control the execution of methods that manipulate windows. 
  35040. TWindow.AdaptToScreen uses IsShown to decide if a window should be resized; if 
  35041. the window is not shown, AdaptToScreen does not resize it. TWindow.Center 
  35042. controls several of its actions with the value returned by IsShown—for example, 
  35043. whether to move the window by calling TWindow.Locate. According to the value 
  35044. returned by IsShown, TWindow.CloseByUser determines whether to count a window in the 
  35045. open document window list. After TWindow.Focus successfully completes all 
  35046. other tasks needed to focus the window, the final value it returns is that returned 
  35047. by a call to IsShown. You can use this method in similar fashion. 
  35048.  
  35049.  
  35050.  
  35051. æKY TWindow.IWindow
  35052. æD PROCEDURE TWindow.IWindow(itsDocument: TDocument; itsWMgrWindow: WindowPtr; 
  35053.   canResize, canClose, disposeOnFree: BOOLEAN);
  35054. æFi UMacApp.p
  35055. æT METHOD 
  35056. æC IWindow initializes a window procedurally. It associates the window with a view 
  35057. and adds the window to either the document’s window list or to the 
  35058. application’s free window list. If itsDocument is not NIL, IWindow adds the window to 
  35059. the document’s window list; otherwise, it adds the window to the application’s free 
  35060. window list. The itsDocument parameter is a reference to the window's document. 
  35061. The itsWMgrWindow parameter is a pointer to the Window Manager window 
  35062. associated with the TWindow object. If you want this window to be initialized with a 
  35063. size box and a zoom box, you can set the value of the canResize parameter to 
  35064. TRUE. If you want this window to be initialized with a close box, you can set the 
  35065. value of the canClose parameter to TRUE. If you want the memory occupied by the 
  35066. window record to be freed when this window is freed, you can set the value of 
  35067. the disposeOnFree parameter to TRUE. IWindow is called by 
  35068. TInspectWindow.IInspectWindow to do basic initialization of a TWindow object, which 
  35069. TInspectWindow.IInspectWindow then customizes. The global routine NewWindow also calls 
  35070. IWindow to complete its task after doing some basic initialization to the object 
  35071. NewWindow creates. You can use this method in asimilar fashion. 
  35072.  
  35073.  
  35074.  
  35075. æKY TWindow.Locate
  35076. æD PROCEDURE TWindow.Locate(h, v: VCoordinate; invalidate: BOOLEAN); OVERRIDE;
  35077. æFi UMacApp.p
  35078. æT METHOD 
  35079. æC Locate moves the window to the horizontal and vertical global coordinates 
  35080. specified by h and v, and redraws the window if requested. The h and v parameters 
  35081. specify in local view coordinates the new location of the upper-left corner of the 
  35082. window. The h parameter is the horizontal coordinate of the upper-left corner 
  35083. of the window’s new location. The v parameter is the vertical coordinate of the 
  35084. upper-left corner of the window’s new location. The invalidate parameter is 
  35085. inherited from TView.Locate, but TWindow.Locate does not use this parameter. If 
  35086. you override this method, you can use the invalidate parameter to notify 
  35087. subviews that their superview had moved, to invalidate a view’s focus, to force a view 
  35088. to be redrawn, or in a function similar to those suggested. TWindow.Center, 
  35089. TWindow.ForceOnScreen, and TWindow.SimpleStagger use Locate to do the actual work 
  35090. of moving a window that is shown. TInspectWindow.IInspectWindow and 
  35091. TInspectWindow.MakeWindow use Locate to initially position the Inspector window in the 
  35092. upper-right corner of the screen; the global routine InitUDebug uses it similarly 
  35093. to position the Debug Transcript window. You can use Locate in a similar fashion. 
  35094.  
  35095.  
  35096.  
  35097. æKY TWindow.MoveByUser
  35098. æD PROCEDURE TWindow.MoveByUser (globalMouse: Point);
  35099. æFi UMacApp.p
  35100. æT METHOD 
  35101. æC When the user drags in the title bar of the window, MoveByUser draws a gray 
  35102. outline of the window that follows mouse movements until the mouse button is 
  35103. released. When the button is released, MoveByUser moves the window to the new 
  35104. location. If the window is not the active window and the Command key was not pressed, 
  35105. MoveByUser makes it the active window. If the mouse button is released when the 
  35106. pointer is outside the limits of the boundary rectangle, MoveByUser does not 
  35107. move the window or make it the active window. For a document window, the 
  35108. boundary rectangle is typically 4 pixels in from the menu bar and from the other edges 
  35109. of the screen, to ensure that there won't be less than a 4-pixel-square area 
  35110. of the title bar visible on the screen. The globalMouse parameter is the point 
  35111. at which the user clicked, described in global coordinates. MoveByUser is called 
  35112. by TApplication.HandleMouseDown or TDebugApplication.HandleMouseDown when the 
  35113. user drags in a window’s title bar. You usually do not need to call MoveByUser 
  35114. yourself. 
  35115.  
  35116.  
  35117.  
  35118. æKY TWindow.Open
  35119. æD PROCEDURE TWindow.Open; OVERRIDE;
  35120. æFi UMacApp.p
  35121. æT METHOD 
  35122. æC Open calls the window’s Resize, AdjustSize, and Show methods to make the window 
  35123. visible before calling INHERITED Open to inform the window's subviews that they 
  35124. are now in an active window. If you are creating windows by using templates, 
  35125. you probably will not need to call Open. If you are creating windows 
  35126. procedurally, call Open to make the window active. You can override this method for 
  35127. windows that need extra processing when they are made active, in which case INHERITED 
  35128. Open is usually called by your override method. 
  35129.  
  35130.  
  35131.  
  35132. æKY TWindow.Resize
  35133. æD PROCEDURE TWindow.Resize(width, height: VCoordinate; invalidate: BOOLEAN); OVERRIDE;
  35134. æFi UMacApp.p
  35135. æT METHOD 
  35136. æC Resize changes the window size, invalidates the old and new positions of the 
  35137. window’s size box (“grow” box), redraws the window if requested, and then calls 
  35138. INHERITED Resize to resize the window’s subviews. The width parameter is the 
  35139. window’s new horizontal dimension, expressed in view coordinates. The height 
  35140. parameter is the window’s new vertical dimension, expressed in view coordinates. If 
  35141. you set the value of the invalidate parameter to TRUE, the view and its subviews 
  35142. are invalidated, forcing them to be redrawn in the update process. When you 
  35143. know the view will be redrawn eventually and wish to avoid drawing it twice—which 
  35144. makes the screen appear to flash—you can set the invalidate parameter to 
  35145. FALSE. Many methods call TWindow.Resize to change a window’s size, among them 
  35146. TWindow.AdaptToScreen, TWindow.ForceOnScreen, TWindow.ResizeByUser, TWindow.Show, 
  35147. TWindow.Zoom, and the global routines NewPaletteWindow, NewSimpleWindow, 
  35148. NewTemplateWindow, and InitUDebug. You can use this method in a similar fashion. 
  35149.  
  35150.  
  35151.  
  35152. æKY TWindow.ResizeByUser
  35153. æD PROCEDURE TWindow.ResizeByUser(globalMouse: Point);
  35154. æFi UMacApp.p
  35155. æT METHOD 
  35156. æC When the user drags the window's size box, ResizeByUser draws a gray outline of 
  35157. the window that follows mouse movements until the mouse button is released. 
  35158. When the button is released, ResizeByUser resizes the window by calling 
  35159. TWindow.Resize if appropriate. The globalMouse parameter is the point, described in 
  35160. global coordinates, at which the user first clicked in the window's size box. 
  35161. ResizeByUser is called by TApplication.HandleMouseDown or TDebugApplication 
  35162. HandleMouseDown when the user drags a window’s size box. You usually do not need to 
  35163. call ResizeByUser yourself. 
  35164.  
  35165.  
  35166.  
  35167. æKY TWindow.Select
  35168. æD PROCEDURE TWindow.Select;
  35169. æFi UMacApp.p
  35170. æT METHOD 
  35171. æC Select brings the window to the front. Select is called by 
  35172. TApplication.DoMenuCommand when the user chooses the Show Clipboard menu item. It is 
  35173. also called by TWindow.HandleMouseDown when the user clicks anywhere in the window and 
  35174. by TDocument.OpenAgain when the user opens a document that is already open. You can 
  35175. use Select in a similar fashion; however, you usually will not need to call it 
  35176. yourself. 
  35177.  
  35178.  
  35179.  
  35180. æKY TWindow.SetResizeLimits
  35181. æD PROCEDURE TWindow.SetResizeLimits(minSize, maxSize: Point);
  35182. æFi UMacApp.p
  35183. æT METHOD 
  35184. æC SetResizeLimits sets the minimum and maximum sizes to which the user may resize 
  35185. the window. The minSize and maxSize parameters determine the minimum size and 
  35186. the maximum size, respectively, to which the user may resize the window. The 
  35187. maxSize parameter also determines the window’s size when it is zoomed. The 
  35188. following methods call SetResizeLimits to set minimum and maximum window sizes: the 
  35189. global routines InitUDebug and WindCmd, TWindow.IRes, and TWindow.IWindow. You 
  35190. can use SetResizeLimits in a similar fashion. 
  35191.  
  35192.  
  35193.  
  35194. æKY TWindow.SetTarget
  35195. æD PROCEDURE TWindow.SetTarget (newTarget: TEvtHandler);
  35196. æFi UMacApp.p
  35197. æT METHOD 
  35198. æC SetTarget sets the window's target object. If the window is already frontmost, 
  35199. then SetTarget sets the application’s target also. The newTarget parameter is 
  35200. the TEvtHandler object that is to be the window's new target object. The 
  35201. newTarget parameter also specifies the application's target object when appropriate. 
  35202. MacApp calls SetTarget in several situations requiring that the window or 
  35203. application's target be set. TWindow.Activate sets both the window and the 
  35204. application's target. TDialogView.DoSelectEditText sets the window's target to SELF. 
  35205. TEvtHandler.Free sets the application's target to fNextHandler, if there is one; 
  35206. otherwise, Free sets the global variable gTarget. TEditText.StartEdit sets the 
  35207. window to the application's target if the window is frontmost. You can use this 
  35208. method in a similar fashion. 
  35209.  
  35210.  
  35211.  
  35212. æKY TWindow.SetTitle
  35213. æD PROCEDURE TWindow.SetTitle(newTitle: Str255);
  35214. æFi UMacApp.p
  35215. æT METHOD 
  35216. æC This method sets the title of the window pointed at by fWMgrWindow to the given 
  35217. string. The newTitle parameter is the string that is to be the window's title. 
  35218. MacApp calls TWindow.SetTitle to set the title of various windows. Methods that 
  35219. call SetTitle are: TInspector.IInspector, TApplication.OpenNew, 
  35220. TDocument.SavedOn, TInspectWindow.SetTitleForDoc, TWindow.SetTitleForDoc, and the 
  35221. global routine InitUDebug. You can use this method to set a window's title also. 
  35222.  
  35223.  
  35224.  
  35225. æKY TWindow.SetTitleForDoc
  35226. æD PROCEDURE TWindow.SetTitleForDoc(newDocTitle: Str255);
  35227. æFi UMacApp.p
  35228. æT METHOD 
  35229. æC SetTitleForDoc sets the window’s title to the name of its document. The 
  35230. newDocTitle parameter is the string that is to be the window's title. SetTitleForDoc 
  35231. is called by TWindow.InstallDocument and TDocument.SetTitle. You can use 
  35232. SetTitleForDoc when you want to set a window's title to its document's name. 
  35233.  
  35234.  
  35235.  
  35236. æKY TWindow.Show
  35237. æD PROCEDURE TWindow.Show (state, redraw: BOOLEAN); OVERRIDE;
  35238. æFi UMacApp.p
  35239. æT METHOD 
  35240. æC This method shows or hides the window, according to the value of the state 
  35241. parameter. It also sets the value of the window’s fShown flag to match the value of 
  35242. the state parameter. The Show method ignores the redraw parameter. If the value 
  35243. of the state parameter is TRUE, this method shows the window on the screen; if 
  35244. the value of the state parameter is FALSE, it hides the window. Show is called 
  35245. by TWindow.Open to show a window, and by TWindow.Close to hide a window. You 
  35246. can use this method in a similar fashion. 
  35247.  
  35248.  
  35249.  
  35250. æKY TWindow.SimpleStagger
  35251. æD PROCEDURE TWindow.SimpleStagger(dh, dv: INTEGER; VAR counter: INTEGER);
  35252. æFi UMacApp.p
  35253. æT METHOD 
  35254. æC SimpleStagger offsets the horizontal and vertical locations of windows to avoid 
  35255. superimposing them when creating multiple windows on the screen. The dh 
  35256. parameter is the number of pixels in the horizontal offset. The dv parameter is the 
  35257. number of pixels in the vertical offset. The counter parameter stores the number 
  35258. of windows created. SimpleStagger computes the offset for successive windows by 
  35259. multiplying dh and dv by counter. MacApp calls SimpleStagger from methods that 
  35260. may be used to create multiple windows. It is called by TWindow.IRes and 
  35261. TInspector.MakeWindow. You can use SimpleStagger in a similar fashion. 
  35262.  
  35263.  
  35264.  
  35265. æKY TWindow.Update
  35266. æD PROCEDURE TWindow.Update; OVERRIDE;
  35267.  
  35268. æFi UMacApp.p
  35269. æT METHOD 
  35270. æC Update handles the update region and calls DrawContents. 
  35271. TApplication.HandleUpdateEvent calls this method to handle window update events. You 
  35272. usually do not need to call this method yourself. 
  35273.  
  35274.  
  35275.  
  35276. æKY TWindow.WRes
  35277. æD PROCEDURE TWindow.WRes (theResource: ViewRsrcHndl; VAR itsParams: Ptr); OVERRIDE;
  35278. æFi UMacApp.p
  35279. æT METHOD 
  35280. æC WRes writes the TWindow portion of the view’s resource template to the location 
  35281. specified by the itsParams parameter. The parameter theResource is a handle to 
  35282. the view’s resource template. The parameter itsParams is a pointer to the 
  35283. TWindow section of the view’s resource template. WRes is the inverse of the IRes 
  35284. method, and is used only by programs that write 'view' resources; for example, 
  35285. ViewEdit uses this method to create new 'view' resources from views that are 
  35286. active on the screen. You rarely need to call this method yourself. You must 
  35287. override this method in your subclasses to create your own 'view' resources. Your 
  35288. override should check the size of the space remaining in the template past the end 
  35289. of the previously-written resource data; if there is not enough space to write 
  35290. your data into the file, your override should call the global routine 
  35291. ExpandPtr, passing as arguments the current values of theResource, itsParams, and the 
  35292. size of your resource data, in bytes. ExpandPtr expands the 'view' resource 
  35293. handle by the amount you specify, or by kViewRsrcExpandAmt, whichever is greater. 
  35294. You need not be concerned about making the 'view' resource handle too big, 
  35295. because MacApp reclaims unused space by returning a new value for itsParams when the 
  35296. WRes method completes. 
  35297.  
  35298.  
  35299.  
  35300. æKY TWindow.WriteRes
  35301. æD PROCEDURE TWindow.WriteRes (theResource: ViewRsrcHndl; 
  35302.   VAR itsParams: Ptr); OVERRIDE;
  35303. æFi UMacApp.p
  35304. æT METHOD 
  35305. æC WriteRes serves as a “wrapper” for WRes; it sets up the signature ('wind') and 
  35306. class name ('TWindow') for the 'view' resource template, and then calls WRes to 
  35307. actually write the resource. The parameter theResource is a handle to the 
  35308. view’s resource template. The parameter itsParams is a pointer to the parameters 
  35309. MacApp uses to create the new resource. MacApp calls this method to write a 
  35310. TWindow object as part of a 'view' resource; you can use it in a similar fashion. You 
  35311. can override this method to provide your own unique class name or signature. 
  35312.  
  35313.  
  35314.  
  35315. æKY TWindow.Zoom
  35316. æD PROCEDURE TWindow.Zoom (partCode: INTEGER);
  35317. æFi UMacApp.p
  35318. æT METHOD 
  35319. æC This method zooms a window from its existing size to screen size, or from screen 
  35320. size back to its previous size. The partCode parameter indicates which way to 
  35321. zoom. Zoom is called by ZoomByUser when the user clicks the window's zoom box. 
  35322. You rarely need to call it yourself because MacApp intercepts mouse clicks and 
  35323. calls this method for you when appropriate. 
  35324.  
  35325.  
  35326.  
  35327. æKY TWindow.ZoomByUser
  35328. æD PROCEDURE TWindow.ZoomByUser(globalMouse: Point; partCode: INTEGER);
  35329.  
  35330. æFi UMacApp.p
  35331. æT METHOD 
  35332. æC ZoomByUser calls the Toolbox function TrackBox if the user clicks the window's 
  35333. zoom box. TrackBox tracks the mouse for as long as the mouse button is pressed, 
  35334. highlighting the window's zoom box for as long as the pointer is in it. If the 
  35335. mouse button is released while the pointer is in the zoom box, TrackBox returns 
  35336. the value TRUE. If TrackBox returns TRUE, ZoomByUser calls Zoom, which zooms 
  35337. the active window from its existing size to screen size, or from screen size 
  35338. back to its previous size. The globalMouse parameter is the point, expressed in 
  35339. global coordinates, where the mouse pointer was pressed. The partCode parameter 
  35340. contains a constant returned by FindWindow that indicates where the click 
  35341. occurred and thus which way to zoom. A value of 7 indicates the constant inZoomIn; a 
  35342. value of 8 indicates the constant inZoomOut. ZoomByUser is called by 
  35343. TApplication.HandleMouseDown or TDebugApplication.HandleMouseDown when the user clicks a 
  35344. window's zoom box. You usually will not need to call Zoom yourself because 
  35345. MacApp intercepts mouse clicks and calls this method for you when appropriate. 
  35346.  
  35347.  
  35348.  
  35349.  
  35350.  
  35351. æKY Help
  35352. MacApp411Help
  35353. æKL
  35354. %_BP
  35355. %_CLASSINFO
  35356. %_DISCIPLINEDISPATCH
  35357. %_DISCIPLINEDISPATCH_PATCHPOINT
  35358. %_EP
  35359. %_EX
  35360. %_INITOBJ
  35361. %_INOBJ
  35362. %_JMPTOTRAP
  35363. %_METHOD
  35364. %_NewMethod
  35365. %_OBCHK
  35366. %_OBDISP
  35367. %_ObjError
  35368. %_OBNEW
  35369. %_OptInitObj
  35370. %_OPTINOBJ
  35371. %_OptSetCI
  35372. %_PGM1
  35373. _addDevHandler
  35374. _DataInit
  35375. ActionProcForTScrollBar
  35376. AddAllRsrc
  35377. AddHandle
  35378. AddNewObjectsToInspector
  35379. AddObjectToInspector
  35380. AddSegSizes
  35381. AddVPt
  35382. AllocateObjectsFromPerm
  35383. AllocBlock
  35384. ALoadMacAppSeg
  35385. APostLoadMacAppSeg
  35386. ApplicationBeep
  35387. Assertion
  35388. AtMAName
  35389. AtStr
  35390. aVBLTask
  35391. AWatchTask
  35392. bBoolean
  35393. bByte
  35394. bChar
  35395. bClass
  35396. bCmdNumber
  35397. bCntlAdornment
  35398. bConfigRec
  35399. bControlHandle
  35400. bDouble
  35401. bExtended
  35402. bFixed
  35403. bFontName
  35404. bGrafPtr
  35405. bHandle
  35406. bHexInteger
  35407. bHexLongInt
  35408. bHighByte
  35409. bHLState
  35410. bIDType
  35411. bInteger
  35412. BlockSet
  35413. bLongInt
  35414. bLowByte
  35415. bObject
  35416. bOSType
  35417. bPattern
  35418. bPoint
  35419. bPointer
  35420. bReal
  35421. bRect
  35422. bResType
  35423. bRGBColor
  35424. bRgnHandle
  35425. bScrapStuff
  35426. bSingle
  35427. bSizeDeterminer
  35428. bString
  35429. bStringHandle
  35430. bStyle
  35431. bTEHandle
  35432. bTextStyle
  35433. bTitle
  35434. BuildAllReserves
  35435. BuildCodeReserve
  35436. BuildMessage
  35437. BusyActivate
  35438. BusyDelay
  35439. BusyInstall
  35440. BusyRemove
  35441. BusyReset
  35442. BusyTurnOff
  35443. bVCoordinate
  35444. bVHSelect
  35445. bVPoint
  35446. bVRect
  35447. bWindowPtr
  35448. bzCantDraw
  35449. bzCantUndo
  35450. bzClosing
  35451. bzDoFirstClick
  35452. bzDontDoFirstClick
  35453. bzHideClip
  35454. bzMakeModal
  35455. bzMakeModeless
  35456. bzQuitting
  35457. bzRedo
  35458. bzRevertAnyways
  35459. bzSaveAnyways
  35460. bzSaveAs
  35461. bzSaveCopy
  35462. bzSetLeftSysJust
  35463. bzSetRightSysJust
  35464. bzShowClip
  35465. bzUndo
  35466. bzUntitled
  35467. cAboutApp
  35468. CallAlertFilter
  35469. CallCapture
  35470. CallEnter
  35471. CallFileFilter
  35472. CallFlagActionProc
  35473. CallHelpProc
  35474. CallInspector
  35475. CallNotify
  35476. CallSymActionProc
  35477. CallSymbolLookup
  35478. CallWDefProc
  35479. CanPaste
  35480. CanReadLn
  35481. CanWriteLn
  35482. CatchFailures
  35483. cCantUndo
  35484. cChangePrinterStyle
  35485. cClear
  35486. cClose
  35487. cCopy
  35488. cCut
  35489. cDebugPrinting
  35490. cDebugWind
  35491. cDoFirstClick
  35492. cEditBase
  35493. cEditLast
  35494. cEditSep
  35495. cEnterMacAppDebugger
  35496. CenterRectOnScreen
  35497. cExperimenting
  35498. cFinderNew
  35499. cFinderOpen
  35500. cFinderPrint
  35501. chBackspace
  35502. chClear
  35503. chDown
  35504. CheckFreeMasters
  35505. CheckReserve
  35506. CheckRsrcUsage
  35507. chEnd
  35508. chEnter
  35509. chEscape
  35510. chFunction
  35511. chFwdDelete
  35512. chHelp
  35513. chHome
  35514. chLeft
  35515. chPageDown
  35516. chPageUp
  35517. Chr00
  35518. Chr1F
  35519. chReturn
  35520. chRight
  35521. chSpace
  35522. chTab
  35523. chUp
  35524. cIdentifySoftware
  35525. cIntenseDebugging
  35526. CleanupMacApp
  35527. ClearTheFPU
  35528. ClickLoopForTTEView
  35529. CloseFile
  35530. ClrBreakCmd
  35531. CmdEnabled
  35532. CmdFromMenuItem
  35533. CmdToComponents
  35534. CmdToMenuItem
  35535. CmdToName
  35536. cModalToggle
  35537. cMouseCommand
  35538. cNew
  35539. cNewInspectorWindow
  35540. cNewLast
  35541. cNoCommand
  35542. CompareStrings
  35543. ConcatNumber
  35544. ConfigRecFields
  35545. cOpen
  35546. cOpenLast
  35547. CopyStr255
  35548. cPageSetup
  35549. cPaste
  35550. cPrFileBase
  35551. cPrFileMax
  35552. cPrint
  35553. cPrintOne
  35554. cPrintSpoolFile
  35555. cPrintToFile
  35556. cPrViewBase
  35557. cPrViewMax
  35558. cQuit
  35559. cReduce50
  35560. cReduceToFit
  35561. cRefreshFrontWindow
  35562. cRememberStyle
  35563. cReportEvt
  35564. cReportMenuChoices
  35565. cRevert
  35566. cSave
  35567. cSaveAs
  35568. cSaveCopy
  35569. cSelectAll
  35570. cSetSysJust
  35571. cShowBorders
  35572. cShowBreaks
  35573. cShowClipboard
  35574. cShowFullSize
  35575. cStyleChange
  35576. cTraceIdle
  35577. cTraceSetupMenus
  35578. cTrackingControl
  35579. cTyping
  35580. cUndo
  35581. CurrentCursor
  35582. cVarClipPicSize
  35583. DebugCanReadLn
  35584. DebugCanWriteLn
  35585. DebugCapture
  35586. DebugEndForce
  35587. DebugException
  35588. DebugFlag
  35589. DebugForceOutput
  35590. DebugGetActiveDocument
  35591. DebugGetActiveWindow
  35592. DebugGetLastCommand
  35593. DebugGlobalHandle
  35594. DebugPerfMonitor
  35595. DebugReadCh
  35596. DebugReadLn
  35597. DebugRedirect
  35598. DebugShowTranscriptWindow
  35599. DebugTerminate
  35600. DebugTranscriptWidth
  35601. DebugWriteLn
  35602. DefaultSize
  35603. DefineConfiguration
  35604. DeleteFile
  35605. DevClose
  35606. DevFAccess
  35607. DevIoctl
  35608. DevRead
  35609. DevWrite
  35610. DisciplineMethodCalls
  35611. DisposeIfHandle
  35612. DisposeIfPtr
  35613. DisposIfHandle
  35614. DisposIfPtr
  35615. DoChangeReserve
  35616. DoFailure
  35617. DoInitUMacApp
  35618. DoInitUMemory
  35619. DoneViewRsrc
  35620. DoneWithTempRgn
  35621. DoRealInitToolBox
  35622. DoShowAboutAppFilter
  35623. DoToSubView
  35624. DoWaiting
  35625. DumpTERecord
  35626. DumpTTECommand
  35627. EachClassDo
  35628. EachFailureHandlerDo
  35629. EachFrameDo
  35630. EachMenuDo
  35631. EachPatchDo
  35632. EachSubClassDo
  35633. EachSuperClassDo
  35634. EachWMgrWindowDo
  35635. EmptyVRect
  35636. Enable
  35637. EnableCheck
  35638. EntDebugger
  35639. EnterMacAppDebugger
  35640. EqualBlocks
  35641. EqualVPt
  35642. EqualVRect
  35643. errAppTable
  35644. errFileChanged
  35645. errFTypeChanged
  35646. errNoPrintDrvr
  35647. errNotImplemented
  35648. errNotMyType
  35649. errOperationsID
  35650. ErrorAlert
  35651. errReasonID
  35652. errRecoveryID
  35653. errRevertFNF
  35654. errSaveAgain
  35655. errSpooling
  35656. ExchangeHandles
  35657. ExitMacApp
  35658. ExpandPtr
  35659. ExpandPtrWStr
  35660. FailMemError
  35661. FailNewMessage
  35662. FailNIL
  35663. FailNILResource
  35664. FailNonObject
  35665. FailNoReserve
  35666. FailOSErr
  35667. FailResError
  35668. FailSpaceIsLow
  35669. Failure
  35670. FieldToString
  35671. FileModDate
  35672. FillInDirID
  35673. FinderSegProc
  35674. FindWindowBefore
  35675. ForceBusy
  35676. FreeIfObject
  35677. FreeIfWMgrWindow
  35678. FreeListIfObject
  35679. FreeObject
  35680. FreeWMgrWindow
  35681. gAlwaysTrackCursor
  35682. gApp1MemList
  35683. gApp2MemList
  35684. gAppDone
  35685. gApplication
  35686. gApplicationRefNum
  35687. gApplicationStyle
  35688. gAskAboutAlloc
  35689. gAskFailure
  35690. gAssumeFocused
  35691. gBoolString
  35692. gBreaksPenState
  35693. gBusyTempRgn
  35694. gCancelAllPrinting
  35695. gChooserOK
  35696. gClickCount
  35697. gClipClaimed
  35698. gClipOrphanage
  35699. gClipUndoView
  35700. gClipView
  35701. gClipWindow
  35702. gClipWrittenToDeskScrap
  35703. gCodeRefNum
  35704. gCodeSegs
  35705. gConfiguration
  35706. gCouldPrint
  35707. gCreateWithTemplates
  35708. gCurrPrintHandler
  35709. gCursorRgn
  35710. gDeadStripSuppression
  35711. gDebugPrinting
  35712. gDefClikLoopProc
  35713. gDocList
  35714. gDrawingPictScrap
  35715. gDrawingPictScrapView
  35716. gEnableDoubleBuffering
  35717. gErrorParm3
  35718. GetA5
  35719. GetActualJustification
  35720. GetAndLoadWDefProc
  35721. GetCallersMethodName
  35722. GetClassID
  35723. GetClassIDFromName
  35724. GetClassNameFromID
  35725. GetClassSizeFromId
  35726. GetCrsrBusy
  35727. GetCurJTOffset
  35728. GetCurStackBase
  35729. GetCurStackFramePtr
  35730. GetCurStackTop
  35731. GetDirID
  35732. GetErrTxt
  35733. GetFileInfo
  35734. GetFocus
  35735. GetFontNum
  35736. GetFrameInfo
  35737. GetFreeMastersCount
  35738. GetFSFCBLen
  35739. GetGZMoveHnd
  35740. GetGZRootHnd
  35741. GetHandleBits
  35742. GetHwCfgFlags
  35743. GetIfBkColor
  35744. GetIfColor
  35745. GetLevel
  35746. GetLMMBarHeight
  35747. GetMenuColors
  35748. GetMenuList
  35749. GetMethodName
  35750. GetNewCenteredDialog
  35751. GetParmBlockPtr
  35752. GetPortFontInfo
  35753. GetPortTextStyle
  35754. GetProcName
  35755. GetPromptedChar
  35756. GetPromptedNames
  35757. GetPromptedNumber
  35758. GetPromptedNumberWithDefault
  35759. GetPromptedString
  35760. GetPromptedStringWithDefault
  35761. GetPromptedValue
  35762. GetRcvrAtLevel
  35763. GetReserveSize
  35764. GetResLoad
  35765. GetResMenu
  35766. GetROMMapInsert
  35767. GetSaveVisRgnPtr
  35768. GetSegFromPC
  35769. GetSegNumber
  35770. GetSegResource
  35771. GetSegSize
  35772. GetSuperClassID
  35773. GetSuperClassTableHandle
  35774. GetTextStyleFontInfo
  35775. GetTheCrsr
  35776. GetTrapType
  35777. GetUnitNtryCnt
  35778. GetUTableBase
  35779. GetWindowList
  35780. GetWindowVariant
  35781. gEventLevel
  35782. gExperimenting
  35783. gFakeWindow
  35784. gFieldToStrRtn
  35785. gFileCount
  35786. gFinderHPrint
  35787. gFinderPrinting
  35788. gFocusedView
  35789. gFreeWindowList
  35790. gGotClipType
  35791. gGZPurgeNotify
  35792. gHeadCohandler
  35793. gIdlePhase
  35794. gInBackground
  35795. gInFilter
  35796. gInhibitNestedHandling
  35797. gInitialized
  35798. gIntenseDebugging
  35799. gIsLoadedSeg
  35800. gIsResidentSeg
  35801. gJobPrintHandler
  35802. gLastClickPart
  35803. gLastDeskAcc
  35804. gLastMsePt
  35805. gLastUpTime
  35806. gLongOffset
  35807. gLowSpaceInterval
  35808. gMacAppAlertFilter
  35809. gMainEventMask
  35810. gMainFileType
  35811. gMastReport
  35812. gMATextBoxTE
  35813. gMaxLockedRsrc
  35814. gMaxStackDepth
  35815. gMBarDisplayed
  35816. gMBarHeight
  35817. gMBarHierarchical
  35818. gMBarNotDisplayed
  35819. gMemMgtBreak
  35820. gMenusAreSetup
  35821. gNewScrapStuff
  35822. gNextSpaceMsg
  35823. gNoChanges
  35824. gNullPrintHandler
  35825. gNumUntitled
  35826. gOldChooserFlag
  35827. gOldScrapStuff
  35828. gOrthogonal
  35829. gPageOffset
  35830. gPostCondition
  35831. gPreCondition
  35832. gPrefClipType
  35833. gPrintHandler
  35834. gPrinting
  35835. gRedrawMenuBar
  35836. gReportEvt
  35837. gReportInfo
  35838. gReportMenuChoices
  35839. gReportNext
  35840. gReportTime
  35841. gRGBBlack
  35842. gRGBWhite
  35843. GrowZoneProc
  35844. gRsrcCheck
  35845. gRsrcReport
  35846. gSaveFocusRec
  35847. gSegReport
  35848. gSignatureCount
  35849. gSignatureIds
  35850. gSignatures
  35851. gSingleStep
  35852. gStdHysteresis
  35853. gStdPageMargins
  35854. gStdStaggerCount
  35855. gStdWMoveBounds
  35856. gStdWScreenRect
  35857. gStdWSizeRect
  35858. gStrippedAddress
  35859. gSysMemList
  35860. gSystemStyle
  35861. gSysWindowActive
  35862. gTarget
  35863. gTEDefaultWordBreak
  35864. gTempRgn
  35865. gToolBoxInitialized
  35866. gTopHandler
  35867. gTraceIdle
  35868. gTraceSetupMenus
  35869. gTracing
  35870. gUDialogInitialized
  35871. gUGridViewInitialized
  35872. gUndoCmd
  35873. gUndoState
  35874. gUnloadAllSegs
  35875. gUPrintingInitialized
  35876. gUsedBy
  35877. gUTEViewInitialized
  35878. gVarClipPicSize
  35879. gWasTrcEnable
  35880. gWorkPort
  35881. gWResSignature
  35882. gWResType
  35883. gZeroPt
  35884. gZeroRect
  35885. gZeroVPt
  35886. gZeroVRect
  35887. HandleIsEligible
  35888. HandlerExists
  35889. HdlInitFailed
  35890. Head1Patch
  35891. HeadPatch
  35892. HeapCmd
  35893. hlDim
  35894. hlDimOff
  35895. hlDimOn
  35896. hlOff
  35897. hlOffDim
  35898. hlOffOn
  35899. hlOn
  35900. hlOnDim
  35901. hlOnOff
  35902. IdleProcForTStdPrintHandler
  35903. IDUDebug
  35904. IDUobject
  35905. IDUTranscriptView
  35906. InitializationThatMustNotFail
  35907. InitMacAppCursor
  35908. InitPrinting
  35909. InitToolBox
  35910. InitUBusyCursor
  35911. InitUDebug
  35912. InitUDebugAfterIApplication
  35913. InitUDialog
  35914. InitUGridView
  35915. InitUInspector
  35916. InitUMacApp
  35917. InitUMemory
  35918. InitUMenuSetup
  35919. InitUObject
  35920. InitUPatch
  35921. InitUPrinting
  35922. InitUTEView
  35923. InsetVRect
  35924. InspectField
  35925. InspectObject
  35926. InstallAnNMRequest
  35927. InstallDispatcher
  35928. InstallGrowZoneProc
  35929. InstallIfPrintHandler
  35930. InstallInterceptors
  35931. InstallWriteLnHook
  35932. IntMultiply
  35933. InvalidateMenuBar
  35934. InvalidateMenus
  35935. IsClassIDMemberClass
  35936. IsFreeHandle
  35937. IsHandle
  35938. IsHandleLocked
  35939. IsHandlePurged
  35940. IsMemberClassID
  35941. IsObject
  35942. IsUserBreak
  35943. JTOffProc
  35944. kAdorn
  35945. kAEqualB
  35946. kAGreaterThanB
  35947. kALessThanB
  35948. kAllocationIncrement
  35949. kAllowApplicationToSleep
  35950. kApplFontName
  35951. kAskForFilename
  35952. kAutoWrap
  35953. kBuild
  35954. kClearVirtualCode
  35955. kCode
  35956. kControlOn
  35957. kCopyright
  35958. kDataOpen
  35959. kDebugBuzzStrings
  35960. kDebugFont
  35961. kDebugParamsID
  35962. kDebugSize
  35963. kDefaultCredits
  35964. kDefaultViewID
  35965. kDefaultWindowID
  35966. kDeSelect
  35967. kDontAdorn
  35968. kDontAlign
  35969. kDontExtend
  35970. kDontFlash
  35971. kDontHighlight
  35972. kDontInvalidate
  35973. kDontRedraw
  35974. kEmptyIndex
  35975. kEraseFirst
  35976. kErrorHandled
  35977. kEscapeVirtualCode
  35978. kExtend
  35979. kF10VirtualCode
  35980. kF11VirtualCode
  35981. kF12VirtualCode
  35982. kF13VirtualCode
  35983. kF14VirtualCode
  35984. kF15VirtualCode
  35985. kF1VirtualCode
  35986. kF2VirtualCode
  35987. kF3VirtualCode
  35988. kF4VirtualCode
  35989. kF5VirtualCode
  35990. kF6VirtualCode
  35991. kF7VirtualCode
  35992. kF8VirtualCode
  35993. kF9VirtualCode
  35994. kFailAbstract
  35995. kFailCoercion
  35996. kFailMethNotFound
  35997. kFailNone
  35998. kFixedSize
  35999. kFlash
  36000. kForceDepth
  36001. kForDisplay
  36002. kForPrinting
  36003. kFrame
  36004. kFwdDelVirtualCode
  36005. kGZMaxAlloc
  36006. kHexDigits
  36007. kHighlight
  36008. kHMargin
  36009. kIDBuzzString
  36010. kIDClipView
  36011. kIDClipWindow
  36012. kIDDefaultView
  36013. kIDMNTBbyCmdNumber
  36014. kInvalidate
  36015. kInvalidObj
  36016. kInvalidValue
  36017. kInvalidValueReasons
  36018. kInvisible
  36019. kItem1EqualItem2
  36020. kItem1GreaterThanItem2
  36021. kItem1LessThanItem2
  36022. kItemEqualCriteria
  36023. kItemGreaterThanCriteria
  36024. kItemLessThanCriteria
  36025. kIterateBackward
  36026. kIterateForward
  36027. kLeftPalette
  36028. kLMApFontID
  36029. kLMmapFalse
  36030. kLMmapTrue
  36031. kLMSysFontFam
  36032. kLMSysFontSize
  36033. kLMTESysJust
  36034. kLowSpaceInterval
  36035. kMakingCopy
  36036. kMANameSize
  36037. kMaxCoord
  36038. kMaxFlags
  36039. kMaxIdleTime
  36040. kMaxSignatures
  36041. kMaxSyms
  36042. kMaxTEWidth
  36043. kMBarDisplayed
  36044. kMBarHierarchical
  36045. kMBarNotDisplayed
  36046. kMinAhead
  36047. kMNTBbyCmdNumber
  36048. kMouseMovedMessage
  36049. kMoveBAbsolute
  36050. kMoveLAbsolute
  36051. kMoveLImmed
  36052. kMoveWAbsolute
  36053. kNeverInitialized
  36054. kNilClass
  36055. kNoAutoWrap
  36056. kNoButton
  36057. kNoEraseFirst
  36058. kNoFileRefnum
  36059. kNoIdentifier
  36060. kNonNumericCharacters
  36061. kNoOfDefaultReasons
  36062. kNoResource
  36063. kNoSpaceForCaret
  36064. kNoStaticLink
  36065. kNoTemplate
  36066. kPreferColor
  36067. kPrintDriverName
  36068. kPrintInfoSize
  36069. kPriorityHigh
  36070. kPriorityHighest
  36071. kPriorityLow
  36072. kPriorityLowest
  36073. kPriorityNormal
  36074. kRedraw
  36075. kRsrcCheckInterval
  36076. kRsrcFileOverhead
  36077. kRsrcOpen
  36078. kRsrcOverhead
  36079. kRsrcTypeOverhead
  36080. kSaveCurrentChars
  36081. kSBarSize
  36082. kSBarSizeMinus1
  36083. kScrollBarId
  36084. kSelect
  36085. kShowCantUndo
  36086. kShowRedo
  36087. kShowUndo
  36088. kSpaceForCaret
  36089. kSquareDots
  36090. kStdButton
  36091. kStdCheckBox
  36092. kStdCluster
  36093. kStdControl
  36094. kStdDefaultView
  36095. kStdDialogView
  36096. kStdDocument
  36097. kStdEditText
  36098. kStdGridView
  36099. kStdIcon
  36100. kStdList
  36101. kStdMainFileType
  36102. kStdNumberText
  36103. kStdPattern
  36104. kStdPicture
  36105. kStdPopup
  36106. kStdRadio
  36107. kStdScroller
  36108. kStdScrollUnit
  36109. kStdSScrollBar
  36110. kStdStaggerAmount
  36111. kStdStaticText
  36112. kStdSzMinus1SBar
  36113. kStdSzSBar
  36114. kStdTEView
  36115. kStdTextGridView
  36116. kStdTextListView
  36117. kStdTracker
  36118. kStdView
  36119. kStdWindow
  36120. kSuspendOrResume
  36121. kSwitchToTarget
  36122. kSysClear
  36123. kSysCopy
  36124. kSysCut
  36125. kSysFontName
  36126. kSysPaste
  36127. kSysUndo
  36128. kTooManyCharacters
  36129. kTopPalette
  36130. kUnlimited
  36131. kUsesDataFork
  36132. kUsesRsrcFork
  36133. kUsualPages
  36134. kValidValue
  36135. kValueTooLarge
  36136. kValueTooSmall
  36137. kViewRsrcExpandAmt
  36138. kVisible
  36139. kVMargin
  36140. kWantHScrollBar
  36141. kWantVScrollBar
  36142. kWatchDelay
  36143. kWithoutStyle
  36144. kWithStyle
  36145. kWordAlign
  36146. kWWEol
  36147. kYesButton
  36148. LengthRect
  36149. LengthVRect
  36150. LIntToHex
  36151. LoadMacAppSegment
  36152. LoadResidentSegments
  36153. LockHandleHigh
  36154. LongerSide
  36155. LookupErrString
  36156. LookupSymbol
  36157. LowerChar
  36158. LowerStr255
  36159. MacAppAlert
  36160. MacAppAlertFilter
  36161. MACount1Resources
  36162. MACountResources
  36163. MADebuggerMainEntry
  36164. MADrawString
  36165. MAGet1IndResource
  36166. MAGet1NamedResource
  36167. MAGet1Resource
  36168. MAGetIndResource
  36169. MAGetMenu
  36170. MAGetNamedResource
  36171. MAGetNewMBar
  36172. MAGetResource
  36173. MainHelpProc
  36174. MAInsertMenu
  36175. MAInvalMenuBar
  36176. MakeInspector
  36177. MakeInspectorWindow
  36178. MakeNewInstance
  36179. MakeNewRgn
  36180. MAOpenFile
  36181. mApple
  36182. MATextBox
  36183. MAUseResFile
  36184. Max
  36185. maxErr
  36186. mButtonHit
  36187. mCancelHit
  36188. mCancelKey
  36189. mCheckBoxHit
  36190. mClusterHit
  36191. mControlHit
  36192. mDebug
  36193. mDefaultKey
  36194. mEdit
  36195. mEditEnterKey
  36196. mEditReturnKey
  36197. mEditTabKey
  36198. mEditTextHit
  36199. MemSpaceIsLow
  36200. MenuBarHasPendingUpdate
  36201. MenusHavePendingUpdate
  36202. mFile
  36203. mHScrollBarHit
  36204. mIconHit
  36205. Min
  36206. minErr
  36207. MinMax
  36208. mLastMenu
  36209. mListItemHit
  36210. mListScrollBarHit
  36211. mOKHit
  36212. mPatternHit
  36213. mPictureHit
  36214. mPopupHit
  36215. mRadioHit
  36216. msgAlert
  36217. msgAltRecovery
  36218. msgCancelled
  36219. msgCmdErr
  36220. msgDrawFailed
  36221. msgExportClipFailed
  36222. msgImportClipFailed
  36223. msgInitFailed
  36224. msgLookup
  36225. msgNewFailed
  36226. msgOpenFailed
  36227. msgPrintFailed
  36228. msgRevertFailed
  36229. msgSaveAsFailed
  36230. msgSaveCopyFailed
  36231. msgSaveFailed
  36232. msgStrList
  36233. mStaticTextHit
  36234. mVScrollBarHit
  36235. NeedCalcMenuSize
  36236. NewAllocatedList
  36237. NewList
  36238. NewObjectByClassId
  36239. NewObjectByClassName
  36240. NewPaletteWindow
  36241. NewPermHandle
  36242. NewPermPtr
  36243. NewSimpleWindow
  36244. NewSortedList
  36245. NewStdObject
  36246. NewTemplateWindow
  36247. NewTWindow
  36248. NewViewRsrc
  36249. NotYetImplemented
  36250. NullMenuProc
  36251. NumberToHex
  36252. NumBlocks
  36253. NumToolboxTraps
  36254. OBJFail
  36255. OffsetPtr
  36256. OffsetPtrWStr
  36257. OffsetVRect
  36258. OptionKeyIsDown
  36259. OrderClassIdsByName
  36260. ParseTitleTemplate
  36261. PatchTrap
  36262. pCodeReserve
  36263. pCopyright
  36264. pCurrTEView
  36265. pCursorInfo
  36266. pDebugView
  36267. pDebugWindow
  36268. pDifference
  36269. PerfCmd
  36270. PerformMenuSetup
  36271. PermAllocation
  36272. pETSPatch
  36273. pFi
  36274. phAboutApp
  36275. phCmdErr
  36276. phFileChanged
  36277. phFinderPrintDialog
  36278. phGenError
  36279. phInvalidValue
  36280. phNoPages
  36281. phOfferReadOnly
  36282. phPurgeOld
  36283. phReopenDoc
  36284. phRevert
  36285. phSaveChanges
  36286. phSpaceIsLow
  36287. phSpoolPrintDialog
  36288. phStylesTooBig
  36289. phTooManyChars
  36290. phUnimplemented
  36291. phUnknownErr
  36292. phUnsupportedConfiguration
  36293. phWhichDoc
  36294. PinOnRect
  36295. pInvalidateRgn
  36296. PinVRect
  36297. pLoadSegCalledFromOwnApp
  36298. pMaxSegNum
  36299. pMemReserve
  36300. pNoOfSegments
  36301. PointerToHex
  36302. pOKCodeReserve
  36303. pOldResFile
  36304. PositionDebugWindow
  36305. PostLoadMacAppSegment
  36306. pPatchList
  36307. pPermAllocation
  36308. pPixelsToHighlight
  36309. pPreviousSelection
  36310. PreloadSegment
  36311. PreloadSegmentResource
  36312. pReserveExists
  36313. pReserveShortfall
  36314. ProgramBreak
  36315. ProgramReport
  36316. PRStr
  36317. pSegLoadPatch
  36318. pSegNeedsUnloading
  36319. pSzCodeReserve
  36320. pSzMemReserve
  36321. Pt2VRect
  36322. pTEIntenseDebugging
  36323. PtInVRect
  36324. PtIsVisible
  36325. PtToVPt
  36326. PullApplicationToFront
  36327. PushLong
  36328. PutDeskScrapData
  36329. pVisibleCells
  36330. qDebug
  36331. qDebugTheDebugger
  36332. qExperimentalAndUnsupported
  36333. qInspector
  36334. qMacApp
  36335. qNames
  36336. qNeedsColorQD
  36337. qNeedsFPU
  36338. qNeedsHierarchicalMenus
  36339. qNeedsMC68020
  36340. qNeedsMC68030
  36341. qNeedsROM128K
  36342. qNeedsScriptManager
  36343. qNeedsStyleTextEdit
  36344. qNeedsWaitNextEvent
  36345. qPerform
  36346. qRangeCheck
  36347. qTemplateViews
  36348. qTrace
  36349. ReadInteger
  36350. ReadYesNo
  36351. RectIsVisible
  36352. RectsNest
  36353. RectToVRect
  36354. RegisterStdType
  36355. RemHandle
  36356. RemoveAnyNMRequests
  36357. RemoveObjectFromInspector
  36358. ResetBusyCursor
  36359. RoundUp
  36360. SaveEventQueue
  36361. ScanHandles
  36362. ScrapStuffFields
  36363. SectVRect
  36364. SetBreakCmd
  36365. SetCallBack
  36366. SetCMacAppCursor
  36367. SetCmdIcon
  36368. SetCmdName
  36369. SetFocus
  36370. SetGetProc
  36371. SetHandleBits
  36372. SetHLPenState
  36373. SetIfBkColor
  36374. SetIfColor
  36375. SetIndCmdName
  36376. SetKeyScript
  36377. SetMacAppCursor
  36378. SetMenuState
  36379. SetPermHandleSize
  36380. SetPermPtrSize
  36381. SetPortTextStyle
  36382. SetPutProc
  36383. SetReserveSize
  36384. SetResidentSegment
  36385. SetRGBColor
  36386. SetSelect
  36387. SetStackSpace
  36388. SetStyle
  36389. SetTextStyle
  36390. SetVPt
  36391. SetVRect
  36392. ShowDisasmMemory
  36393. ShowFields
  36394. ShowHeapInfo
  36395. ShowHierarchy
  36396. ShowLocals
  36397. ShowMemory
  36398. ShowNames
  36399. ShowParameters
  36400. ShowRecent
  36401. ShowStack
  36402. ShowStatus
  36403. ShowSymbolWhich
  36404. ShowTempSpace
  36405. ShowWhere
  36406. ShowWhich
  36407. StdAlert
  36408. StdFieldToString
  36409. StdHelpProc
  36410. StdNoRect
  36411. StripLong
  36412. SubstituteInTitle
  36413. SubVPt
  36414. Success
  36415. TAboutAppCommand
  36416. TAboutAppCommand.DoIt
  36417. TAboutAppCommand.Fields
  36418. TAboutAppCommand.IAboutAppCommand
  36419. TApplication
  36420. TApplication.AbandonUndoClipboard
  36421. TApplication.AboutToLoseControl
  36422. TApplication.AbsorbScrapStuff
  36423. TApplication.ActivateBusyCursor
  36424. TApplication.AddDocument
  36425. TApplication.AddFreeWindow
  36426. TApplication.AlreadyOpen
  36427. TApplication.Beep
  36428. TApplication.CanOpenDocument
  36429. TApplication.CheckDeskScrap
  36430. TApplication.ChooseDocument
  36431. TApplication.ClaimClipboard
  36432. TApplication.Close
  36433. TApplication.CloseWmgrWindow
  36434. TApplication.CommitLastCommand
  36435. TApplication.CountClicks
  36436. TApplication.DeleteDocument
  36437. TApplication.DeleteFreeWindow
  36438. TApplication.DispatchEvent
  36439. TApplication.DoCommandKey
  36440. TApplication.DoKeyCommand
  36441. TApplication.DoMakeDocument
  36442. TApplication.DoMenuCommand
  36443. TApplication.DoSetupMenus
  36444. TApplication.DoShowAboutApp
  36445. TApplication.EachFreeWindow
  36446. TApplication.fCommandQueue
  36447. TApplication.Fields
  36448. TApplication.fLastCommand
  36449. TApplication.fLaunchWithNewDocument
  36450. TApplication.ForAllDocumentsDo
  36451. TApplication.ForAllWindowsDo
  36452. TApplication.fTicksOfLastIdle
  36453. TApplication.fTicksTilNextIdle
  36454. TApplication.GetActiveWindow
  36455. TApplication.GetDataToPaste
  36456. TApplication.GetEvent
  36457. TApplication.GetFrontWindow
  36458. TApplication.GetInspectorName
  36459. TApplication.GetLastCommand
  36460. TApplication.GetNextCommand
  36461. TApplication.GetRsrcWindow
  36462. TApplication.HandleActivateEvent
  36463. TApplication.HandleAlienEvent
  36464. TApplication.HandleDiskEvent
  36465. TApplication.HandleEvent
  36466. TApplication.HandleFinderRequest
  36467. TApplication.HandleKeyDownEvent
  36468. TApplication.HandleMouseDown
  36469. TApplication.HandleMouseUp
  36470. TApplication.HandleSystemEvent
  36471. TApplication.HandleUpdateEvent
  36472. TApplication.IApplication
  36473. TApplication.IdentifySoftware
  36474. TApplication.Idle
  36475. TApplication.InModalMenuState
  36476. TApplication.InModalState
  36477. TApplication.InstallCohandler
  36478. TApplication.InvalidateCursorRgn
  36479. TApplication.InvalidateFocus
  36480. TApplication.IsDeskAccessory
  36481. TApplication.KeyEventToComponents
  36482. TApplication.KindOfDocument
  36483. TApplication.LaunchClipboard
  36484. TApplication.MainEventLoop
  36485. TApplication.MakeClipboardWindow
  36486. TApplication.MakeViewForAlienClipboard
  36487. TApplication.MenuEvent
  36488. TApplication.OpenDeskAccessory
  36489. TApplication.OpenNew
  36490. TApplication.OpenOld
  36491. TApplication.PerformCommand
  36492. TApplication.PollEvent
  36493. TApplication.PostCommand
  36494. TApplication.PostHandleEvent
  36495. TApplication.PrintDocument
  36496. TApplication.ReadFromDeskScrap
  36497. TApplication.RegainControl
  36498. TApplication.ReportEvent
  36499. TApplication.Run
  36500. TApplication.SelectWMgrWindow
  36501. TApplication.SetClipView
  36502. TApplication.SetTarget
  36503. TApplication.SetUndoText
  36504. TApplication.SetupTheMenus
  36505. TApplication.SFGetParms
  36506. TApplication.ShowError
  36507. TApplication.SpaceIsLow
  36508. TApplication.SwapClipViews
  36509. TApplication.TrackCursor
  36510. TApplication.TrackMouse
  36511. TApplication.UpdateAllWindows
  36512. TApplication.WMgrToWindow
  36513. TAssociation
  36514. TAssociation.EachEntryDo
  36515. TAssociation.EntryWithKey
  36516. TAssociation.EntryWithValue
  36517. TAssociation.fEntries
  36518. TAssociation.Fields
  36519. TAssociation.FirstEntryThat
  36520. TAssociation.Free
  36521. TAssociation.IAssociation
  36522. TAssociation.InsertEntry
  36523. TAssociation.KeyAt
  36524. TAssociation.RemoveKeyAt
  36525. TAssociation.RemoveValueAt
  36526. TAssociation.ValueAt
  36527. TButton
  36528. TButton.Fields
  36529. TButton.IButton
  36530. TButton.IRes
  36531. TButton.WRes
  36532. TButton.WriteRes
  36533. TCellSelectCommand
  36534. TCellSelectCommand.ComputeAnchorCell
  36535. TCellSelectCommand.ComputeNewSelection
  36536. TCellSelectCommand.DoIt
  36537. TCellSelectCommand.fAnchorCell
  36538. TCellSelectCommand.fCmdKey
  36539. TCellSelectCommand.fDeselecting
  36540. TCellSelectCommand.fDifference
  36541. TCellSelectCommand.fGridView
  36542. TCellSelectCommand.Fields
  36543. TCellSelectCommand.fPrevCell
  36544. TCellSelectCommand.fPrevSelection
  36545. TCellSelectCommand.Free
  36546. TCellSelectCommand.fShiftKey
  36547. TCellSelectCommand.fThisSelection
  36548. TCellSelectCommand.HighlightNewSelection
  36549. TCellSelectCommand.ICellSelectCommand
  36550. TCellSelectCommand.TrackFeedback
  36551. TCellSelectCommand.TrackMouse
  36552. TCheckBox
  36553. TCheckBox.DoChoice
  36554. TCheckBox.Fields
  36555. TCheckBox.ICheckBox
  36556. TCheckBox.IRes
  36557. TCheckBox.IsOn
  36558. TCheckBox.SetState
  36559. TCheckBox.Toggle
  36560. TCheckBox.ToggleIf
  36561. TCheckBox.WRes
  36562. TCheckBox.WriteRes
  36563. TClassesByID
  36564. TClassesByID.Compare
  36565. TClassesByID.Fields
  36566. TClassesByID.IClassesByID
  36567. TClassesByName
  36568. TClassesByName.Compare
  36569. TClassesByName.Fields
  36570. TClassesByName.IClassesByName
  36571. TClassListView
  36572. TClassListView.DrawItem
  36573. TClassListView.Fields
  36574. TClassListView.fInspectWindow
  36575. TClassListView.IClassListView
  36576. TClassListView.IRes
  36577. TClassListView.SelectItem
  36578. TCloseWindowCommand
  36579. TCloseWindowCommand.DoIt
  36580. TCloseWindowCommand.Fields
  36581. TCloseWindowCommand.ICloseWindowCommand
  36582. TCluster
  36583. TCluster.DoChoice
  36584. TCluster.Draw
  36585. TCluster.fDataHandle
  36586. TCluster.Fields
  36587. TCluster.fIndex
  36588. TCluster.Free
  36589. TCluster.fRsrcID
  36590. TCluster.GetLabel
  36591. TCluster.ICluster
  36592. TCluster.IRes
  36593. TCluster.ReleaseLabel
  36594. TCluster.ReportCurrent
  36595. TCluster.SetLabel
  36596. TCluster.WRes
  36597. TCluster.WriteRes
  36598. TColumnSelectCommand
  36599. TColumnSelectCommand.ComputeAnchorCell
  36600. TColumnSelectCommand.ComputeNewSelection
  36601. TColumnSelectCommand.Fields
  36602. TColumnSelectCommand.IColumnSelectCommand
  36603. TCommand
  36604. TCommand.AutoScroll
  36605. TCommand.Commit
  36606. TCommand.DoIt
  36607. TCommand.fCanUndo
  36608. TCommand.fCausesChange
  36609. TCommand.fChangedDocument
  36610. TCommand.fChangesClipboard
  36611. TCommand.fCmdDone
  36612. TCommand.fCmdNumber
  36613. TCommand.fConstrainsMouse
  36614. TCommand.fFreeOnCompletion
  36615. TCommand.Fields
  36616. TCommand.fInitialPt
  36617. TCommand.fPriority
  36618. TCommand.fReadyToExecute
  36619. TCommand.fRecurring
  36620. TCommand.fScroller
  36621. TCommand.fTrackNonMovement
  36622. TCommand.fTracksMouse
  36623. TCommand.fView
  36624. TCommand.fViewConstrain
  36625. TCommand.ICommand
  36626. TCommand.IsDoneTracking
  36627. TCommand.IsReadyToExecute
  36628. TCommand.RedoIt
  36629. TCommand.TrackConstrain
  36630. TCommand.TrackFeedback
  36631. TCommand.TrackMouse
  36632. TCommand.UndoIt
  36633. TCommandList
  36634. TCommandList.Compare
  36635. TCommandList.Fields
  36636. TCommandList.ICommandList
  36637. TCommandList.Insert
  36638. TControl
  36639. TControl.ComputeSize
  36640. TControl.ContainsMouse
  36641. TControl.ControlArea
  36642. TControl.Dim
  36643. TControl.DimState
  36644. TControl.DoMouseCommand
  36645. TControl.Draw
  36646. TControl.fAdornment
  36647. TControl.fDefChoice
  36648. TControl.fDimmed
  36649. TControl.fDismissesDialog
  36650. TControl.fHilite
  36651. TControl.Fields
  36652. TControl.fInset
  36653. TControl.Flash
  36654. TControl.Focus
  36655. TControl.fPenSize
  36656. TControl.fSizeable
  36657. TControl.fTextStyle
  36658. TControl.Hilite
  36659. TControl.HiliteState
  36660. TControl.IControl
  36661. TControl.Inset
  36662. TControl.InstallColor
  36663. TControl.InstallTextStyle
  36664. TControl.IRes
  36665. TControl.IsDimmed
  36666. TControl.Resize
  36667. TControl.SetInset
  36668. TControl.TrackFeedback
  36669. TControl.TrackMouse
  36670. TControl.Validate
  36671. TControl.WRes
  36672. TControl.WriteRes
  36673. TControlTracker
  36674. TControlTracker.fControl
  36675. TControlTracker.Fields
  36676. TControlTracker.IControlTracker
  36677. TCtlMgr
  36678. TCtlMgr.BeInPort
  36679. TCtlMgr.CreateCMgrControl
  36680. TCtlMgr.DimState
  36681. TCtlMgr.DoMouseCommand
  36682. TCtlMgr.Draw
  36683. TCtlMgr.fBitsToShift
  36684. TCtlMgr.fCMgrControl
  36685. TCtlMgr.Fields
  36686. TCtlMgr.fLongMax
  36687. TCtlMgr.fLongMin
  36688. TCtlMgr.fLongVal
  36689. TCtlMgr.Free
  36690. TCtlMgr.GetLongMax
  36691. TCtlMgr.GetLongMin
  36692. TCtlMgr.GetLongVal
  36693. TCtlMgr.GetMax
  36694. TCtlMgr.GetMin
  36695. TCtlMgr.GetText
  36696. TCtlMgr.GetVal
  36697. TCtlMgr.HiliteState
  36698. TCtlMgr.ICtlMgr
  36699. TCtlMgr.IRes
  36700. TCtlMgr.IsCMgrVisible
  36701. TCtlMgr.Resize
  36702. TCtlMgr.SetCMgrVisibility
  36703. TCtlMgr.SetLongMax
  36704. TCtlMgr.SetLongMin
  36705. TCtlMgr.SetLongVal
  36706. TCtlMgr.SetLongValues
  36707. TCtlMgr.SetMax
  36708. TCtlMgr.SetMin
  36709. TCtlMgr.SetText
  36710. TCtlMgr.SetVal
  36711. TCtlMgr.SetValues
  36712. TCtlMgr.WhileFocused
  36713. TCtlMgr.WriteRes
  36714. TDebugApplication
  36715. TDebugApplication.DoMenuCommand
  36716. TDebugApplication.HandleAlienEvent
  36717. TDebugApplication.HandleEvent
  36718. TDebugApplication.HandleKeyDownEvent
  36719. TDebugApplication.HandleMouseDown
  36720. TDebugApplication.HandleSystemEvent
  36721. TDebugApplication.HandleUpdateEvent
  36722. TDebugApplication.IDebugApplication
  36723. TDebugApplication.MenuEvent
  36724. TDebugApplication.PollEvent
  36725. TDebugApplication.PostHandleEvent
  36726. TDebugApplication.WMgrToWindow
  36727. TDebugCommand
  36728. TDebugCommand.DoIt
  36729. TDebugCommand.Fields
  36730. TDebugCommand.IDebugCommand
  36731. TDeskScrapView
  36732. TDeskScrapView.CalcMinSize
  36733. TDeskScrapView.CheckScrapContents
  36734. TDeskScrapView.Draw
  36735. TDeskScrapView.fDataHandle
  36736. TDeskScrapView.fHavePicture
  36737. TDeskScrapView.fHaveText
  36738. TDeskScrapView.Fields
  36739. TDeskScrapView.Free
  36740. TDeskScrapView.fScrapCount
  36741. TDeskScrapView.GetInspectorName
  36742. TDeskScrapView.IDeskScrapView
  36743. TDeskScrapView.IRes
  36744. TDeskScrapView.SuperViewChangedSize
  36745. TDeskScrapView.WriteToDeskScrap
  36746. TDialogTEView
  36747. TDialogTEView.ComputeSize
  36748. TDialogTEView.fEditText
  36749. TDialogTEView.Fields
  36750. TDialogTEView.Free
  36751. TDialogTEView.fScroller
  36752. TDialogTEView.IDialogTEView
  36753. TDialogTEView.InstallEditText
  36754. TDialogTEView.InstallSelection
  36755. TDialogTEView.IRes
  36756. TDialogView
  36757. TDialogView.CanDismiss
  36758. TDialogView.CantDeselect
  36759. TDialogView.Close
  36760. TDialogView.DeselectCurrentEditText
  36761. TDialogView.DismissDialog
  36762. TDialogView.DoChoice
  36763. TDialogView.DoCommandKey
  36764. TDialogView.DoKeyCommand
  36765. TDialogView.DoOpen
  36766. TDialogView.DoSelectEditText
  36767. TDialogView.EachEditText
  36768. TDialogView.fCancelItem
  36769. TDialogView.fCurrentEditText
  36770. TDialogView.fDefaultItem
  36771. TDialogView.fDismissed
  36772. TDialogView.fDismisser
  36773. TDialogView.Fields
  36774. TDialogView.fParamTxt
  36775. TDialogView.Free
  36776. TDialogView.fTEView
  36777. TDialogView.GetDialogView
  36778. TDialogView.IDialogView
  36779. TDialogView.IRes
  36780. TDialogView.MakeTEView
  36781. TDialogView.Open
  36782. TDialogView.ParamTxt
  36783. TDialogView.PoseModally
  36784. TDialogView.ReplaceText
  36785. TDialogView.SelectEditText
  36786. TDialogView.SurveyEditText
  36787. TDialogView.Tab
  36788. TDialogView.WRes
  36789. TDialogView.WriteRes
  36790. TDocument
  36791. TDocument.Abandon
  36792. TDocument.AboutToSave
  36793. TDocument.AddView
  36794. TDocument.AddWindow
  36795. TDocument.CheckDiskFile
  36796. TDocument.Close
  36797. TDocument.CloseView
  36798. TDocument.DeleteView
  36799. TDocument.DeleteWindow
  36800. TDocument.DiskFileChanged
  36801. TDocument.DoInitialState
  36802. TDocument.DoMakeViews
  36803. TDocument.DoMakeWindows
  36804. TDocument.DoMenuCommand
  36805. TDocument.DoNeedDiskSpace
  36806. TDocument.DoRead
  36807. TDocument.DoSetupMenus
  36808. TDocument.DoWrite
  36809. TDocument.fChangeCount
  36810. TDocument.fCommitOnSave
  36811. TDocument.fCreator
  36812. TDocument.fDataOpen
  36813. TDocument.fDataPerm
  36814. TDocument.fDataRefNum
  36815. TDocument.fDocPrintHandler
  36816. TDocument.fFileType
  36817. TDocument.Fields
  36818. TDocument.fModDate
  36819. TDocument.ForAllViewsDo
  36820. TDocument.ForAllWindowsDo
  36821. TDocument.fPrintInfo
  36822. TDocument.Free
  36823. TDocument.FreeData
  36824. TDocument.FreeFile
  36825. TDocument.FreeFromClipboard
  36826. TDocument.fReopenAlert
  36827. TDocument.fRsrcOpen
  36828. TDocument.fRsrcPerm
  36829. TDocument.fRsrcRefNum
  36830. TDocument.fSaveExists
  36831. TDocument.fSaveInPlace
  36832. TDocument.fSavePrintInfo
  36833. TDocument.fSharePrintInfo
  36834. TDocument.fTitle
  36835. TDocument.fUsesDataFork
  36836. TDocument.fUsesRsrcFork
  36837. TDocument.fViewList
  36838. TDocument.fVolRefNum
  36839. TDocument.fWindowList
  36840. TDocument.GetChangeCount
  36841. TDocument.GetInspectorName
  36842. TDocument.GetSaveInfo
  36843. TDocument.GetTempName
  36844. TDocument.HandlesPrintingCommands
  36845. TDocument.IDocument
  36846. TDocument.MakeNewCopy
  36847. TDocument.OpenAFile
  36848. TDocument.OpenAgain
  36849. TDocument.PoseSaveDialog
  36850. TDocument.ReadFromFile
  36851. TDocument.RequestFileName
  36852. TDocument.Revert
  36853. TDocument.Save
  36854. TDocument.SaveAgain
  36855. TDocument.SavedOn
  36856. TDocument.SaveInPlace
  36857. TDocument.SaveViaTemp
  36858. TDocument.SetChangeCount
  36859. TDocument.SetTitle
  36860. TDocument.SFPutParms
  36861. TDocument.ShowReverted
  36862. TDocument.ShowWindows
  36863. TDocument.UntitledName
  36864. TDynamicArray
  36865. TDynamicArray.ComputeAddress
  36866. TDynamicArray.DeleteElementsAt
  36867. TDynamicArray.DynamicFields
  36868. TDynamicArray.EachElementDoTil
  36869. TDynamicArray.fAllocatedSize
  36870. TDynamicArray.fAllocationIncrement
  36871. TDynamicArray.fClassSize
  36872. TDynamicArray.fElementSize
  36873. TDynamicArray.fElementSizeShift
  36874. TDynamicArray.fFreeRequested
  36875. TDynamicArray.Fields
  36876. TDynamicArray.Free
  36877. TDynamicArray.fSize
  36878. TDynamicArray.GetElementsAt
  36879. TDynamicArray.GetSize
  36880. TDynamicArray.IDynamicArray
  36881. TDynamicArray.InsertElementsBefore
  36882. TDynamicArray.IsEmpty
  36883. TDynamicArray.Merge
  36884. TDynamicArray.ReplaceElementsAt
  36885. TDynamicArray.SetArraySize
  36886. TEditText
  36887. TEditText.ChangeWrap
  36888. TEditText.DoSubstitution
  36889. TEditText.Draw
  36890. TEditText.fControlChars
  36891. TEditText.Fields
  36892. TEditText.fMaxChars
  36893. TEditText.Free
  36894. TEditText.fTEView
  36895. TEditText.GetText
  36896. TEditText.HandleMouseDown
  36897. TEditText.IEditText
  36898. TEditText.ImageText
  36899. TEditText.InstallSelection
  36900. TEditText.IRes
  36901. TEditText.RestartEdit
  36902. TEditText.SetJustification
  36903. TEditText.SetSelection
  36904. TEditText.SetText
  36905. TEditText.StartEdit
  36906. TEditText.StopEdit
  36907. TEditText.Validate
  36908. TEditText.WRes
  36909. TEditText.WriteRes
  36910. teJustSystem
  36911. TEntriesList
  36912. TEntriesList.Compare
  36913. TEntriesList.Fields
  36914. TEntriesList.IEntriesList
  36915. TEntry
  36916. TEntry.Fields
  36917. TEntry.fKey
  36918. TEntry.Free
  36919. TEntry.fValue
  36920. TEntry.IEntry
  36921. TEntry.SetValue
  36922. TestRecoverHandle
  36923. TEvtHandler
  36924. TEvtHandler.AddHandler
  36925. TEvtHandler.CommitLastCommand
  36926. TEvtHandler.CreateAView
  36927. TEvtHandler.DoChoice
  36928. TEvtHandler.DoCommandKey
  36929. TEvtHandler.DoCreateViews
  36930. TEvtHandler.DoHandleEvent
  36931. TEvtHandler.DoHelp
  36932. TEvtHandler.DoIdle
  36933. TEvtHandler.DoKeyCommand
  36934. TEvtHandler.DoMenuCommand
  36935. TEvtHandler.DoMultiClick
  36936. TEvtHandler.DoSetupMenus
  36937. TEvtHandler.EachHandler
  36938. TEvtHandler.fIdleFreq
  36939. TEvtHandler.Fields
  36940. TEvtHandler.FirstHandlerThat
  36941. TEvtHandler.fLastIdle
  36942. TEvtHandler.fNextHandler
  36943. TEvtHandler.Free
  36944. TEvtHandler.GetLastCommand
  36945. TEvtHandler.GetNextCommand
  36946. TEvtHandler.HandlesPrintingCommands
  36947. TEvtHandler.IdentifySoftware
  36948. TEvtHandler.IEvtHandler
  36949. TEvtHandler.InstallSelection
  36950. TEvtHandler.KeyEventToComponents
  36951. TEvtHandler.LookupSymbol
  36952. TEvtHandler.PerformCommand
  36953. TEvtHandler.PostCommand
  36954. TEvtHandler.RemoveHandler
  36955. TEvtHandler.SetIdleFreq
  36956. TEvtHandler.Terminate
  36957. TextStyleFields
  36958. TGridView
  36959. TGridView.AdornCol
  36960. TGridView.AdornRow
  36961. TGridView.AllCellsDo
  36962. TGridView.CalcMinSize
  36963. TGridView.CanSelectCell
  36964. TGridView.CellsToPixels
  36965. TGridView.CellToVRect
  36966. TGridView.ColToVRect
  36967. TGridView.DelColAt
  36968. TGridView.DelColFirst
  36969. TGridView.DelColLast
  36970. TGridView.DelRowAt
  36971. TGridView.DelRowFirst
  36972. TGridView.DelRowLast
  36973. TGridView.DoHighlightSelection
  36974. TGridView.DoMouseCommand
  36975. TGridView.Draw
  36976. TGridView.DrawCell
  36977. TGridView.DrawRangeOfCells
  36978. TGridView.EachCellDo
  36979. TGridView.EachInRgn
  36980. TGridView.EachSelectedCellDo
  36981. TGridView.fAdornCols
  36982. TGridView.fAdornRows
  36983. TGridView.fColInset
  36984. TGridView.fColWidths
  36985. TGridView.fHLRegion
  36986. TGridView.Fields
  36987. TGridView.FirstSelectedCell
  36988. TGridView.fNumOfCols
  36989. TGridView.fNumOfRows
  36990. TGridView.Free
  36991. TGridView.fRowHeights
  36992. TGridView.fRowInset
  36993. TGridView.fSelections
  36994. TGridView.fSingleSelection
  36995. TGridView.fTempSelections
  36996. TGridView.GetColWidth
  36997. TGridView.GetRowHeight
  36998. TGridView.HighlightCells
  36999. TGridView.IdentifyPoint
  37000. TGridView.IGridView
  37001. TGridView.InsColBefore
  37002. TGridView.InsColFirst
  37003. TGridView.InsColLast
  37004. TGridView.InsRowBefore
  37005. TGridView.InsRowFirst
  37006. TGridView.InsRowLast
  37007. TGridView.InvalidateCell
  37008. TGridView.InvalidateSelection
  37009. TGridView.IRes
  37010. TGridView.IsCellSelected
  37011. TGridView.LastSelectedCell
  37012. TGridView.RowToVRect
  37013. TGridView.ScrollSelectionIntoView
  37014. TGridView.SelectCell
  37015. TGridView.SetColWidth
  37016. TGridView.SetEmptySelection
  37017. TGridView.SetRowHeight
  37018. TGridView.SetSelection
  37019. TGridView.SetSelectionRect
  37020. TGridView.SetSingleSelection
  37021. TGridView.VPointToCell
  37022. TGridView.VPointToLastCell
  37023. TGridView.WRes
  37024. TGridView.WriteRes
  37025. TIcon
  37026. TIcon.Draw
  37027. TIcon.fDataHandle
  37028. TIcon.Fields
  37029. TIcon.fPreferColor
  37030. TIcon.Free
  37031. TIcon.fRsrcID
  37032. TIcon.IIcon
  37033. TIcon.IRes
  37034. TIcon.ReleaseIcon
  37035. TIcon.SetIcon
  37036. TIcon.WRes
  37037. TIcon.WriteRes
  37038. TInspector
  37039. TInspector.AddObject
  37040. TInspector.AddObjectList
  37041. TInspector.DoSetupMenus
  37042. TInspector.fClassesByID
  37043. TInspector.fClassesByName
  37044. TInspector.Fields
  37045. TInspector.Free
  37046. TInspector.fStaggerCount
  37047. TInspector.fWindowCount
  37048. TInspector.GetObjectList
  37049. TInspector.IInspector
  37050. TInspector.MakeWindow
  37051. TInspector.RemoveObject
  37052. TInspectorCommand
  37053. TInspectorCommand.DoIt
  37054. TInspectorCommand.Fields
  37055. TInspectorCommand.IInspectorCommand
  37056. TInspectWindow
  37057. TInspectWindow.CloseByUser
  37058. TInspectWindow.Draw
  37059. TInspectWindow.fClassListView
  37060. TInspectWindow.Fields
  37061. TInspectWindow.fObjectView
  37062. TInspectWindow.fObjListView
  37063. TInspectWindow.IInspectWindow
  37064. TInspectWindow.InsertClass
  37065. TInspectWindow.IRes
  37066. TInspectWindow.Resize
  37067. TInspectWindow.SelectObject
  37068. TInspectWindow.SetNumberOfClasses
  37069. TInspectWindow.SetTitleForDoc
  37070. TList
  37071. TList.At
  37072. TList.AtDelete
  37073. TList.AtPut
  37074. TList.Delete
  37075. TList.DeleteAll
  37076. TList.DynamicFields
  37077. TList.Each
  37078. TList.Fields
  37079. TList.First
  37080. TList.FirstThat
  37081. TList.fObjClassID
  37082. TList.FreeAll
  37083. TList.FreeList
  37084. TList.GetEqualItemNo
  37085. TList.GetInspectorName
  37086. TList.GetSameItemNo
  37087. TList.IList
  37088. TList.Insert
  37089. TList.InsertBefore
  37090. TList.InsertFirst
  37091. TList.InsertLast
  37092. TList.IterateTil
  37093. TList.Last
  37094. TList.LastThat
  37095. TList.Pop
  37096. TList.Push
  37097. TList.SetEltType
  37098. TList.SetEltTypeID
  37099. TList.SortBy
  37100. TListView
  37101. TListView.CalcMinSize
  37102. TListView.ChangeSelection
  37103. TListView.DeleteItem
  37104. TListView.DoHighlightSelection
  37105. TListView.DoMouseCommand
  37106. TListView.Draw
  37107. TListView.DrawItem
  37108. TListView.fCurrentSelection
  37109. TListView.Fields
  37110. TListView.fItemHeight
  37111. TListView.fLineAscent
  37112. TListView.fNumberOfItems
  37113. TListView.fTextStyle
  37114. TListView.IListView
  37115. TListView.InsertItem
  37116. TListView.IRes
  37117. TListView.ItemToVRect
  37118. TListView.RevealItem
  37119. TListView.SelectItem
  37120. TListView.SetNumberOfItems
  37121. TListView.SetPen
  37122. TListView.SetStyle
  37123. TListView.VPointToItem
  37124. TNewDocCommand
  37125. TNewDocCommand.DoIt
  37126. TNewDocCommand.Fields
  37127. TNewDocCommand.INewDocCommand
  37128. TNoChangesCommand
  37129. TNoChangesCommand.Fields
  37130. TNoChangesCommand.INoChangesCommand
  37131. TNumberText
  37132. TNumberText.Fields
  37133. TNumberText.fMaximum
  37134. TNumberText.fMinimum
  37135. TNumberText.GetValue
  37136. TNumberText.INumberText
  37137. TNumberText.IRes
  37138. TNumberText.SetValue
  37139. TNumberText.Validate
  37140. TNumberText.WRes
  37141. TNumberText.WriteRes
  37142. TObject
  37143. TObject.Clone
  37144. TObject.DynamicFields
  37145. TObject.Fields
  37146. TObject.ForAllSubClassesDo
  37147. TObject.ForAllSuperClassesDo
  37148. TObject.Free
  37149. TObject.GetClass
  37150. TObject.GetClassName
  37151. TObject.GetClassSize
  37152. TObject.GetDynamicPtr
  37153. TObject.GetDynamicSize
  37154. TObject.GetInspectorName
  37155. TObject.GetInstanceSize
  37156. TObject.GetSuperClass
  37157. TObject.Initialize
  37158. TObject.Inspect
  37159. TObject.IObject
  37160. TObject.IsMemberClass
  37161. TObject.IsSameClass
  37162. TObject.Lock
  37163. TObject.SetDynamicSize
  37164. TObject.SetInstanceSize
  37165. TObject.ShallowClone
  37166. TObject.ShallowFree
  37167. TObjectList
  37168. TObjectList.AddObject
  37169. TObjectList.Fields
  37170. TObjectList.IObjectList
  37171. TObjectList.RemoveObject
  37172. TObjectView
  37173. TObjectView.ChangeSelection
  37174. TObjectView.DoMouseCommand
  37175. TObjectView.Draw
  37176. TObjectView.Fields
  37177. TObjectView.fInspectWindow
  37178. TObjectView.FirstFieldThat
  37179. TObjectView.fLockState
  37180. TObjectView.fObject
  37181. TObjectView.fType
  37182. TObjectView.InspectControlHandle
  37183. TObjectView.InspectGrafPtr
  37184. TObjectView.InspectHandle
  37185. TObjectView.InspectRgnHandle
  37186. TObjectView.InspectTEHandle
  37187. TObjectView.InspectWindowPtr
  37188. TObjectView.InstallObject
  37189. TObjectView.IObjectView
  37190. TObjectView.IRes
  37191. TObjectView.LockObject
  37192. TObjectView.Resize
  37193. TObjectView.SelectField
  37194. TObjectView.SuperViewChangedSize
  37195. TObjectView.UnlockObject
  37196. TObjListView
  37197. TObjListView.DrawItem
  37198. TObjListView.Fields
  37199. TObjListView.fInspectWindow
  37200. TObjListView.fObjectList
  37201. TObjListView.InstallObjectList
  37202. TObjListView.IObjListView
  37203. TObjListView.IRes
  37204. TObjListView.SelectItem
  37205. ToggleCmd
  37206. TOldDocCommand
  37207. TOldDocCommand.DoIt
  37208. TOldDocCommand.Fields
  37209. TOldDocCommand.IOldDocCommand
  37210. TotalTempSize
  37211. TPattern
  37212. TPattern.Draw
  37213. TPattern.fDataHandle
  37214. TPattern.Fields
  37215. TPattern.fPreferColor
  37216. TPattern.Free
  37217. TPattern.fRsrcID
  37218. TPattern.IPattern
  37219. TPattern.IRes
  37220. TPattern.ReleasePattern
  37221. TPattern.SetPattern
  37222. TPattern.WRes
  37223. TPattern.WriteRes
  37224. TPicture
  37225. TPicture.Draw
  37226. TPicture.fDataHandle
  37227. TPicture.Fields
  37228. TPicture.Free
  37229. TPicture.fRsrcID
  37230. TPicture.IPicture
  37231. TPicture.IRes
  37232. TPicture.ReleasePicture
  37233. TPicture.SetPicture
  37234. TPicture.WRes
  37235. TPicture.WriteRes
  37236. TPopup
  37237. TPopup.AdjustBotRight
  37238. TPopup.CalcLabelRect
  37239. TPopup.CalcMenuRect
  37240. TPopup.DoMouseCommand
  37241. TPopup.Draw
  37242. TPopup.DrawLabel
  37243. TPopup.DrawPopupBox
  37244. TPopup.fCurrentItem
  37245. TPopup.Fields
  37246. TPopup.fItemOffset
  37247. TPopup.fMenuHandle
  37248. TPopup.fMenuID
  37249. TPopup.Free
  37250. TPopup.fRsrcID
  37251. TPopup.GetCurrentItem
  37252. TPopup.GetItemText
  37253. TPopup.IPopup
  37254. TPopup.IRes
  37255. TPopup.ReleasePopup
  37256. TPopup.SetCurrentItem
  37257. TPopup.SetPopup
  37258. TPopup.WRes
  37259. TPopup.WriteRes
  37260. TPrintCommand
  37261. TPrintCommand.DoIt
  37262. TPrintCommand.Fields
  37263. TPrintCommand.fStdPrintHandler
  37264. TPrintCommand.IPrintCommand
  37265. TPrintHandler
  37266. TPrintHandler.BreakFollowing
  37267. TPrintHandler.CalcPageStrips
  37268. TPrintHandler.CalcViewPerPage
  37269. TPrintHandler.CheckPrinter
  37270. TPrintHandler.DrawPageBreak
  37271. TPrintHandler.DrawPrintFeedback
  37272. TPrintHandler.fDeviceRes
  37273. TPrintHandler.fDocument
  37274. TPrintHandler.fFocusedPage
  37275. TPrintHandler.Fields
  37276. TPrintHandler.FocusOnInterior
  37277. TPrintHandler.fView
  37278. TPrintHandler.fViewPerPage
  37279. TPrintHandler.GetInspectorName
  37280. TPrintHandler.IPrintHandler
  37281. TPrintHandler.LocatePageInterior
  37282. TPrintHandler.MaxPageNumber
  37283. TPrintHandler.Print
  37284. TPrintHandler.PrinterChanged
  37285. TPrintHandler.RedoPageBreaks
  37286. TPrintHandler.Reset
  37287. TPrintHandler.SetDefaultPrintInfo
  37288. TPrintHandler.SetPageInterior
  37289. TPrintHandler.SetPageOffset
  37290. TPrintHandler.SetupForFinder
  37291. TPrintStyleChangeCommand
  37292. TPrintStyleChangeCommand.DoIt
  37293. TPrintStyleChangeCommand.Fields
  37294. TPrintStyleChangeCommand.fNewHPrint
  37295. TPrintStyleChangeCommand.fOldHPrint
  37296. TPrintStyleChangeCommand.Free
  37297. TPrintStyleChangeCommand.fStdPrintHandler
  37298. TPrintStyleChangeCommand.IPrintStyleChangeCommand
  37299. TPrintStyleChangeCommand.RedoIt
  37300. TPrintStyleChangeCommand.UndoIt
  37301. TPtrBasedDoublyLinkedList
  37302. TPtrBasedDoublyLinkedList.AppendNode
  37303. TPtrBasedDoublyLinkedList.EachNodeDo
  37304. TPtrBasedDoublyLinkedList.fHeadNodePtr
  37305. TPtrBasedDoublyLinkedList.Fields
  37306. TPtrBasedDoublyLinkedList.fTailNodePtr
  37307. TPtrBasedDoublyLinkedList.IPtrBasedDoublyLinkedList
  37308. TPtrBasedDoublyLinkedList.RemoveNode
  37309. TQuitCommand
  37310. TQuitCommand.DoIt
  37311. TQuitCommand.Fields
  37312. TQuitCommand.IQuitCommand
  37313. TraceMenuName
  37314. TRadio
  37315. TRadio.DoChoice
  37316. TRadio.Fields
  37317. TRadio.IRadio
  37318. TRadio.IRes
  37319. TRadio.IsOn
  37320. TRadio.SetState
  37321. TRadio.Toggle
  37322. TRadio.ToggleIf
  37323. TRadio.WRes
  37324. TRadio.WriteRes
  37325. TrapExists
  37326. TrcEnable
  37327. TRCSelectCommand
  37328. TRCSelectCommand.ComputeNewSelection
  37329. TRCSelectCommand.Fields
  37330. TRCSelectCommand.TrackMouse
  37331. TRevertDocCommand
  37332. TRevertDocCommand.DoIt
  37333. TRevertDocCommand.Fields
  37334. TRevertDocCommand.IRevertDocCommand
  37335. TRowSelectCommand
  37336. TRowSelectCommand.ComputeAnchorCell
  37337. TRowSelectCommand.ComputeNewSelection
  37338. TRowSelectCommand.Fields
  37339. TRowSelectCommand.IRowSelectCommand
  37340. TRunArray
  37341. TRunArray.DeleteItems
  37342. TRunArray.fChunks
  37343. TRunArray.Fields
  37344. TRunArray.FindChunk
  37345. TRunArray.FindItem
  37346. TRunArray.fLastChunk
  37347. TRunArray.fLastIndex
  37348. TRunArray.fLastItem
  37349. TRunArray.fLastTotal
  37350. TRunArray.fNoOfChunks
  37351. TRunArray.fNoOfItems
  37352. TRunArray.Free
  37353. TRunArray.fTotal
  37354. TRunArray.GetValue
  37355. TRunArray.InsertItems
  37356. TRunArray.IRunArray
  37357. TRunArray.SumValues
  37358. TSaveDocCommand
  37359. TSaveDocCommand.DoIt
  37360. TSaveDocCommand.Fields
  37361. TSaveDocCommand.ISaveDocCommand
  37362. TScrollBar
  37363. TScrollBar.ActionProc
  37364. TScrollBar.DeltaValue
  37365. TScrollBar.DoMouseCommand
  37366. TScrollBar.fBitsToShift
  37367. TScrollBar.fDirection
  37368. TScrollBar.Fields
  37369. TScrollBar.fLongMax
  37370. TScrollBar.fLongMin
  37371. TScrollBar.fLongVal
  37372. TScrollBar.IRes
  37373. TScrollBar.IScrollBar
  37374. TScrollBar.TrackScrollBar
  37375. TScrollBar.WRes
  37376. TScrollBar.WriteRes
  37377. TScroller
  37378. TScroller.AddSubview
  37379. TScroller.AdjustScrollBars
  37380. TScroller.AutoScroll
  37381. TScroller.CreateScrollBar
  37382. TScroller.CreateTemplateScrollBar
  37383. TScroller.DoKeyCommand
  37384. TScroller.DoScroll
  37385. TScroller.fConstrain
  37386. TScroller.Fields
  37387. TScroller.fMaxTranslation
  37388. TScroller.Focus
  37389. TScroller.ForceRedraw
  37390. TScroller.Free
  37391. TScroller.fRespondsToFunctionKeys
  37392. TScroller.fSBarOffsets
  37393. TScroller.fScrollBars
  37394. TScroller.fScrollLimit
  37395. TScroller.fScrollUnit
  37396. TScroller.fTranslation
  37397. TScroller.GetExtent
  37398. TScroller.GetScroller
  37399. TScroller.HaveScrollBar
  37400. TScroller.IRes
  37401. TScroller.IScroller
  37402. TScroller.LocalToSuper
  37403. TScroller.Locate
  37404. TScroller.RemoveSubview
  37405. TScroller.Resize
  37406. TScroller.RevealRect
  37407. TScroller.ScrollBy
  37408. TScroller.ScrollDraw
  37409. TScroller.ScrollRelative
  37410. TScroller.ScrollStep
  37411. TScroller.ScrollTo
  37412. TScroller.SetScrollLimits
  37413. TScroller.SetScrollParameters
  37414. TScroller.SubViewChangedSize
  37415. TScroller.SuperToLocal
  37416. TScroller.WRes
  37417. TScroller.WriteRes
  37418. TSortedList
  37419. TSortedList.Compare
  37420. TSortedList.DoSearch
  37421. TSortedList.Fields
  37422. TSortedList.GetEqualItemNo
  37423. TSortedList.Insert
  37424. TSortedList.ISortedList
  37425. TSortedList.Search
  37426. TSortedList.Sort
  37427. TSScrollBar
  37428. TSScrollBar.Activate
  37429. TSScrollBar.AttachScroller
  37430. TSScrollBar.BeInPort
  37431. TSScrollBar.DoMouseCommand
  37432. TSScrollBar.Draw
  37433. TSScrollBar.Fields
  37434. TSScrollBar.Free
  37435. TSScrollBar.fScrollers
  37436. TSScrollBar.IRes
  37437. TSScrollBar.ISScrollBar
  37438. TSScrollBar.TrackScrollBar
  37439. TSScrollBar.WriteRes
  37440. TStaticText
  37441. TStaticText.ChangeWrap
  37442. TStaticText.DoSubstitution
  37443. TStaticText.Draw
  37444. TStaticText.fAutoWrap
  37445. TStaticText.fDataHandle
  37446. TStaticText.Fields
  37447. TStaticText.fIndex
  37448. TStaticText.fJust
  37449. TStaticText.Free
  37450. TStaticText.fRsrcID
  37451. TStaticText.GetText
  37452. TStaticText.ImageText
  37453. TStaticText.IRes
  37454. TStaticText.IStaticText
  37455. TStaticText.ReleaseText
  37456. TStaticText.SetJustification
  37457. TStaticText.SetText
  37458. TStaticText.WRes
  37459. TStaticText.WriteRes
  37460. TStdPrintHandler
  37461. TStdPrintHandler.AdornPage
  37462. TStdPrintHandler.BanishPrintDialog
  37463. TStdPrintHandler.BreakFollowing
  37464. TStdPrintHandler.CalcPageStrips
  37465. TStdPrintHandler.CalcViewPerPage
  37466. TStdPrintHandler.CheckPrinter
  37467. TStdPrintHandler.ChkPrintErr
  37468. TStdPrintHandler.ChooseSpoolFile
  37469. TStdPrintHandler.ClosePrintShop
  37470. TStdPrintHandler.DoInMacPrint
  37471. TStdPrintHandler.DoMenuCommand
  37472. TStdPrintHandler.DoPrintIdling
  37473. TStdPrintHandler.DoSetupMenus
  37474. TStdPrintHandler.DrawPageBreak
  37475. TStdPrintHandler.DrawPageInterior
  37476. TStdPrintHandler.DrawPrintFeedback
  37477. TStdPrintHandler.EachBreak
  37478. TStdPrintHandler.fFinderJobDialog
  37479. TStdPrintHandler.fFinderSetup
  37480. TStdPrintHandler.fFixedSizePages
  37481. TStdPrintHandler.fHPrint
  37482. TStdPrintHandler.Fields
  37483. TStdPrintHandler.fLastBreak
  37484. TStdPrintHandler.fLastCheckedPrinter
  37485. TStdPrintHandler.fLastPrinterName
  37486. TStdPrintHandler.fLastStrip
  37487. TStdPrintHandler.fMarginRes
  37488. TStdPrintHandler.fMinimalMargins
  37489. TStdPrintHandler.FocusOnBorder
  37490. TStdPrintHandler.FocusOnInterior
  37491. TStdPrintHandler.fPageAreas
  37492. TStdPrintHandler.fPageDirection
  37493. TStdPrintHandler.fPageStrips
  37494. TStdPrintHandler.fPPrPort
  37495. TStdPrintHandler.fPrintDialog
  37496. TStdPrintHandler.fPrinterDev
  37497. TStdPrintHandler.fPrintExtent
  37498. TStdPrintHandler.Free
  37499. TStdPrintHandler.fShowBreaks
  37500. TStdPrintHandler.fSquareDots
  37501. TStdPrintHandler.fStartPage
  37502. TStdPrintHandler.fViewedRect
  37503. TStdPrintHandler.GetBreakCoord
  37504. TStdPrintHandler.GetDocName
  37505. TStdPrintHandler.GetDriverName
  37506. TStdPrintHandler.IdentifySoftware
  37507. TStdPrintHandler.InstallMargins
  37508. TStdPrintHandler.InvalPageFeedback
  37509. TStdPrintHandler.IStdPrintHandler
  37510. TStdPrintHandler.LocatePageInterior
  37511. TStdPrintHandler.MaxPageNumber
  37512. TStdPrintHandler.OneSubJob
  37513. TStdPrintHandler.OpenPrintShop
  37514. TStdPrintHandler.PageToStrip
  37515. TStdPrintHandler.PointToPageStrip
  37516. TStdPrintHandler.PoseJobDialog
  37517. TStdPrintHandler.PosePageSetupDialog
  37518. TStdPrintHandler.PosePrintDialog
  37519. TStdPrintHandler.Print
  37520. TStdPrintHandler.PrinterChanged
  37521. TStdPrintHandler.PrintPage
  37522. TStdPrintHandler.PrintSpoolFile
  37523. TStdPrintHandler.RedoPageBreaks
  37524. TStdPrintHandler.Reset
  37525. TStdPrintHandler.SetDefaultPrintInfo
  37526. TStdPrintHandler.SetMargins
  37527. TStdPrintHandler.SetPage
  37528. TStdPrintHandler.SetPageInterior
  37529. TStdPrintHandler.SetPageOffset
  37530. TStdPrintHandler.SetPrintExtent
  37531. TStdPrintHandler.SetupForFinder
  37532. TStdPrintHandler.SetupPrintOne
  37533. TStdPrintHandler.ShowDocBeingPrinted
  37534. TStdPrintHandler.ShowsOnScreen
  37535. TStdPrintHandler.StripToPage
  37536. TStdPrintHandler.ValidatePrintRecord
  37537. TTECommand
  37538. TTECommand.BanishOldText
  37539. TTECommand.DoIt
  37540. TTECommand.DoMainFunction
  37541. TTECommand.fHTE
  37542. TTECommand.Fields
  37543. TTECommand.fNewEnd
  37544. TTECommand.fNewStart
  37545. TTECommand.fNewStyles
  37546. TTECommand.fNewText
  37547. TTECommand.fOldEnd
  37548. TTECommand.fOldStart
  37549. TTECommand.fOldStyles
  37550. TTECommand.fOldText
  37551. TTECommand.fPadding
  37552. TTECommand.Free
  37553. TTECommand.fStylePad
  37554. TTECommand.fTEView
  37555. TTECommand.fTextPad
  37556. TTECommand.InstallNewText
  37557. TTECommand.ITECommand
  37558. TTECommand.RedoIt
  37559. TTECommand.RemoveAdditions
  37560. TTECommand.RestoreSelection
  37561. TTECommand.ReviveDeletions
  37562. TTECommand.UndoIt
  37563. TTECutCopyCommand
  37564. TTECutCopyCommand.DoIt
  37565. TTECutCopyCommand.fClipCreated
  37566. TTECutCopyCommand.Fields
  37567. TTECutCopyCommand.Free
  37568. TTECutCopyCommand.ITECutCopyCommand
  37569. TTECutCopyCommand.ReviveDeletions
  37570. TTEPasteCommand
  37571. TTEPasteCommand.Fields
  37572. TTEPasteCommand.ITEPasteCommand
  37573. TTEStyleCommand
  37574. TTEStyleCommand.DoIt
  37575. TTEStyleCommand.Fields
  37576. TTEStyleCommand.fMode
  37577. TTEStyleCommand.fNewTextStyle
  37578. TTEStyleCommand.fOldTextStyle
  37579. TTEStyleCommand.InstallManyStyles
  37580. TTEStyleCommand.InstallOneStyle
  37581. TTEStyleCommand.ITEStyleCommand
  37582. TTEStyleCommand.RedoIt
  37583. TTEStyleCommand.UndoIt
  37584. TTETypingCommand
  37585. TTETypingCommand.AddCharacter
  37586. TTETypingCommand.BkSpcLeft
  37587. TTETypingCommand.BkSpcRight
  37588. TTETypingCommand.CompleteTyping
  37589. TTETypingCommand.DoIt
  37590. TTETypingCommand.DoNormalChar
  37591. TTETypingCommand.fCompleted
  37592. TTETypingCommand.fFirstChar
  37593. TTETypingCommand.Fields
  37594. TTETypingCommand.Free
  37595. TTETypingCommand.FwdDelete
  37596. TTETypingCommand.ITETypingCommand
  37597. TTETypingCommand.RedoIt
  37598. TTETypingCommand.UndoIt
  37599. TTEView
  37600. TTEView.AutoScrolling
  37601. TTEView.BeInPort
  37602. TTEView.BeInScroller
  37603. TTEView.CalcMinSize
  37604. TTEView.CalcRealHeight
  37605. TTEView.CalcRealWidth
  37606. TTEView.CalcSelLoc
  37607. TTEView.ChangeWrap
  37608. TTEView.ClikLoop
  37609. TTEView.ComputeSize
  37610. TTEView.ContainsClipType
  37611. TTEView.ContinuousStyle
  37612. TTEView.DoBreakFollowing
  37613. TTEView.DoCalcViewPerPage
  37614. TTEView.DoIdle
  37615. TTEView.DoKeyCommand
  37616. TTEView.DoMakeEditCommand
  37617. TTEView.DoMakeStyleCommand
  37618. TTEView.DoMakeTypingCommand
  37619. TTEView.DoMenuCommand
  37620. TTEView.DoMouseCommand
  37621. TTEView.DoneTyping
  37622. TTEView.DoSetCursor
  37623. TTEView.DoSetPageOffset
  37624. TTEView.DoSetupMenus
  37625. TTEView.Draw
  37626. TTEView.ExtractStyles
  37627. TTEView.ExtractText
  37628. TTEView.fAcceptsChanges
  37629. TTEView.fAutoWrap
  37630. TTEView.fControlChars
  37631. TTEView.fFreeText
  37632. TTEView.fHTE
  37633. TTEView.Fields
  37634. TTEView.fInset
  37635. TTEView.fJustification
  37636. TTEView.fKeyCmdNumber
  37637. TTEView.fLastHeight
  37638. TTEView.fLastLine
  37639. TTEView.fLastPageBreak
  37640. TTEView.fLastWidth
  37641. TTEView.fMaxChars
  37642. TTEView.fMinAhead
  37643. TTEView.Free
  37644. TTEView.fSavedTEHandle
  37645. TTEView.fSpecsChanged
  37646. TTEView.fStyleType
  37647. TTEView.fText
  37648. TTEView.fTextStyle
  37649. TTEView.fTypingCommand
  37650. TTEView.GetPrintExtent
  37651. TTEView.GivePasteData
  37652. TTEView.IdentifySoftware
  37653. TTEView.InstallSelection
  37654. TTEView.IRes
  37655. TTEView.ITEView
  37656. TTEView.MakeTERecord
  37657. TTEView.RecalcText
  37658. TTEView.Resize
  37659. TTEView.ScrollSelectionIntoView
  37660. TTEView.SetJustification
  37661. TTEView.SetOneStyle
  37662. TTEView.SetText
  37663. TTEView.ShowReverted
  37664. TTEView.SpaceForStyles
  37665. TTEView.StuffStyles
  37666. TTEView.StuffTERects
  37667. TTEView.StuffText
  37668. TTEView.SynchView
  37669. TTEView.ViewEnable
  37670. TTEView.WRes
  37671. TTEView.WriteRes
  37672. TTEView.WriteToDeskScrap
  37673. TTextGridView
  37674. TTextGridView.DrawCell
  37675. TTextGridView.Fields
  37676. TTextGridView.fLineAscent
  37677. TTextGridView.fLineHeight
  37678. TTextGridView.Focus
  37679. TTextGridView.fTextStyle
  37680. TTextGridView.GetText
  37681. TTextGridView.IRes
  37682. TTextGridView.ITextGridView
  37683. TTextGridView.SetPen
  37684. TTextGridView.SetUpFont
  37685. TTextGridView.WRes
  37686. TTextGridView.WriteRes
  37687. TTextListView
  37688. TTextListView.AllItemsDo
  37689. TTextListView.CanSelectCell
  37690. TTextListView.CanSelectItem
  37691. TTextListView.DelItemAt
  37692. TTextListView.DelItemFirst
  37693. TTextListView.DelItemLast
  37694. TTextListView.EachItemDo
  37695. TTextListView.EachSelectedItemDo
  37696. TTextListView.Fields
  37697. TTextListView.FirstSelectedItem
  37698. TTextListView.GetItemHeight
  37699. TTextListView.GetItemText
  37700. TTextListView.GetItemWidth
  37701. TTextListView.GetText
  37702. TTextListView.InsItemBefore
  37703. TTextListView.InsItemFirst
  37704. TTextListView.InsItemLast
  37705. TTextListView.InvalidateItem
  37706. TTextListView.IsItemSelected
  37707. TTextListView.ITextListView
  37708. TTextListView.LastSelectedItem
  37709. TTextListView.Resize
  37710. TTextListView.SelectCell
  37711. TTextListView.SelectItem
  37712. TTextListView.SetItemHeight
  37713. TTextListView.SetItemWidth
  37714. TTextListView.WriteRes
  37715. TTranscriptView
  37716. TTranscriptView.AddText
  37717. TTranscriptView.AddTextToFile
  37718. TTranscriptView.CommonInit
  37719. TTranscriptView.DoHelp
  37720. TTranscriptView.DoIdle
  37721. TTranscriptView.DoKeyCommand
  37722. TTranscriptView.Draw
  37723. TTranscriptView.EndForce
  37724. TTranscriptView.fCols
  37725. TTranscriptView.fFirstLineIndex
  37726. TTranscriptView.fFontHeight
  37727. TTranscriptView.fFontInfo
  37728. TTranscriptView.fForcePtr
  37729. TTranscriptView.fForceStack
  37730. TTranscriptView.fGotRefnum
  37731. TTranscriptView.fHelpProc
  37732. TTranscriptView.Fields
  37733. TTranscriptView.fInsertionPointOn
  37734. TTranscriptView.fInsertionPt
  37735. TTranscriptView.fLastCh
  37736. TTranscriptView.fLastInsertionPointTime
  37737. TTranscriptView.fLineLengths
  37738. TTranscriptView.fLineStarts
  37739. TTranscriptView.ForceOutput
  37740. TTranscriptView.Free
  37741. TTranscriptView.fRefnum
  37742. TTranscriptView.fRows
  37743. TTranscriptView.fText
  37744. TTranscriptView.fTextStyle
  37745. TTranscriptView.fTotal
  37746. TTranscriptView.fUpdateRgn
  37747. TTranscriptView.fVRefNum
  37748. TTranscriptView.fWrToFile
  37749. TTranscriptView.fWrToWindow
  37750. TTranscriptView.GetInsertionPointRect
  37751. TTranscriptView.HandleMouseDown
  37752. TTranscriptView.IndexColToLocal
  37753. TTranscriptView.IndexToLocal
  37754. TTranscriptView.IndexToRow
  37755. TTranscriptView.InstallTextStyle
  37756. TTranscriptView.IRes
  37757. TTranscriptView.ITranscriptView
  37758. TTranscriptView.LocalToCol
  37759. TTranscriptView.LocalToIndex
  37760. TTranscriptView.PrevIndex
  37761. TTranscriptView.Redirect
  37762. TTranscriptView.RevealInsertionPoint
  37763. TTranscriptView.RevealInsertionPointLine
  37764. TTranscriptView.RowToIndex
  37765. TTranscriptView.Scroll
  37766. TTranscriptView.SuccIndex
  37767. TUndoRedoCommand
  37768. TUndoRedoCommand.DoIt
  37769. TUndoRedoCommand.Fields
  37770. TUndoRedoCommand.IUndoRedoCommand
  37771. TView
  37772. TView.Activate
  37773. TView.AddSubView
  37774. TView.AdjustSize
  37775. TView.Adorn
  37776. TView.AssumeFocused
  37777. TView.AttachPrintHandler
  37778. TView.BeInPort
  37779. TView.BeInScroller
  37780. TView.CalcMinSize
  37781. TView.ClipFurtherTo
  37782. TView.Close
  37783. TView.ComputeSize
  37784. TView.ContainsClipType
  37785. TView.ContainsMouse
  37786. TView.CountSubViews
  37787. TView.DoBreakFollowing
  37788. TView.DoCalcPageStrips
  37789. TView.DoCalcViewPerPage
  37790. TView.DoCheckPrinter
  37791. TView.DoChoice
  37792. TView.DoDrawPageBreak
  37793. TView.DoDrawPrintFeedback
  37794. TView.DoHighlightSelection
  37795. TView.DoMenuCommand
  37796. TView.DoMouseCommand
  37797. TView.DoOffScreen
  37798. TView.DoPagination
  37799. TView.DoPrinterChanged
  37800. TView.DoSetCursor
  37801. TView.DoSetPageOffset
  37802. TView.DoSetupMenus
  37803. TView.Draw
  37804. TView.DrawContents
  37805. TView.EachSubView
  37806. TView.fDocument
  37807. TView.fFocusRec
  37808. TView.fHLDesired
  37809. TView.fIdentifier
  37810. TView.Fields
  37811. TView.FindSubView
  37812. TView.FirstSubviewThat
  37813. TView.fLocation
  37814. TView.Focus
  37815. TView.FocusOnSuperView
  37816. TView.ForceRedraw
  37817. TView.fPrintHandler
  37818. TView.Free
  37819. TView.FreeFromClipboard
  37820. TView.fShown
  37821. TView.fSize
  37822. TView.fSizeDeterminer
  37823. TView.fSubViews
  37824. TView.fSuperView
  37825. TView.fViewEnabled
  37826. TView.GetDefaultCursorRgn
  37827. TView.GetDialogView
  37828. TView.GetExtent
  37829. TView.GetFrame
  37830. TView.GetGrafPort
  37831. TView.GetInspectorName
  37832. TView.GetPrintExtent
  37833. TView.GetQDExtent
  37834. TView.GetScroller
  37835. TView.GetVisibleRect
  37836. TView.GetWindow
  37837. TView.GivePasteData
  37838. TView.HandleCursor
  37839. TView.HandleMouseDown
  37840. TView.HasPendingUpdate
  37841. TView.InvalidateFocus
  37842. TView.InvalidRect
  37843. TView.InvalidVRect
  37844. TView.IRes
  37845. TView.IsDoneTracking
  37846. TView.IsFocused
  37847. TView.IsShown
  37848. TView.IsViewEnabled
  37849. TView.IsVisible
  37850. TView.IView
  37851. TView.LastSubViewThat
  37852. TView.LocalToSuper
  37853. TView.LocalToWindow
  37854. TView.Locate
  37855. TView.MakeFirstSubView
  37856. TView.MakeLastSubView
  37857. TView.Open
  37858. TView.PageInteriorChanged
  37859. TView.QDToViewPt
  37860. TView.QDToViewRect
  37861. TView.RemoveSubView
  37862. TView.Resize
  37863. TView.RevealBottom
  37864. TView.RevealRect
  37865. TView.RevealTop
  37866. TView.Show
  37867. TView.ShowReverted
  37868. TView.SubViewChangedSize
  37869. TView.SubViewMoved
  37870. TView.SuperToLocal
  37871. TView.SuperViewChangedSize
  37872. TView.SuperViewMoved
  37873. TView.TrackConstrain
  37874. TView.TrackFeedback
  37875. TView.TrackMouse
  37876. TView.Update
  37877. TView.ValidVRect
  37878. TView.ViewEnable
  37879. TView.ViewToQDPt
  37880. TView.ViewToQDRect
  37881. TView.WindowToLocal
  37882. TView.WRes
  37883. TView.WriteRes
  37884. TView.WriteToDeskScrap
  37885. TWindow
  37886. TWindow.Activate
  37887. TWindow.AdaptToScreen
  37888. TWindow.AllowsMenuAccess
  37889. TWindow.BuildWindowRgns
  37890. TWindow.Center
  37891. TWindow.Close
  37892. TWindow.CloseByUser
  37893. TWindow.DoMenuCommand
  37894. TWindow.DoSetupMenus
  37895. TWindow.DrawContents
  37896. TWindow.DrawResizeIcon
  37897. TWindow.fAdapted
  37898. TWindow.fClosesDocument
  37899. TWindow.fConstTitle
  37900. TWindow.fContDifference
  37901. TWindow.fContRgnInset
  37902. TWindow.fDisposeOnFree
  37903. TWindow.fDoFirstClick
  37904. TWindow.fFloats
  37905. TWindow.fForcedOnScreen
  37906. TWindow.fFreeOnClosing
  37907. TWindow.fHorzCentered
  37908. TWindow.Fields
  37909. TWindow.fIsActive
  37910. TWindow.fIsClosable
  37911. TWindow.fIsModal
  37912. TWindow.fIsResizable
  37913. TWindow.fMoveBounds
  37914. TWindow.fMustAdapt
  37915. TWindow.fMustForceOnScreen
  37916. TWindow.fMustHorzCenter
  37917. TWindow.fMustStagger
  37918. TWindow.fMustVertCenter
  37919. TWindow.Focus
  37920. TWindow.FocusOnSuperView
  37921. TWindow.fOpenInitially
  37922. TWindow.ForceOnScreen
  37923. TWindow.fPreDocname
  37924. TWindow.fProcId
  37925. TWindow.Free
  37926. TWindow.fResizeLimits
  37927. TWindow.fStaggered
  37928. TWindow.fTarget
  37929. TWindow.fTargetId
  37930. TWindow.fVertCentered
  37931. TWindow.fWMgrWindow
  37932. TWindow.GetGlobalBounds
  37933. TWindow.GetGrafPort
  37934. TWindow.GetInspectorName
  37935. TWindow.GetMaxIntersectedDevice
  37936. TWindow.GetTitle
  37937. TWindow.GetWindow
  37938. TWindow.GoAwayByUser
  37939. TWindow.HandleMouseDown
  37940. TWindow.HasPendingUpdate
  37941. TWindow.InstallDocument
  37942. TWindow.IRes
  37943. TWindow.IsDraggable
  37944. TWindow.IsShown
  37945. TWindow.IWindow
  37946. TWindow.Locate
  37947. TWindow.MoveByUser
  37948. TWindow.Open
  37949. TWindow.Resize
  37950. TWindow.ResizeByUser
  37951. TWindow.Select
  37952. TWindow.SetResizeLimits
  37953. TWindow.SetTarget
  37954. TWindow.SetTitle
  37955. TWindow.SetTitleForDoc
  37956. TWindow.Show
  37957. TWindow.SimpleStagger
  37958. TWindow.Update
  37959. TWindow.WRes
  37960. TWindow.WriteRes
  37961. TWindow.Zoom
  37962. TWindow.ZoomByUser
  37963. UnionVRect
  37964. UnloadAllSegments
  37965. UnpatchAll
  37966. UnpatchTrap
  37967. UprChar
  37968. UprMAName
  37969. UprStr255
  37970. UseROMMap
  37971. UseSelectionColor
  37972. UseTempRgn
  37973. ValidateConfiguration
  37974. ValidateMenuBar
  37975. ValidateMenus
  37976. VBLInstall
  37977. VBLRemove
  37978. VerboseIsHandle
  37979. VerboseIsObject
  37980. VisibleRect
  37981. VPtToPt
  37982. VRectsNest
  37983. VRectToRect
  37984. WindCmd
  37985. WithApplicationResFileDo
  37986. WithCodeResFileDo
  37987. WithHideFromMacAppDo
  37988. WriteBoolean
  37989. WriteChar
  37990. WriteFocus
  37991. WriteHandleContents
  37992. WriteHexInt
  37993. WriteHexLongint
  37994. WritePt
  37995. WritePtr
  37996. WriteRect
  37997. WriteReserves
  37998. WriteSig
  37999. WriteVPt
  38000. WriteVRect
  38001. WrLblBoolean
  38002. WrLblField
  38003. WrLblHandleContents
  38004. WrLblHexInt
  38005. WrLblHexLongint
  38006. WrLblPt
  38007. WrLblPtr
  38008. WrLblRect
  38009. WrLblSig
  38010. WrLblVPt
  38011. WrLblVRect
  38012. XDebugAddrError
  38013. XDebugBusError
  38014. XDebugCheck
  38015. XDebugIllInst
  38016. XDebugLineF
  38017. XDebugOverflow
  38018. XDebugSysError
  38019. XDebugZeroDiv
  38020. YouAreWarned
  38021.  
  38022.